mbox series

[bpf-next,v3,00/12] s390/bpf: Implement arena

Message ID 20240701234304.14336-1-iii@linux.ibm.com (mailing list archive)
Headers show
Series s390/bpf: Implement arena | expand

Message

Ilya Leoshkevich July 1, 2024, 11:40 p.m. UTC
v2: https://lore.kernel.org/bpf/20240701133432.3883-1-iii@linux.ibm.com/
v2 -> v3: Fix bpf-gcc build issue.

v1: https://lore.kernel.org/bpf/20240627090900.20017-1-iii@linux.ibm.com/
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(-)

Comments

patchwork-bot+netdevbpf@kernel.org July 2, 2024, 4:40 p.m. UTC | #1
Hello:

This series was applied to bpf/bpf-next.git (master)
by Daniel Borkmann <daniel@iogearbox.net>:

On Tue,  2 Jul 2024 01:40:18 +0200 you wrote:
> v2: https://lore.kernel.org/bpf/20240701133432.3883-1-iii@linux.ibm.com/
> v2 -> v3: Fix bpf-gcc build issue.
> 
> v1: https://lore.kernel.org/bpf/20240627090900.20017-1-iii@linux.ibm.com/
> 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.
> 
> [...]

Here is the summary with links:
  - [bpf-next,v3,01/12] bpf: Fix atomic probe zero-extension
    https://git.kernel.org/bpf/bpf-next/c/df34ec9db6f5
  - [bpf-next,v3,02/12] s390/bpf: Factor out emitting probe nops
    https://git.kernel.org/bpf/bpf-next/c/d0736d8c491d
  - [bpf-next,v3,03/12] s390/bpf: Get rid of get_probe_mem_regno()
    https://git.kernel.org/bpf/bpf-next/c/9a0485872691
  - [bpf-next,v3,04/12] s390/bpf: Introduce pre- and post- probe functions
    https://git.kernel.org/bpf/bpf-next/c/89b933a20137
  - [bpf-next,v3,05/12] s390/bpf: Land on the next JITed instruction after exception
    https://git.kernel.org/bpf/bpf-next/c/a1c04bcc41f9
  - [bpf-next,v3,06/12] s390/bpf: Support BPF_PROBE_MEM32
    https://git.kernel.org/bpf/bpf-next/c/4d3a453b434f
  - [bpf-next,v3,07/12] s390/bpf: Support address space cast instruction
    https://git.kernel.org/bpf/bpf-next/c/555469cc9be4
  - [bpf-next,v3,08/12] s390/bpf: Enable arena
    https://git.kernel.org/bpf/bpf-next/c/1e36027e39b8
  - [bpf-next,v3,09/12] s390/bpf: Support arena atomics
    https://git.kernel.org/bpf/bpf-next/c/2f9469484a3b
  - [bpf-next,v3,10/12] selftests/bpf: Introduce __arena_global
    https://git.kernel.org/bpf/bpf-next/c/b6349fd3448c
  - [bpf-next,v3,11/12] selftests/bpf: Add UAF tests for arena atomics
    https://git.kernel.org/bpf/bpf-next/c/490c99d4ed99
  - [bpf-next,v3,12/12] selftests/bpf: Remove arena tests from DENYLIST.s390x
    https://git.kernel.org/bpf/bpf-next/c/69716e44a74a

You are awesome, thank you!