Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge branch 'fix-a-few-selftest-failure-due-to-64k-page'

Yonghong Song says:

====================
Fix a few selftest failure due to 64K page

Fix a few arm64 selftest failures due to 64K page. Please see each
indvidual patch for why the test failed and how the test gets fixed.
====================

Link: https://patch.msgid.link/20260113061018.3797051-1-yonghong.song@linux.dev
Signed-off-by: Alexei Starovoitov <ast@kernel.org>

+8 -3
+1 -1
tools/testing/selftests/bpf/prog_tests/dmabuf_iter.c
··· 233 233 while ((bytes_read = read(iter_fd, buf, sizeof(buf))) > 0) 234 234 total_bytes_read += bytes_read; 235 235 236 - ASSERT_GT(total_bytes_read, getpagesize(), "total_bytes_read"); 236 + ASSERT_GT(total_bytes_read, 4096, "total_bytes_read"); 237 237 238 238 close(iter_fd); 239 239 }
+6 -1
tools/testing/selftests/bpf/prog_tests/sk_bypass_prot_mem.c
··· 5 5 #include "sk_bypass_prot_mem.skel.h" 6 6 #include "network_helpers.h" 7 7 8 + #ifndef PAGE_SIZE 9 + #include <unistd.h> 10 + #define PAGE_SIZE getpagesize() 11 + #endif 12 + 8 13 #define NR_PAGES 32 9 14 #define NR_SOCKETS 2 10 - #define BUF_TOTAL (NR_PAGES * 4096 / NR_SOCKETS) 15 + #define BUF_TOTAL (NR_PAGES * PAGE_SIZE / NR_SOCKETS) 11 16 #define BUF_SINGLE 1024 12 17 #define NR_SEND (BUF_TOTAL / BUF_SINGLE) 13 18
+1 -1
tools/testing/selftests/bpf/progs/verifier_arena_globals1.c
··· 9 9 #include "bpf_arena_common.h" 10 10 #include "bpf_misc.h" 11 11 12 - #define ARENA_PAGES (1UL<< (32 - 12)) 12 + #define ARENA_PAGES (1UL<< (32 - __builtin_ffs(__PAGE_SIZE) + 1)) 13 13 #define GLOBAL_PAGES (16) 14 14 15 15 struct {