summaryrefslogtreecommitdiffstats
path: root/lib/Kconfig.debug
diff options
context:
space:
mode:
authorHou Tao <houtao1@huawei.com>2022-02-26 13:19:06 +0100
committerDaniel Borkmann <daniel@iogearbox.net>2022-02-28 13:50:28 +0100
commitdda7596c109fc382876118627e29db7607cde35d (patch)
treee8a0a045a4ee83def9b91cf48f74d2d3a2e2f6b9 /lib/Kconfig.debug
parentbpf, arm64: Call build_prologue() first in first JIT pass (diff)
downloadlinux-dda7596c109fc382876118627e29db7607cde35d.tar.xz
linux-dda7596c109fc382876118627e29db7607cde35d.zip
bpf, arm64: Feed byte-offset into bpf line info
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: 37ab566c178d ("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
Diffstat (limited to 'lib/Kconfig.debug')
0 files changed, 0 insertions, 0 deletions