🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #3365

Re: [PATCH net-next 0/3] net: use skb_share_check() in loopback selftest hooks

#3365
From: Nicolai Buchwitz
Date: Wed, 14 Oct 2026 21:02
31 lines
7702 bytes
Hi Jakub

On October 14, 2026 10:06:18 PM GMT+02:00, Jakub Kicinski <kuba@kernel.org> wrote:
>On Wed, 07 Oct 2026 20:29:21 +0200 Nicolai Buchwitz wrote:
>> The loopback selftest hooks can get a shared skb when another handler
>> is bound to the device. Linearizing a non-linear frame then hits
>> BUG_ON(skb_shared()) in pskb_expand_head().
>> 
>> Stumbled over this on RPi CM4 (bcmgenet, with jumbo series applied +
>> WIP selftest patches) with a packet socket open at the same time as
>> running ethtool -t.
>> 
>> stmmac and mlx5 seem to have the same pattern, xgbe already handles
>> shared skbs. Patches 2 and 3 are compile tested only.
>> 
>> As the impact is pretty limited and doesn't seem to bother anyone in
>> the wild, I've chosen net-next, but kept the Fixes tags. That matches
>> what Paolo suggested during the LPC track.
>
>Wonder if we should follow up and rename skb_unshare to skb_unclone_full
>or some such? The "share" in the name is quite confusing for people who
>haven't been around for 10+ years..

Makes sense. _unclone_full still sounds a bit clonky, but I can't think of a better name right now. I will give it a thought and send a follow up :)

Regards,
Nicolai
Technical Details
Message-ID: <BBC0F4F4-AE37-423C-9BC8-4C288D316DA9@tipi-net.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-346445-linux-kernel-netdev=dewy.ru
References: <20261007-nb-net-selftest-shared-net-v1-0-458369bfa1ba@tipi-net.de> <20261014130618.4c50f817@kernel.org>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-346445-linux-kernel-netdev=dewy.ru
From: nb@tipi-net.de (Nicolai Buchwitz)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next 0/3] net: use skb_share_check() in loopback selftest hooks
Date: Wed, 14 Oct 2026 23:02:52 +0200
Organization: Usenet Network
Message-ID: <BBC0F4F4-AE37-423C-9BC8-4C288D316DA9@tipi-net.de>
References: <20261007-nb-net-selftest-shared-net-v1-0-458369bfa1ba@tipi-net.de> <20261014130618.4c50f817@kernel.org>
MIME-Version: 1.0
Content-Type: text/plain;
 charset=utf-8
Content-Transfer-Encoding: quoted-printable
Injection-Info: usenet.network;
	logging-data="2388164"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:KQqcbxKG9cvw+RW1L8l4/SxOlF8= sha256:lJhkqFKds8uuLXLvxJrbxNtZvzjNK6Df6CWOoKHN0CI=
	sha1:gtsKoGajx1BMExhKVX1zs9OESzQ= sha256:p9pNHBvl0Hy0t0PXfsiamGuED13t9nVlyh65RJtjIZc=
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id BE3561101D1; Thu, 15 Oct 2026 00:06:26 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -0.75
X-Spam-Status: No, score=-0.75 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
	DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.25,
	MAILING_LIST_MULTI=-1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001]
	autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=tipi-net.de
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id PMunH0ToYybm;
	Thu, 15 Oct 2026 00:06:24 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-346445-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=tipi-net.de
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id 8FF3C110194; Thu, 15 Oct 2026 00:06:12 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1])
	by sea.lore.kernel.org (Postfix) with ESMTP id 77EAA2E2B0; Wed, 14 Oct 2026 21:03:13 +0000 (UTC)
X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 0B7E44A261B;
	Wed, 14 Oct 2026 21:03:12 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=tipi-net.de header.i=@tipi-net.de header.b="yIkCqM8V"
X-Received: from mail.tipi-net.de (mail.tipi-net.de [194.13.80.246])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2F5B52D7DD8;
	Wed, 14 Oct 2026 21:03:06 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=194.13.80.246
