aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/ice/ice_lib.c
diff options
context:
space:
mode:
authorToke Høiland-Jørgensen <[email protected]>2024-03-05 21:31:32 +0000
committerMartin KaFai Lau <[email protected]>2024-03-06 00:48:53 +0000
commit2487007aa3b9fafbd2cb14068f49791ce1d7ede5 (patch)
treeb3ecf09e17cc47833c8e8a196655e3924bbd911c /drivers/net/ethernet/intel/ice/ice_lib.c
parentselftests/bpf: Fix up xdp bonding test wrt feature flags (diff)
downloadkernel-2487007aa3b9fafbd2cb14068f49791ce1d7ede5.tar.gz
kernel-2487007aa3b9fafbd2cb14068f49791ce1d7ede5.zip
cpumap: Zero-initialise xdp_rxq_info struct before running XDP program
When running an XDP program that is attached to a cpumap entry, we don't initialise the xdp_rxq_info data structure being used in the xdp_buff that backs the XDP program invocation. Tobias noticed that this leads to random values being returned as the xdp_md->rx_queue_index value for XDP programs running in a cpumap. This means we're basically returning the contents of the uninitialised memory, which is bad. Fix this by zero-initialising the rxq data structure before running the XDP program. Fixes: 9216477449f3 ("bpf: cpumap: Add the possibility to attach an eBPF program to cpumap") Reported-by: Tobias Böhm <[email protected]> Signed-off-by: Toke Høiland-Jørgensen <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Martin KaFai Lau <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_lib.c')
0 files changed, 0 insertions, 0 deletions