For a completion from the rx data ring, vmxnet3_rq_rx_complete() sets ctx->skb = rbi->skb in the sop block before running XDP on the data ring copy. With XDP enabled, the ring 0 head buffer is VMXNET3_RX_BUF_XDP and that union member holds a page_pool page, not an skb. On XDP_PASS ctx->skb is replaced with the new skb, but on any other verdict, XDP_DROP included, it keeps the page pointer. The stale value then belongs to no frame. If the next completion is a single descriptor with rcd->err set, vmxnet3_rx_error() passes it to dev_kfree_skb_irq(). The ring buffer XDP path already clears ctx->skb after a non-PASS verdict; do the same here. The problem was found and analysed, and this patch drafted, with the help of an AI coding assistant. It was reported by an automated review of an earlier version of this series. Fixes: 54f00cce1178 ("vmxnet3: Add XDP support.") Signed-off-by: Philipp Sudakas --- drivers/net/vmxnet3/vmxnet3_drv.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/vmxnet3/vmxnet3_drv.c b/drivers/net/vmxnet3/vmxnet3_drv.c index f8df83f..e8be95c 100644 --- a/drivers/net/vmxnet3/vmxnet3_drv.c +++ b/drivers/net/vmxnet3/vmxnet3_drv.c @@ -1742,6 +1742,7 @@ skip_xdp: ctx->skb = skb_xdp_pass; goto sop_done; } + ctx->skb = NULL; need_flush |= act == XDP_REDIRECT; goto rcd_done; -- 2.47.3