diff options
| author | Yonghong Song <[email protected]> | 2025-07-25 04:34:30 +0000 |
|---|---|---|
| committer | Martin KaFai Lau <[email protected]> | 2025-07-26 01:20:43 +0000 |
| commit | 4c82768e413402c329043ed2a30a36bdfc82127b (patch) | |
| tree | 059f7911d0f102b0635897cb0aea3f015f2dd066 /net/unix/af_unix.c | |
| parent | bpf: Use ERR_CAST instead of ERR_PTR(PTR_ERR(...)) (diff) | |
| download | kernel-4c82768e413402c329043ed2a30a36bdfc82127b.tar.gz kernel-4c82768e413402c329043ed2a30a36bdfc82127b.zip | |
selftests/bpf: Increase xdp data size for arm64 64K page size
With arm64 64K page size, the following 4 subtests failed:
#97/25 dynptr/test_probe_read_user_dynptr:FAIL
#97/26 dynptr/test_probe_read_kernel_dynptr:FAIL
#97/27 dynptr/test_probe_read_user_str_dynptr:FAIL
#97/28 dynptr/test_probe_read_kernel_str_dynptr:FAIL
These failures are due to function bpf_dynptr_check_off_len() in
include/linux/bpf.h where there is a test
if (len > size || offset > size - len)
return -E2BIG;
With 64K page size, the 'offset' is greater than 'size - len',
which caused the test failure.
For 64KB page size, this patch increased the xdp buffer size from 5000 to
90000. The above 4 test failures are fixed as 'size' value is increased.
But it introduced two new failures:
#97/4 dynptr/test_dynptr_copy_xdp:FAIL
#97/12 dynptr/test_dynptr_memset_xdp_chunks:FAIL
These two failures will be addressed in subsequent patches.
Signed-off-by: Yonghong Song <[email protected]>
Signed-off-by: Martin KaFai Lau <[email protected]>
Acked-by: Mykyta Yatsenko <[email protected]>
Link: https://patch.msgid.link/[email protected]
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
