Commit 13b7f95
selftests/bpf: Fix count write in testapp_xdp_metadata_copy()
Commit 4b30209 ("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: 4b30209 ("selftests/xsk: Add tail adjustment tests and support check")
Signed-off-by: Ricardo B. Marlière <[email protected]>1 parent 27199db commit 13b7f95
1 file changed
+1
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2276 | 2276 | | |
2277 | 2277 | | |
2278 | 2278 | | |
2279 | | - | |
2280 | | - | |
2281 | | - | |
2282 | 2279 | | |
2283 | 2280 | | |
2284 | 2281 | | |
2285 | 2282 | | |
2286 | 2283 | | |
2287 | 2284 | | |
2288 | | - | |
2289 | | - | |
2290 | | - | |
2291 | | - | |
2292 | | - | |
2293 | | - | |
2294 | | - | |
2295 | | - | |
2296 | | - | |
2297 | | - | |
| 2285 | + | |
2298 | 2286 | | |
2299 | 2287 | | |
2300 | 2288 | | |
| |||
0 commit comments