X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;
	t=1792011791; cv=none; b=k6T8irF+ZeVWO5RLIa/hELT6fzuC+zNyJRZDNy0VIIIcChSpJ4gccaZOhRvAth+ysT+oVXCXcU6Dt0OZshoAx4YFHRnC+omxrQSkRWt6kBty7fVXI8fCjSQiPWgieNFPhsSXYMP6hjgtNim0asu1PXHkz9IEqnZw1t8betJ9Ado=
X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org;
	s=arc-20240116; t=1792011791; c=relaxed/simple;
	bh=SqjFtcMUiykXxYPVsn6NLogUDEnJnLN8ZRQiWX6Puok=;
	h=Date:From:To:CC:Subject:In-Reply-To:References:Message-ID:
	 MIME-Version:Content-Type; b=KcwNDTAjWR6B/z2ckhSE4rDSLeOXdjSrEa2szqzCAO2N3j/rL/iZd7wmc9cyNBUmbkICX+CkyBWMlg7UZelgMwomtLBkZPAYvAVxO8aSxiD/3HXcoGpxCmeWyw9onpI8+UF2B7VB0WNMtJxyC4NWTuCl08Jtzuvgr8sRoXt1Eck=
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=tipi-net.de; spf=pass smtp.mailfrom=tipi-net.de; dkim=pass (2048-bit key) header.d=tipi-net.de header.i=@tipi-net.de header.b=yIkCqM8V; arc=none smtp.client-ip=194.13.80.246
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=tipi-net.de
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=tipi-net.de
X-Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id A5F15A158F;
	Wed, 14 Oct 2026 23:02:52 +0200 (CEST)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tipi-net.de; s=dkim;
	t=1792011778; h=from:subject:date:message-id:to:cc:mime-version:content-type:
	 content-transfer-encoding:in-reply-to:references;
	bh=SqjFtcMUiykXxYPVsn6NLogUDEnJnLN8ZRQiWX6Puok=;
	b=yIkCqM8VXYULT4KSbksQvh0J7Tj15J46cr34YtosYI+MjN0Qk5769F9P5w48F1OB0hO8NY
	pNbnddSbAdW7N+NXrJnwhCD1yKwuI+R8VW88csJuiShpMYw7uFaeel2BUQH4vPdQOhYD28
	yvTpcN52JWnyPulsJ+WwN9zZAtkZ4w+5OowTW6E+7A/S8UYV7yxAvT4LXOAh/L6aB8Vzl4
	lbDcYE+Hmrw2M7T2zY3ZPtju8277v6m3C2XptLTMAwxS7uQIctI1WXhjCDTxrY+RhrjIPU
	yXH7MMdMrWrRib0sHpB8eTrNmO9wF+K5NQMpemE2L8DPo7STohPRaJl25S8bOA==
X-CC: "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@kernel.org>,
 Paolo Abeni <pabeni@redhat.com>, Simon Horman <horms@kernel.org>,
 Oleksij Rempel <o.rempel@pengutronix.de>,
 Maxime Chevallier <maxime.chevallier@bootlin.com>,
 Andrew Lunn <andrew+netdev@lunn.ch>,
 Maxime Coquelin <mcoquelin.stm32@gmail.com>,
 Alexandre Torgue <alexandre.torgue@foss.st.com>,
 Jose Abreu <Jose.Abreu@synopsys.com>, Saeed Mahameed <saeedm@nvidia.com>,
 Tariq Toukan <tariqt@nvidia.com>, Mark Bloch <mbloch@nvidia.com>,
 Leon Romanovsky <leon@kernel.org>, Dragos Tatulea <dtatulea@nvidia.com>,
 Alexei Lazar <alazar@nvidia.com>, netdev@vger.kernel.org,
 linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com,
 linux-arm-kernel@lists.infradead.org, linux-rdma@vger.kernel.org
X-User-Agent: Thunderbird for Android
X-In-Reply-To: <20261014130618.4c50f817@kernel.org>
X-Precedence: bulk
X-Mailing-List: netdev@vger.kernel.org
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-Last-TLS-Session-Version: TLSv1.3