[PATCH net-next 3/3] net/mlx5e: use skb_share_check() in the loopback selftest hook
Simon Horman
horms at kernel.org
Fri Oct 9 10:00:02 PDT 2026
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 at tipi-net.de>
Reviewed-by: Simon Horman <horms at kernel.org>
More information about the linux-arm-kernel
mailing list