Re: [PATCH net-next 3/3] net/mlx5e: use skb_share_check() in the loopback selftest hook
From: Simon Horman
Date: Fri Oct 09 2026 - 13:08:59 EST
On Wed, Oct 07, 2026 at 08:29:24PM +0200, Nicolai Buchwitz wrote:
> The loopback hook gets a shared skb when another ETH_P_IP handler is
> bound to the device. skb_linearize() on a non-linear frame then hits
> BUG_ON(skb_shared()).
>
> Call skb_share_check() before linearizing the skb.
>
> Fixes: 95b9606b15bb ("net/mlx5: Extend Ethtool loopback selftest to support non-linear SKB")
> Signed-off-by: Nicolai Buchwitz <nb@xxxxxxxxxxx>
Reviewed-by: Simon Horman <horms@xxxxxxxxxx>