bpf, arm64: Support 32-bit offset jmp instruction
authorXu Kuohai <xukuohai@huawei.com>
Tue, 15 Aug 2023 15:41:56 +0000 (11:41 -0400)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 18 Aug 2023 13:46:18 +0000 (15:46 +0200)
commitc32b6ee514d26dc6c40c45984e534b2d87fba917
treec1b3b5c2d76834c7c396a609eadf88aedfb30ecd
parent1104247f3f97916f0afc29b73112c97affbfdbd2
bpf, arm64: Support 32-bit offset jmp instruction

Add support for 32-bit offset jmp instructions. Given the arm64 direct jump
range is +-128MB, which is large enough for BPF prog, jumps beyond this range
are not supported.

Signed-off-by: Xu Kuohai <xukuohai@huawei.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Tested-by: Florent Revest <revest@chromium.org>
Acked-by: Florent Revest <revest@chromium.org>
Link: https://lore.kernel.org/bpf/20230815154158.717901-6-xukuohai@huaweicloud.com
arch/arm64/net/bpf_jit_comp.c