]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests/bpf: Fix verifier_arena_globals1 failure with 64K page
authorYonghong Song <yonghong.song@linux.dev>
Tue, 13 Jan 2026 06:10:33 +0000 (22:10 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 13 Jan 2026 17:32:16 +0000 (09:32 -0800)
commit951d79017e8a0af6db4a167a89746b4a0924626b
treee42936270c96f3d3f04046fdd7d11a9511213a67
parentd2f7cd20a7c7742b83d2c899044d4f2a851a4a7d
selftests/bpf: Fix verifier_arena_globals1 failure with 64K page

With 64K page on arm64, verifier_arena_globals1 failed like below:
  ...
  libbpf: map 'arena': failed to create: -E2BIG
  ...
  #509/1   verifier_arena_globals1/check_reserve1:FAIL
  ...

For 64K page, if the number of arena pages is (1UL << 20), the total
memory will exceed 4G and this will cause map creation failure.
Adjusting ARENA_PAGES based on the actual page size fixed the problem.

Cc: Emil Tsalapatis <emil@etsalapatis.com>
Signed-off-by: Yonghong Song <yonghong.song@linux.dev>
Reviewed-by: Emil Tsalapatis <emil@etsalapatis.com>
Link: https://lore.kernel.org/r/20260113061033.3798549-1-yonghong.song@linux.dev
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/progs/verifier_arena_globals1.c