diff options
| author | Amery Hung <ameryhung@gmail.com> | 2025-09-25 19:14:52 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-11-13 23:37:49 +0300 |
| commit | cdf7022a5d3cfaf7716c467490bb62c4cd026620 (patch) | |
| tree | a0dd2a41f79f42c772b386b0168ee848dc0e8653 /scripts/gdb/linux/xarray.py | |
| parent | c42338b9d117269292257866d3f672a1ba6881d0 (diff) | |
| download | linux-cdf7022a5d3cfaf7716c467490bb62c4cd026620.tar.xz | |
selftests: drv-net: Reload pkt pointer after calling filter_udphdr
commit 11ae737efea10a8cc1c48b6288bde93180946b8c upstream.
Fix a verification failure. filter_udphdr() calls bpf_xdp_pull_data(),
which will invalidate all pkt pointers. Therefore, all ctx->data loaded
before filter_udphdr() cannot be used. Reload it to prevent verification
errors.
The error may not appear on some compiler versions if they decide to
load ctx->data after filter_udphdr() when it is first used.
Fixes: efec2e55bdef ("selftests: drv-net: Pull data before parsing headers")
Signed-off-by: Amery Hung <ameryhung@gmail.com>
Acked-by: Martin KaFai Lau <martin.lau@kernel.org>
Link: https://patch.msgid.link/20250925161452.1290694-1-ameryhung@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/gdb/linux/xarray.py')
0 files changed, 0 insertions, 0 deletions
