summaryrefslogtreecommitdiff
path: root/rust/helpers/cpu.c
diff options
context:
space:
mode:
authorAmery Hung <ameryhung@gmail.com>2025-09-25 09:14:52 -0700
committerJakub Kicinski <kuba@kernel.org>2025-09-26 13:54:46 -0700
commit11ae737efea10a8cc1c48b6288bde93180946b8c (patch)
tree061883d74a50ed85b3a16a2a7ad4bb81ae9a689e /rust/helpers/cpu.c
parentdd5629a67c5f3b4d9783dcdf06c844f8b7c88fae (diff)
selftests: drv-net: Reload pkt pointer after calling filter_udphdr
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>
Diffstat (limited to 'rust/helpers/cpu.c')
0 files changed, 0 insertions, 0 deletions