[PATCH net-next 2/3] net: stmmac: selftests: use skb_share_check() in the loopback receive hook
Simon Horman
horms at kernel.org
Fri Oct 9 09:59:45 PDT 2026
On Wed, Oct 07, 2026 at 08:29:23PM +0200, Nicolai Buchwitz wrote:
> The loopback hook gets a shared skb when another ETH_P_IP handler is
> bound to the device. skb_unshare() does not unshare it, so
> skb_linearize() on a non-linear frame hits BUG_ON(skb_shared()).
>
> Use skb_share_check() instead.
>
> Fixes: 091810dbded9 ("net: stmmac: Introduce selftests support")
> 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