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

The current selftest sk_bypass_prot_mem only supports 4K page.
When running with 64K page on arm64, the following failure happens:
  ...
  check_bypass:FAIL:no bypass unexpected no bypass: actual 3 <= expected 32
  ...
  #385/1   sk_bypass_prot_mem/TCP  :FAIL
  ...
  check_bypass:FAIL:no bypass unexpected no bypass: actual 4 <= expected 32
  ...
  #385/2   sk_bypass_prot_mem/UDP  :FAIL
  ...

Adding support to 64K page as well fixed the failure.

Cc: Kuniyuki Iwashima <kuniyu@google.com>
Signed-off-by: Yonghong Song <yonghong.song@linux.dev>
Link: https://lore.kernel.org/r/20260113061028.3798326-1-yonghong.song@linux.dev
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/prog_tests/sk_bypass_prot_mem.c