]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
selftests/bpf: Fix bpf_mod_race test failure with arm64 64KB page size
authorYonghong Song <yonghong.song@linux.dev>
Sat, 7 Jun 2025 01:36:15 +0000 (18:36 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Sat, 7 Jun 2025 02:21:43 +0000 (19:21 -0700)
commit377d3715900c1f465a5ea8a6a11bcbdc42b18668
tree0c1893cc584a0414b5a8b455d605aaa90c8f0f19
parentae8824037a0ac550745b223aa3680819ed65e8db
selftests/bpf: Fix bpf_mod_race test failure with arm64 64KB page size

Currently, uffd_register.range.len is set to 4096 for command
'ioctl(uffd, UFFDIO_REGISTER, &uffd_register)'. For arm64 64KB page size,
the len must be 64KB size aligned as page size alignment is required.
See fs/userfaultfd.c:validate_unaligned_range().

Signed-off-by: Yonghong Song <yonghong.song@linux.dev>
Link: https://lore.kernel.org/r/20250607013615.1551783-1-yonghong.song@linux.dev
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/prog_tests/bpf_mod_race.c