BPF List
 help / color / mirror / Atom feed
* [PATCH bpf-next 0/2] bpf/arena: Add kfunc for reserving arena guard memory regions
@ 2025-06-20  3:11 Emil Tsalapatis
  2025-06-20  3:11 ` [PATCH bpf-next 1/2] bpf/arena: add bpf_arena_guard_pages kfunc Emil Tsalapatis
  2025-06-20  3:11 ` [PATCH bpf-next 2/2] selftests/bpf: add selftests for bpf_arena_guard_pages Emil Tsalapatis
  0 siblings, 2 replies; 10+ messages in thread
From: Emil Tsalapatis @ 2025-06-20  3:11 UTC (permalink / raw)
  To: bpf
  Cc: ast, daniel, andrii, martin.lau, eddyz87, song, yonghong.song,
	memxor, sched-ext, Emil Tsalapatis

Add a new kfunc for BPF arenas that reserves a region of the mapping
to prevent it from being mapped. These regions serve as guards against
out-of-bounds accesses and are useful for debugging arena-related code.

Emil Tsalapatis (2):
  bpf/arena: add bpf_arena_guard_pages kfunc
  selftests/bpf: add selftests for bpf_arena_guard_pages

 kernel/bpf/arena.c                            |  95 +++++++++++++++-
 .../testing/selftests/bpf/bpf_arena_common.h  |   3 +
 .../selftests/bpf/progs/verifier_arena.c      | 106 ++++++++++++++++++
 .../bpf/progs/verifier_arena_large.c          |  93 +++++++++++++++
 4 files changed, 294 insertions(+), 3 deletions(-)

-- 
2.49.0


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

end of thread, other threads:[~2025-06-21  0:15 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-20  3:11 [PATCH bpf-next 0/2] bpf/arena: Add kfunc for reserving arena guard memory regions Emil Tsalapatis
2025-06-20  3:11 ` [PATCH bpf-next 1/2] bpf/arena: add bpf_arena_guard_pages kfunc Emil Tsalapatis
2025-06-20 18:44   ` Alexei Starovoitov
2025-06-20 18:52     ` Kumar Kartikeya Dwivedi
2025-06-20 18:56       ` Alexei Starovoitov
2025-06-20 19:06         ` Kumar Kartikeya Dwivedi
2025-06-20 21:12           ` Alexei Starovoitov
2025-06-21  0:15             ` Emil Tsalapatis
2025-06-20 23:58     ` Emil Tsalapatis
2025-06-20  3:11 ` [PATCH bpf-next 2/2] selftests/bpf: add selftests for bpf_arena_guard_pages Emil Tsalapatis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox