diff options
| author | Mykyta Yatsenko <yatsenko@meta.com> | 2025-10-29 19:59:07 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <ast@kernel.org> | 2025-10-29 18:15:30 -0700 |
| commit | 5913e936f6d5d348e33190885131c4f4eaa4bc4b (patch) | |
| tree | 6940fd63ef2277743c00b787e2842b09c3d6d466 /tools/testing/selftests/bpf/prog_tests/recursion.c | |
| parent | e2e668bd81066086fc5a676c8dcb8121a7d84d98 (diff) | |
selftests/bpf: Fix intermittent failures in file_reader test
file_reader/on_open_expect_fault intermittently fails when test_progs
runs tests in parallel, because it expects a page fault on first read.
Another file_reader test running concurrently may have already pulled
the same pages into the page cache, eliminating the fault and causing a
spurious failure.
Make file_reader/on_open_expect_fault read from a file region that does
not overlap with other file_reader tests, so the initial access still
faults even under parallel execution.
Signed-off-by: Mykyta Yatsenko <yatsenko@meta.com>
Acked-by: Ihor Solodrai <ihor.solodrai@linux.dev>
Link: https://lore.kernel.org/r/20251029195907.858217-1-mykyta.yatsenko5@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/recursion.c')
0 files changed, 0 insertions, 0 deletions
