Article View: linux.kernel.netdev
Article #6255Re: [PATCH net] net: shrink the payload-only part of skb dataref to one bit
From: patchwork-bot+netdevbpf
Date: Thu, 22 Oct 2026 00:50
Date: Thu, 22 Oct 2026 00:50
27 lines
8684 bytes
8684 bytes
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@kernel.org>:
On Tue, 20 Oct 2026 17:19:54 +0200 you wrote:
> skb_shinfo(skb)->dataref is split in two 16-bit halves: the lower
> one counts all references, the upper one the payload-only (nohdr)
> references.
>
> __skb_clone() increments dataref without bound, and skb_cloned()
> only checks the low 16 bits. With 65,537 references the low half
> reads 1, the head looks private, and pskb_expand_head() (or
> skb_unclone(), skb_cow(), ...) frees it while clones still point
> to it.
>
> [...]
Here is the summary with links:
- [net] net: shrink the payload-only part of skb dataref to one bit
https://git.kernel.org/netdev/net/c/4957ea03bf26
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Technical Details
Message-ID:
<179263020632.1386998.2635338271651886674.git-patchwork-notify@kernel.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-350331-linux-kernel-netdev=dewy.ruReferences:
<20261020151954.22953-1-edumazet@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-350331-linux-kernel-netdev=dewy.ru From: patchwork-bot+netdevbpf@kernel.org Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net] net: shrink the payload-only part of skb dataref to one bit Date: Thu, 22 Oct 2026 00:50:06 +0000 Organization: Usenet Network Message-ID: <179263020632.1386998.2635338271651886674.git-patchwork-notify@kernel.org> References: <20261020151954.22953-1-edumazet@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="98679"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:FSbRiApW/z4rdH6hbfXq7wvcHOo= sha256:5XGnlFejDY/UGpw4SxKadLytywH3Qg5eIcB/j/l0ODk= sha1:jv13DiYzpvJoEngOh96hgaEOmFk= sha256:7skA5XbSMdJJX3Kn9Fz7FHpTalH9YQJO1m1qmW8j/JY= 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 88D20111171; Thu, 22 Oct 2026 03:50:41 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.401 X-Spam-Status: No, score=-3.401 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, 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=kernel.org 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 BQ9oyFMavW8d; Thu, 22 Oct 2026 03:50:38 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-350331-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id 2B298111135; Thu, 22 Oct 2026 03:50:29 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sea.lore.kernel.org (Postfix) with ESMTP id 868273831C; Thu, 22 Oct 2026 00:50:09 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1792630209; b=VtzD1nUkzG3aAQ0dLXuIcJsl1B/CsLXZJEdHHHVlBt2gyaeLTEqWgm1yqIaF0a2Mg1gb QGb6CxiicVi6mld5bcCLteFBiBJ8UBJ3yjWOzx1ts2ARY84EbtR9yg0rjdQYhEbyOk7hl srd3EUdyU0z4a81m2SVMOHBCk6OuxzAIV9NmDcnZ7Ht4WCqMiqnQ0pJT3GmNFwnP+5LhR d64+rWFqHNfP4SkLHLiWBLmQ77qJsDIUfWGoy9j5canJEIhNBhtZ/op/ue0jlEWjBXNfx 60IQTBMS/2ziKXM7wOAo6eeRbRWJ/eBdPPQ6l/vmCZIzqi6Hv0U7U+u3tmZ1eQxWGoQ== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792630209; h=X-Original-To:Received:Received:DKIM-Signature:Received:Content-Type: X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe: List-Unsubscribe:List-Owner:Precedence:MIME-Version: Content-Transfer-Encoding:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; bh=8Q8KgXaHFy0aDDPTNMLkRTbaKKT0iVWcByQhHqS794o=; b=SL0DZdIt9t9K9vvRH0ofSYCoZEHScWq4WncLUrxjRRi2w5g1+X0TVS7/JqLzR+DD8w20 mFU1QOTudyU1CEj/GujuJltXkmtKU1IvTA67qNkNjyekPI1Xf5jN9MJ4mzh/xLXRQbCh8 BbedzH5OBksmTqQA/pSJlu0kNnvgqzvS19ApHydlkZQnyHnN7Xt1VPp55S2M2VOhc/Oua +df6gl9Sp35i2L0EULEu4G3bAwCZKR9mdt+rEkOVJemUtOrmj0MBT77A+kKnohW5HZxuG C/C/Q4v2XcmtbPUl/B/HWdSuODJyJj/0bggdJy+aDfazghKsKzJcQWcgrBOlymx1RZQ== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=A1O5qM56; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5E252606A31E; Thu, 22 Oct 2026 00:50:09 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=A1O5qM56 X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1792630208; b=OR3Il8Bw0o+MHkXb+IaGpUzpLRkcAASWnCvI/LimJfeeCa2/C1gUnV4GvKJjUmND0+FK OFL6PDYyFG1NXfbBE24diYRwl2h3cuUTUNB5FwmmWuvxH52UITd6tXjL0zmY8eap/t4vk 1Gz5zQdyM2iBSe6CWsG8u3H1V2jNB0sOmxuhfcp75mTYBFj69nTm8lCPg/pX5ZZEN7qbC L7rWz+TRqF2/la9SQDlxYDHdbqFxNQvZAQW7Bl2lNgp9KFravA4OMBpuSLnYBCpqZsuw1 xEvN7bJuHk2Cm6/xl6gq8d9w3HEgOPhhY/Ka7zjlXZ12SSPLnYYWESVmXIOrj1A07kg== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792630208; h=Received:DKIM-Signature:Received:Content-Type:MIME-Version: Content-Transfer-Encoding:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; bh=8Q8KgXaHFy0aDDPTNMLkRTbaKKT0iVWcByQhHqS794o=; b=scZmZ6wfbfqYvw4k52r41aTND8IFPVMUYPEB7jFzpH6K133qQOYQbiOv/5P1IN1YJyNR CpnBfbem0WuvKDqLjGTYdxuus+BLIFeUWJgqAcQ8727xXJX4Mksb7Cg0iCI4OGwNtWTn8 1BqjIfpbfir9Phrosg4smSemC0PnNsI0dL6sMjaw+tZiPomN4UuNfNqVgoqoraUePF5ja BRLiRZdM4qpFo9idK/jLKeQoazGH+RMMnBtB9Jju5CDLGeA0WYD0avQ0a0nM9uC8eZWBQ RXiCZfiyLQxahSOOsnXEDb+az5Jla0Dd+AmdGNzgOrKjJDmxBM5jOCqtlJV9BP8fxcw== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=A1O5qM56; arc=none smtp.remote-ip=100.103.45.18 X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 40E3A606A327 for <netdev@vger.kernel.org>; Thu, 22 Oct 2026 00:50:07 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id BD4031F000C1; Thu, 22 Oct 2026 00:50:07 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1792630207; bh=8Q8KgXaHFy0aDDPTNMLkRTbaKKT0iVWcByQhHqS794o=; h=Subject:From:Date:References:In-Reply-To:To:Cc; b=A1O5qM56qT88BaFVmkCvw97/Mx0lyQg/KzqxxqAoN2BNPAYuhnK+WzLXwm8AgZHb6 VlyREr+66DD42jev+n1yMNroQ3v8HMKzfNID04SFr9IKWvheOmvKZu+Ne7jrboByH3 2x1IDS4ZajF6AuBzUJK4FH1qNFv6TU9oY5cxBI0AcPI1mjns2xDW4LtVrj/uJ/GoQJ +GG7wkqbw2N5wuKsTLZhhnI75dq7WlL7WOaHqFc+244+s6WrT6zKyob0xOtxuGzHg/ VbTynkZjOtSRBPwQ2Cql3jZqGc4AvUz2wFOL0heBh3nDXGhoulS5Hqi4SxhAYG0gFL 6IzeYjMcMcuXw== X-Received: from [10.30.226.235] (localhost [IPv6:::1]) by aws-us-west-2-korg-oddjob-rhel9-1.codeaurora.org (Postfix) with ESMTP id B4337380A963; Thu, 22 Oct 2026 00:50:07 +0000 (UTC) X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list X-In-Reply-To: <20261020151954.22953-1-edumazet@kernel.org> X-Cc: davem@davemloft.net, kuba@kernel.org, pabeni@redhat.com, horms@kernel.org, netdev@vger.kernel.org, Stephan@adalogics.com