diff options
| author | Ricardo B. Marlière <rbm@suse.com> | 2025-08-29 16:33:49 -0300 |
|---|---|---|
| committer | Andrii Nakryiko <andrii@kernel.org> | 2025-09-03 16:46:36 -0700 |
| commit | c9110e6f7237f4a314e2b87b75a8a158b9877a7b (patch) | |
| tree | b5ada3d6fc0d8cd7c66bdd3909edd4440780c1a3 /scripts/lib/kdoc/kdoc_re.py | |
| parent | 2a912258c90e895363c0ffc0be8a47f112ab67b7 (diff) | |
selftests/bpf: Fix count write in testapp_xdp_metadata_copy()
Commit 4b302092553c ("selftests/xsk: Add tail adjustment tests and support
check") added a new global to xsk_xdp_progs.c, but left out the access in
the testapp_xdp_metadata_copy() function. Since bpf_map_update_elem() will
write to the whole bss section, it gets truncated. Fix by writing to
skel_rx->bss->count directly.
Fixes: 4b302092553c ("selftests/xsk: Add tail adjustment tests and support check")
Signed-off-by: Ricardo B. Marlière <rbm@suse.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20250829-selftests-bpf-xsk_regression_fix-v1-1-5f5acdb9fe6b@suse.com
Diffstat (limited to 'scripts/lib/kdoc/kdoc_re.py')
0 files changed, 0 insertions, 0 deletions
