WSL2-Linux-Kernel/arch/arm64
Hou Tao c08f23081c bpf, arm64: Feed byte-offset into bpf line info
[ Upstream commit dda7596c10 ]

insn_to_jit_off passed to bpf_prog_fill_jited_linfo() is calculated in
instruction granularity instead of bytes granularity, but BPF line info
requires byte offset.

bpf_prog_fill_jited_linfo() will be the last user of ctx.offset before
it is freed, so convert the offset into byte-offset before calling into
bpf_prog_fill_jited_linfo() in order to fix the line info dump on arm64.

Fixes: 37ab566c17 ("bpf: arm64: Enable arm64 jit to provide bpf_line_info")
Suggested-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: Hou Tao <houtao1@huawei.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20220226121906.5709-3-houtao1@huawei.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-04-08 14:23:35 +02:00
..
boot arm64: dts: rockchip: Fix SDIO regulator supply properties on rk3399-firefly 2022-04-08 14:23:20 +02:00
configs
crypto
hyperv
include arm64: prevent instrumentation of bp hardening callbacks 2022-04-08 14:23:09 +02:00
kernel arm64: prevent instrumentation of bp hardening callbacks 2022-04-08 14:23:09 +02:00
kvm arm64: Use the clearbhb instruction in mitigations 2022-03-11 12:22:35 +01:00
lib arm64: mte: DC {GVA,GZVA} shouldn't be used when DCZID_EL0.DZP == 1 2022-01-27 11:03:28 +01:00
mm arm64/mm: avoid fixmap race condition when create pud mapping 2022-04-08 14:23:06 +02:00
net bpf, arm64: Feed byte-offset into bpf line info 2022-04-08 14:23:35 +02:00
tools arm64: Mitigate spectre style branch history side channels 2022-03-11 12:22:35 +01:00
xen
Kbuild
Kconfig arm64: Ensure execute-only permissions are not allowed without EPAN 2022-03-16 14:23:43 +01:00
Kconfig.debug
Kconfig.platforms
Makefile