Skip to content

s390/bpf: Implement arena

Ilya Leoshkevich bpf 3 versions – Applied

Status from this message: This series was applied to bpf/bpf-next.git (master)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest12 patches 0 repliesApplied 12/12
  2. v211 patches 2 repliesSuperseded
  3. v110 patches 4 repliesSuperseded

Patches in v3 All 12 applied

#Subject and filesSizeRepliesApplied
1/12bpf: Fix atomic probe zero-extensionkernel/bpf/verifier.c+2 -10 repliesApplied
2/12s390/bpf: Factor out emitting probe nopsarch/s390/net/bpf_jit_comp.c+40 -220 repliesApplied
3/12s390/bpf: Get rid of get_probe_mem_regno()arch/s390/net/bpf_jit_comp.c+7 -260 repliesApplied
4/12s390/bpf: Introduce pre- and post- probe functionsarch/s390/net/bpf_jit_comp.c+44 -140 repliesApplied
5/12s390/bpf: Land on the next JITed instruction after exceptionarch/s390/net/bpf_jit_comp.c+4 -30 repliesApplied
6/12s390/bpf: Support BPF_PROBE_MEM32arch/s390/net/bpf_jit_comp.c+110 -270 repliesApplied
7/12s390/bpf: Support address space cast instructionarch/s390/net/bpf_jit_comp.c+18 -00 repliesApplied
8/12s390/bpf: Enable arenaarch/s390/net/bpf_jit_comp.c+5 -00 repliesApplied
9/12s390/bpf: Support arena atomicsarch/s390/net/bpf_jit_comp.c+94 -100 repliesApplied
10/12selftests/bpf: Introduce __arena_globaltools/testing/selftests/bpf/bpf_arena_common.h tools/testing/selftests/bpf/progs/arena_atomics.c+32 -370 repliesApplied
11/12selftests/bpf: Add UAF tests for arena atomicstools/testing/selftests/bpf/prog_tests/arena_atomics.c tools/testing/selftests/bpf/progs/arena_atomics.c+94 -00 repliesApplied
12/12selftests/bpf: Remove arena tests from DENYLIST.s390xtools/testing/selftests/bpf/DENYLIST.s390x+0 -30 repliesApplied

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH bpf-next v3 00/12] s390/bpf: Implement arena

v2: https://lore.kernel.org/bpf/[email protected]/
v2 -> v3: Fix bpf-gcc build issue.

v1: https://lore.kernel.org/bpf/[email protected]/
v1 -> v2: Add a zero-extension fix.
Fix wrong jump offset in the BPF_XCHG implementation. Do not run the UAF test on x86_64 and arm64.

Hi,

This series adds arena support to the s390x JIT.
Patch 1 is a common code fix, patches 2-5 are refactorings, patches 6-9 are the implementation, and patches 10-12 deal with testing.

Best regards,
Ilya

Ilya Leoshkevich (12):
bpf: Fix atomic probe zero-extension
s390/bpf: Factor out emitting probe nops
s390/bpf: Get rid of get_probe_mem_regno() s390/bpf: Introduce pre- and post- probe functions s390/bpf: Land on the next JITed instruction after exception s390/bpf: Support BPF_PROBE_MEM32
s390/bpf: Support address space cast instruction s390/bpf: Enable arena
s390/bpf: Support arena atomics
selftests/bpf: Introduce __arena_global selftests/bpf: Add UAF tests for arena atomics selftests/bpf: Remove arena tests from DENYLIST.s390x

 arch/s390/net/bpf_jit_comp.c                  | 404 ++++++++++++++----
 kernel/bpf/verifier.c                         |   3 +-
 tools/testing/selftests/bpf/DENYLIST.s390x    |   3 -
 .../testing/selftests/bpf/bpf_arena_common.h  |   2 +
 .../selftests/bpf/prog_tests/arena_atomics.c  |  18 +
 .../selftests/bpf/progs/arena_atomics.c       | 143 +++++--
 6 files changed, 440 insertions(+), 133 deletions(-)
Signature · 1 line
2.45.2