All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH bpf 0/2] bpf: Follow-ups for the arena mmap() fixes
@ 2026-11-02  6:42 Alexei Starovoitov
  2026-11-02  6:42 ` [PATCH bpf 1/2] bpf: Don't move a MAP_FIXED address in arena_get_unmapped_area() Alexei Starovoitov
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Alexei Starovoitov @ 2026-11-02  6:42 UTC (permalink / raw)
  To: bpf; +Cc: daniel, andrii, eddyz87, memxor

From: Alexei Starovoitov <ast@kernel.org>

Two follow-ups for the arena patches of the series
"bpf: Fixes for the verifier, arena, skb and lwt helpers", merge
commit 714b7112017f. They answer review comments on that series.

Commit ca580b034380 ("bpf: Refuse to map an arena at address 0") tests for
address 0 in front of round_up(), and round_up() can wrap to 0. Patch 1
does not move a MAP_FIXED address at all. Patch 2 makes arena_mmap serial,
as the other arena tests are, and adds subtests for patch 1.

Signed-off-by: Alexei Starovoitov <ast@kernel.org>

Alexei Starovoitov (2):
  bpf: Don't move a MAP_FIXED address in arena_get_unmapped_area()
  selftests/bpf: Run arena_mmap serially and test MAP_FIXED addresses

 kernel/bpf/arena.c                            | 13 +++++--
 .../selftests/bpf/prog_tests/arena_mmap.c     | 36 +++++++++++++------
 2 files changed, 37 insertions(+), 12 deletions(-)


base-commit: 714b7112017fc7f8b2afabccf562acdb12d2ea7d
-- 
2.55.0


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

end of thread, other threads:[~2026-11-02 16:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-02  6:42 [PATCH bpf 0/2] bpf: Follow-ups for the arena mmap() fixes Alexei Starovoitov
2026-11-02  6:42 ` [PATCH bpf 1/2] bpf: Don't move a MAP_FIXED address in arena_get_unmapped_area() Alexei Starovoitov
2026-11-02  6:42 ` [PATCH bpf 2/2] selftests/bpf: Run arena_mmap serially and test MAP_FIXED addresses Alexei Starovoitov
2026-11-02 16:30 ` [PATCH bpf 0/2] bpf: Follow-ups for the arena mmap() fixes patchwork-bot+netdevbpf

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.