linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH bpf-next 0/2] arm64/bpf: remove 128MB limit for BPF JIT programs
@ 2021-11-03  9:49 Alan Maguire
  2021-11-03  9:49 ` [PATCH bpf-next 1/2] " Alan Maguire
  2021-11-03  9:49 ` [PATCH bpf-next 2/2] selftests/bpf: add exception handling selftests for tp_bpf program Alan Maguire
  0 siblings, 2 replies; 6+ messages in thread
From: Alan Maguire @ 2021-11-03  9:49 UTC (permalink / raw)
  To: ardb, catalin.marinas, will, daniel, ast
  Cc: zlim.lnx, andrii, kafai, songliubraving, yhs, john.fastabend,
	kpsingh, andreyknvl, vincenzo.frascino, mark.rutland,
	samitolvanen, joey.gouly, maz, daizhiyuan, jthierry, tiantao6,
	pcc, akpm, rppt, Jisheng.Zhang, liu.hailong6, linux-arm-kernel,
	linux-kernel, netdev, bpf, Alan Maguire

There is a 128MB limit on BPF JIT program allocations; this is
to ensure BPF programs are in branching range of each other.
Patch 1 in this series removes this restriction, but because
BPF exception handling used the contiguous nature of the JIT
region in fixing up exceptions, changes are needed in exception
handling.  To verify exception handling still works, a test
case to validate exception handling in BPF programs is added in
patch 2.

There was previous discussion around this topic [1], in particular
would be good to get feedback from Daniel if this approach makes
sense.

[1] https://lore.kernel.org/all/20181121131733.14910-1-ard.biesheuvel@linaro.org/

Alan Maguire (1):
  selftests/bpf: add exception handling selftests for tp_bpf program

Russell King (1):
  arm64/bpf: remove 128MB limit for BPF JIT programs

 arch/arm64/include/asm/extable.h                   |  9 -----
 arch/arm64/include/asm/memory.h                    |  5 +--
 arch/arm64/kernel/traps.c                          |  2 +-
 arch/arm64/mm/extable.c                            | 13 +++++--
 arch/arm64/mm/ptdump.c                             |  2 -
 arch/arm64/net/bpf_jit_comp.c                      | 10 +++--
 tools/testing/selftests/bpf/prog_tests/exhandler.c | 45 ++++++++++++++++++++++
 tools/testing/selftests/bpf/progs/exhandler_kern.c | 35 +++++++++++++++++
 8 files changed, 97 insertions(+), 24 deletions(-)
 create mode 100644 tools/testing/selftests/bpf/prog_tests/exhandler.c
 create mode 100644 tools/testing/selftests/bpf/progs/exhandler_kern.c

-- 
1.8.3.1


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-11-04 23:23 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-03  9:49 [PATCH bpf-next 0/2] arm64/bpf: remove 128MB limit for BPF JIT programs Alan Maguire
2021-11-03  9:49 ` [PATCH bpf-next 1/2] " Alan Maguire
2021-11-03  9:49 ` [PATCH bpf-next 2/2] selftests/bpf: add exception handling selftests for tp_bpf program Alan Maguire
2021-11-03 18:39   ` Andrii Nakryiko
2021-11-04 22:56     ` Alan Maguire
2021-11-04 23:23       ` Andrii Nakryiko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).