]> git.baikalelectronics.ru Git - kernel.git/commit
bpf, arm64: Call build_prologue() first in first JIT pass
authorHou Tao <houtao1@huawei.com>
Sat, 26 Feb 2022 12:19:05 +0000 (20:19 +0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Mon, 28 Feb 2022 12:48:08 +0000 (13:48 +0100)
commit216b4fc685a097680b57b31b9f33b214420a03c8
tree7cd5405d8b200b1eded3db29a6a7856bc7ce3e6a
parent8ef8810fd00c7ddb4d05ee5f045f7b18ea63de61
bpf, arm64: Call build_prologue() first in first JIT pass

BPF line info needs ctx->offset to be the instruction offset in the whole JITed
image instead of the body itself, so also call build_prologue() first in first
JIT pass.

Fixes: c9dab34e57b5 ("bpf: arm64: Enable arm64 jit to provide bpf_line_info")
Signed-off-by: Hou Tao <houtao1@huawei.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20220226121906.5709-2-houtao1@huawei.com
arch/arm64/net/bpf_jit_comp.c