Skip to content

Commit 72d077b

Browse files
puranjaymohanKernel Patches Daemon
authored andcommitted
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 <[email protected]>
1 parent a818f96 commit 72d077b

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

arch/arm64/net/bpf_jit_comp.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3073,11 +3073,6 @@ bool bpf_jit_supports_insn(struct bpf_insn *insn, bool in_arena)
30733073
if (!bpf_atomic_is_load_store(insn) &&
30743074
!cpus_have_cap(ARM64_HAS_LSE_ATOMICS))
30753075
return false;
3076-
break;
3077-
case BPF_LDX | BPF_MEMSX | BPF_B:
3078-
case BPF_LDX | BPF_MEMSX | BPF_H:
3079-
case BPF_LDX | BPF_MEMSX | BPF_W:
3080-
return false;
30813076
}
30823077
return true;
30833078
}

0 commit comments

Comments
 (0)