aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/fpga/tests/fpga-mgr-test.c
diff options
context:
space:
mode:
authorJesper Dangaard Brouer <[email protected]>2025-06-11 12:40:04 +0000
committerJakub Kicinski <[email protected]>2025-06-12 15:08:32 +0000
commit9337c54401a5bb6ac3c9f6c71dd2a9130cfba82e (patch)
treee8e037d9be70415c3c1111c1d7bcbadd5a23127e /drivers/fpga/tests/fpga-mgr-test.c
parentMerge branch 'net_sched-no-longer-use-qdisc_tree_flush_backlog' (diff)
downloadkernel-9337c54401a5bb6ac3c9f6c71dd2a9130cfba82e.tar.gz
kernel-9337c54401a5bb6ac3c9f6c71dd2a9130cfba82e.zip
veth: prevent NULL pointer dereference in veth_xdp_rcv
The veth peer device is RCU protected, but when the peer device gets deleted (veth_dellink) then the pointer is assigned NULL (via RCU_INIT_POINTER). This patch adds a necessary NULL check in veth_xdp_rcv when accessing the veth peer net_device. This fixes a bug introduced in commit dc82a33297fc ("veth: apply qdisc backpressure on full ptr_ring to reduce TX drops"). The bug is a race and only triggers when having inflight packets on a veth that is being deleted. Reported-by: Ihor Solodrai <[email protected]> Closes: https://lore.kernel.org/all/[email protected]/ Reported-by: [email protected] Closes: https://lore.kernel.org/all/[email protected]/ Fixes: dc82a33297fc ("veth: apply qdisc backpressure on full ptr_ring to reduce TX drops") Signed-off-by: Jesper Dangaard Brouer <[email protected]> Acked-by: Ihor Solodrai <[email protected]> Link: https://patch.msgid.link/174964557873.519608.10855046105237280978.stgit@firesoul Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'drivers/fpga/tests/fpga-mgr-test.c')
0 files changed, 0 insertions, 0 deletions