diff options
author | Song Liu <song@kernel.org> | 2025-03-27 21:55:28 +0300 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2025-04-03 07:55:43 +0300 |
commit | 00387808d36e23c7d56e9e04a31de0be1443b0e9 (patch) | |
tree | 7e66ce063840256aa714fceb3f2fc5087aac26aa /scripts/generate_rust_target.rs | |
parent | 5d0b204654de25615cf712be86c3192eca68ed80 (diff) | |
download | linux-00387808d36e23c7d56e9e04a31de0be1443b0e9.tar.xz |
selftests/bpf: Fix tests after fields reorder in struct file
The change in struct file [1] moved f_ref to the 3rd cache line.
It made *(u64 *)file dereference invalid from the verifier point of view,
because btf_struct_walk() walks into f_lock field, which is 4-byte long.
Fix the selftests to deference the file pointer as a 4-byte access.
[1] commit e249056c91a2 ("fs: place f_ref to 3rd cache line in struct file to resolve false sharing")
Reported-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Song Liu <song@kernel.org>
Link: https://lore.kernel.org/r/20250327185528.1740787-1-song@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'scripts/generate_rust_target.rs')
0 files changed, 0 insertions, 0 deletions