]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
bpf, arm64: Add support for signed arena loads
authorPuranjay Mohan <puranjay@kernel.org>
Tue, 23 Sep 2025 11:01:50 +0000 (11:01 +0000)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 23 Sep 2025 19:00:22 +0000 (12:00 -0700)
commiteab2a71f3a6a5c5f4d4acaffb962cb39c199421c
tree6abeef7f4db3b7fc58fb8a04645ab3c98ee1f394
parenta91ae3c89311648cbaa9b46b860e4f76004a24b8
bpf, arm64: Add support for signed arena loads

Add support for signed loads from arena which are internally converted
to loads with mode set BPF_PROBE_MEM32SX by the verifier. The
implementation is similar to BPF_PROBE_MEMSX and BPF_MEMSX but for
BPF_PROBE_MEM32SX, arena_vm_base is added to the src register to form
the address.

Signed-off-by: Puranjay Mohan <puranjay@kernel.org>
Link: https://lore.kernel.org/r/20250923110157.18326-3-puranjay@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
arch/arm64/net/bpf_jit_comp.c