diff options
| author | Song Liu <[email protected]> | 2025-03-27 18:55:28 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2025-04-03 04:55:43 +0000 |
| commit | 00387808d36e23c7d56e9e04a31de0be1443b0e9 (patch) | |
| tree | 7e66ce063840256aa714fceb3f2fc5087aac26aa /rust/helpers/vmalloc.c | |
| parent | xsk: Fix __xsk_generic_xmit() error code when cq is full (diff) | |
| download | kernel-00387808d36e23c7d56e9e04a31de0be1443b0e9.tar.gz kernel-00387808d36e23c7d56e9e04a31de0be1443b0e9.zip | |
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 <[email protected]>
Signed-off-by: Song Liu <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'rust/helpers/vmalloc.c')
0 files changed, 0 insertions, 0 deletions
