Article View: linux.kernel.netdev
Article #6911Re: [PATCH v2 net] net: skbuff: propagate shared-frag marker in skb_zerocopy()
From: patchwork-bot+netdevbpf
Date: Fri, 23 Oct 2026 19:50
Date: Fri, 23 Oct 2026 19:50
30 lines
8995 bytes
8995 bytes
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@kernel.org>:
On Thu, 22 Oct 2026 18:42:17 +0800 you wrote:
> skb_zerocopy() moves frag descriptors from @from into @to and takes a
> reference on each frag, but it does not copy skb_shinfo(from)->flags into
> skb_shinfo(to)->flags. A destination skb holding the same page-cache
> backed frags as the source therefore reports skb_has_shared_frag() as
> false.
>
> That breaks the invariant relied on by later in-place writers. ESP input
> checks skb_has_shared_frag() before deciding whether an uncloned
> nonlinear skb can skip skb_cow_data(); with the marker lost, an skb that
> skb_zerocopy() built for nfnetlink_queue or for an openvswitch upcall is
> decrypted in place, letting an unprivileged user write into the page
> cache of a root-owned read-only file.
>
> [...]
Here is the summary with links:
- [v2,net] net: skbuff: propagate shared-frag marker in skb_zerocopy()
https://git.kernel.org/netdev/net/c/79dc34beb1fd
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Technical Details
Message-ID:
<179278500482.1232473.12604985616944843188.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-351201-linux-kernel-netdev=dewy.ruReferences:
<20261022104217.1852191-1-pointerliu@126.com>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-351201-linux-kernel-netdev=dewy.ru From: patchwork-bot+netdevbpf@kernel.org Newsgroups: linux.kernel.netdev Subject: Re: [PATCH v2 net] net: skbuff: propagate shared-frag marker in skb_zerocopy() Date: Fri, 23 Oct 2026 19:50:04 +0000 Organization: Usenet Network Message-ID: <179278500482.1232473.12604985616944843188.git-patchwork-notify@kernel.org> References: <20261022104217.1852191-1-pointerliu@126.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="596022"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:UBpzsTBQRkjKXSvQfS+7U9x+p80= sha256:dkBnTAiArTyEWlkDRiXTA9Wfip36jJrcN+2rpVyDrOM= sha1:M+TdcpRLNAuqA9azMx67aO0/b+M= sha256:fNH21nEjxI5qk+TmoxdlAv3KXyveCj+mhMgv1s2E9cc= 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 33845111568; Fri, 23 Oct 2026 22:50:31 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.739 X-Spam-Status: No, score=-3.739 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.339, 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 tB6zdlSXJcv7; Fri, 23 Oct 2026 22:50:23 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-351201-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 0732F111516; Fri, 23 Oct 2026 22:50:13 +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 C08D336BF5; Fri, 23 Oct 2026 19:50:07 +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=1792785007; b=BSZ2CckklgCqey/rYx8QLmnAaXhfY37bUGmcl5eF2PTJq+J/VzXP9aUNKtCJ4bKMEQy7 QK6HH53JJ0tVPxp12qNTClY8/CdJBmt4zTkkaT8jCOBiZe/+ROWq2WESh4xQlYW6mCuRt boHd1emUxeE+QuBA+vVnIa9+bpyRjSaBv4/0KhaZp40NTvRfmCrkChU10E8UUO2Gnc9Ju f5OXgIQNJzQLqKa7H7grxancW+S6ANyNnR+4Ki/X/xkqsFUV2kiqYH0rIRhZY/xzvCBz4 xANUSMHxaDkm9FH5uZx9zO+/i1Yen9hdN/YSNJLdi+55FCAVhqGTy/74E1ymLQYkVkw== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792785007; 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=mZkXPAO9NoiT4zn1vRnQZIpkDH56HNVNwT6aUunYgzg=; b=H7DIe84maQ78UPw64Zvnw5dfTj8O4ImjCkBYrX+5uVhRVg1Vk/nX7QakC/p11PJK0C8x iUDQrZHPaZWNMm59nvKR7VnMTic1MyDPeo2IVdgtxP3FXQFqBhXG0nEdVCAcIthAY27hw SXVj0eDIH4G1e1ip5+YPUgtujIVVoStw6Oegzk14YD2bqEl8i7GaDL4kEmIpajYtMkuzZ lvv14PPUI2JIvJwIX0dQaTBDhRtfHJTsh1HPZVyE0/XswEuJAUMgBXyBYUKyT49b0Aue1 tW1Uvk7XVkasEZ/KiP0bAO2Ns1Y5nd6PGGobHSg5CvgWkB0sbcpq293ieoJLWd4ieJQ== 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=Z0CX14yf; 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 850B4606A321; Fri, 23 Oct 2026 19:50:07 +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=Z0CX14yf 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=1792785006; b=XIyu6+vnxmc6XBry1Gxt+5Z/Ow+s8/PcgtGrKA4pXVH9jEWTjSUHjmCz0ECsBHkMmKWV H1NkI+/yu5lHff7L5umbZnmIjx8hfMT3H/bOUyd79o9o0vVsFab/dqKQ+ab8ejQM8IZV4 xMx4GHJV8j2B9ruI31+iriI+7BgUGZZX9EryW/OqM92hjwkI9mN2/Y6td/rGIyGmaXTT+ iOu3XRQDO4t4d33r0s/WnZbZHJBDT6ZpOk7GJGwdYv7uCugHtbA/za/Gfal12W3ZCZfTE /aZgVNXHy7SWpHziK9FrZ+dfKus9HDduI+4qQQGt7vxY/q0eJgm4Gr05FmCrHjitMRA== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792785006; h=Received:DKIM-Signature:Received:Content-Type:MIME-Version: Content-Transfer-Encoding:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; bh=mZkXPAO9NoiT4zn1vRnQZIpkDH56HNVNwT6aUunYgzg=; b=5OvKEcu/r3gIv/+RcVX8iUYSeKpIGn7rtzbHpit3KpXqOFItobsDPhcWU6OMPy8e1WA3 UQiDlGaSEnK2BN7Yq6j3kfLA+NkkLrm+dp75CBe4UeOepDrqH4v/eR1+3+ZUM82GwTyuk Zfo2KQTob+xexIx0LndVRlB9znPv8rQ90MwppG6JE6SW+4nwhii+mqnrt1FN9teOn436K aAQCtkTDGDdkTtsGbr4/HYGnAIMJrjdhmTlhUnBFoKt5iT2FuSMIMw0tAFxWlecs56oTj SIyFephSwEVfbLcQv5wespuBmSCX5T4ULtAXt52tyTN5SedVCW0yIKhbyURP6Pp1YDA== 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=Z0CX14yf; 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 5F9AE606A31A for <netdev@vger.kernel.org>; Fri, 23 Oct 2026 19:50:06 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id E73851F01825; Fri, 23 Oct 2026 19:50:05 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1792785006; bh=mZkXPAO9NoiT4zn1vRnQZIpkDH56HNVNwT6aUunYgzg=; h=Subject:From:Date:References:In-Reply-To:To:Cc; b=Z0CX14yfgk6VBq0VgBlfV5mt8sfY2E5VAKnk6BheNDTeepk05gPHgn+9x4j5ceV/o udOWwdHKg65y5HifjnEKSu85ccPJDFW8kzN1y1W83bVL5Is825Qaxk90PZwVbIZrOB 1SRnbg40CgrXJ/fHOSjMk5Nr0QFGZyzGkR0ELTwicWKU4bqmDa0vJnHkyp8UG0WTm5 wpHDPOoMcDM8uxN3Up1wDqUCzHWTfw3CHI1WAjXG/5GPEQeMzdH6sysgHvm57V29u/ i0im1GglgMceWwNsqQV4h0WMN9PbSTcjGwFj++/wbaxq7KWi3E73jex+JAFjdDfu2o WtEPyItk9GWKg== 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 DED0C391B153; Fri, 23 Oct 2026 19:50:05 +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: <20261022104217.1852191-1-pointerliu@126.com> X-Cc: netdev@vger.kernel.org, davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, horms@kernel.org, stable@kernel.org