ice: fix pktgen crash in eswitch mode
Subsystems (3)
PATCH 1/1 ice: fix pktgen crash in eswitch mode
When pktgen reuses an skb on an ICE port representor, the representor forwards it to the uplink through dev_queue_xmit(). If the lower qdisc retains the skb, a subsequent transmission of the same skb overwrites its list pointers. Dequeuing it from qdisc->gso_skb then dereferences a NULL skb->next in __skb_unlink().
Disable SKB reuse for this ice path to prevent this.
Crash signature:
__dev_queue_xmit+0x5c9/0xf20 ice_eswitch_port_start_xmit+0x83/0xd0 [ice] pktgen_thread_worker+0x82f/0x1c10 [pktgen]
--- drivers/net/ethernet/intel/ice/ice_repr.c | 1 + 1 file changed, 1 insertion(+)
drivers/net/ethernet/intel/ice/ice_repr.c +1 -0
@@ -305,6 +305,7 @@ ice_repr_reg_netdev(struct net_device *netdev, const struct net_device_ops *ops)eth_hw_addr_random (netdev); netdev->netdev_ops = ops;ice_set_ethtool_repr_ops (netdev); + netdev->priv_flags &= ~IFF_TX_SKB_SHARING ; netdev->hw_features |=NETIF_F_HW_TC ;
Signature · 1 line
2.54.0
Quoted 20 lines
-----Original Message-----
From: Lorenz Brun <[email protected]>
Sent: Saturday, September 26, 2026 12:27 AM
To: Nguyen, Anthony L <[email protected]>; Kitszel, Przemyslaw <[email protected]>; Andrew Lunn <[email protected]>; David S. Miller <[email protected]>; Eric Dumazet <[email protected]>; Jakub Kicinski <[email protected]>; Paolo Abeni <[email protected]>
Cc: [email protected]; [email protected]; linux- [email protected]
Subject: [PATCH] ice: fix pktgen crash in eswitch modeWhen pktgen reuses an skb on an ICE port representor, the representor forwards it to the uplink through
dev_queue_xmit(). If the lower qdisc retains the skb, a subsequent transmission of the same skb overwrites its list pointers. Dequeuing it fromqdisc->gso_skbthen dereferences a NULLskb->nextin__skb_unlink().
Quoted 7 lines
Disable SKB reuse for this ice path to prevent this.
Crash signature:
__dev_queue_xmit+0x5c9/0xf20 ice_eswitch_port_start_xmit+0x83/0xd0 [ice] pktgen_thread_worker+0x82f/0x1c10 [pktgen]
I think this patch required fixes tag.
And if it's serios bugfix it needs to go [PATCH net]
Quoted 21 lines
Signed-off-by Lorenz Brun <[email protected]>--- drivers/net/ethernet/intel/ice/ice_repr.c | 1 + 1 file changed, 1 insertion(+)drivers/net/ethernet/intel/ice/ice_repr.c +1
-1@@ -305,6 +305,7 @@ ice_repr_reg_netdev(struct net_device *netdev, const struct net_device_ops *ops)eth_hw_addr_random (netdev ); netdev->netdev_ops = ops;ice_set_ethtool_repr_ops (netdev); + netdev->priv_flags &= ~IFF_TX_SKB_SHARING ; netdev->hw_features |=NETIF_F_HW_TC ; --2.54.0