bpf, arm64: Support sign-extension mov instructions
authorXu Kuohai <xukuohai@huawei.com>
Tue, 15 Aug 2023 15:41:54 +0000 (11:41 -0400)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 18 Aug 2023 13:45:58 +0000 (15:45 +0200)
commitbb0a1d6b49cb8293b09d290536315b4a134ef1e7
tree363b297ca0a1461c8ac0a4572468be6e465a9c43
parentcc88f540da52d418ede80846c2fd771a4ef19227
bpf, arm64: Support sign-extension mov instructions

Add JIT support for BPF sign-extension mov instructions with arm64
SXTB/SXTH/SXTW instructions.

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-4-xukuohai@huaweicloud.com
arch/arm64/net/bpf_jit.h
arch/arm64/net/bpf_jit_comp.c