Re: [PATCH net-next 1/3] net: selftests: use skb_share_check() in the loopback receive hook
From: Simon Horman
Date: Fri Oct 09 2026 - 13:06:28 EST
On Wed, Oct 07, 2026 at 08:29:22PM +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: 3e1e58d64c3d ("net: add generic selftest support")
> Signed-off-by: Nicolai Buchwitz <nb@xxxxxxxxxxx>
Reviewed-by: Simon Horman <horms@xxxxxxxxxx>