Article View: linux.kernel.netdev
Article #13481Re: [PATCH] ipv4: keep XFRM headers out of corked skb lengths
From: patchwork-bot+netdevbpf
Date: Mon, 09 Nov 2026 23:20
Date: Mon, 09 Nov 2026 23:20
29 lines
8866 bytes
8866 bytes
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@kernel.org>:
On Thu, 29 Oct 2026 21:22:29 -0700 you wrote:
> __ip_append_data() allocates space for dst.header_len in the first skb,
> but includes that space in skb->len until __ip_make_skb() pulls it.
> Fragment accounting uses an MTU that already excludes the XFRM headers.
> As a result, the next skb can have a fraggap larger than its capped
> datalen, and skb_copy_and_csum_bits() can overwrite its shared info.
>
> For example, five AH tunnel states can reserve 500 bytes while leaving
> an effective MTU of 348. With 40 bytes of IPv4 options, the second skb
> has room for 288 bytes of fragment data but receives a 500-byte gap
> copy. The overwritten shared info is subsequently consumed by the skb
> release paths.
>
> [...]
Here is the summary with links:
- ipv4: keep XFRM headers out of corked skb lengths
https://git.kernel.org/netdev/net/c/0f47fce51a98
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Technical Details
Message-ID:
<179426640593.3539542.14588290897473786391.git-patchwork-notify@kernel.org>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-359665-linux-kernel-netdev=dewy.ruReferences:
<20261030042229.74068-1-kylebot@openai.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-359665-linux-kernel-netdev=dewy.ru From: patchwork-bot+netdevbpf@kernel.org Newsgroups: linux.kernel.netdev Subject: Re: [PATCH] ipv4: keep XFRM headers out of corked skb lengths Date: Mon, 09 Nov 2026 23:20:05 +0000 Organization: Usenet Network Message-ID: <179426640593.3539542.14588290897473786391.git-patchwork-notify@kernel.org> References: <20261030042229.74068-1-kylebot@openai.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="472657"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:373Cr6YndtuqaJVguslNwRpdJ6Q= sha256:D4asGWxbkQJvjP4V1zOAfYF2zEQJ3IZgB4QYKMIrajQ= sha1:qJsa3gBzkZdPq41JadZ/Pj7PJ64= sha256:oSrvOZv40uI9FIm6DEesm83Q8jTbu0KRxrWCee/XPK8= 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 78BBB113978; Tue, 10 Nov 2026 02:20:40 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.501 X-Spam-Status: No, score=-3.501 tagged_above=-9999 required=6.31 tests=[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 5mi7qgw-sJiR; Tue, 10 Nov 2026 02:20:36 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-359665-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 sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74]) by mail.dewy.ru (Postfix) with ESMTPS id D1A6A113964; Tue, 10 Nov 2026 02:20:28 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sto.lore.kernel.org (Postfix) with ESMTP id E158560F780; Mon, 9 Nov 2026 23:20:20 +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=1794266415; b=Vlk+Q9R1ERJ1e8vX+5lwT+UV1Km396aHxzkJBQ9TPKJtIP00Lo31pZnqbznznDyavP7r zK5EtfQpr0L5CUrEajY3pga7y2PBpDOXrmduVAN4n0ZCZvIhWjYTyDQEKlwPDo4Rlgx2X +TOeLPogXdyXj+G0YL3k8QOjsUWlxexHVcH9W+t95gXZSkK/UItx42WILmJz5KC7sh5oV CfS+1OHHi818UlCKduq6psjgBKDLJQVX1qh35WEUnmV64h01QAOGWsIcSBhbZnHpiERC5 AiM9lGZvbzOMHj42031fcLsR5SoxsLsOM6x8uYLjSJ5AzF1wxWX05o4lRweOpcrQA0w== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794266415; 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=wFAP8r9CaQQlfx6iSws7XcCoEgxpI34vrJvw4H/11RI=; b=LDjG7MxlhrGa/KTHFfYMbdoFMo8zFy4xL3A00a3sm3liHg3lm1JC9bsIe2LGuP96eOvB FvYOAAudEsmR+bcyHTLCBJOSdI0lj9eFI38SUhZ9j0qmSLs3cV0IeFxs75x+A3USZeEyV KuAY6aXYpwUviCl2O0dHy5fJ/e9O/RlkVDEklh+dNc8AuRUtwiOZ0ZYNcPROZbdJ2KzNB +cmFnt/lcVZf7hDNc2yVcUHSOUFVkoKV4uN3+66oj0SMOVAGiQDfRiasSHILNNXVt4RVq GRLfaJi2A63knJOjorzojmWMsnza6v6C1JZswIrLo3YHYZmFo1Xp5rANvxbYWpp7EPg== 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="at/Voxot"; 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 11652606A31C; Mon, 9 Nov 2026 23:20:15 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=at/Voxot 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=1794266407; b=NweYO7y4TCOIGYruxJVuZCZXHMTdaP8cjBbu2d7tLEZmlAlV/fDkI85kZJjiAYpzNF+i 9AEcMSLMgzvUU+nc77M0o1ql/IirHMoRK+Rsj+LmyZKD7O++ex+f5vMs36PATmNkQPKjr QaFQFt5+u4wgnXxDPGuTacpHVrf6wLOFKwKfQ+XAd7g02l61uHTLx4JECKcxkjgIGwfcO sbXyiTWWZKIbxyWjfF+g3LCGfURAuxHBAp6P+IbOCI+khu4cpI6PsST2GG+zLLqbu07UP 26n2Oa2cActIU7MzkmYnqO08pgII3wyh3MGL4/CarNsrQG/XfWDWOTYqM/9L1VM2zGg== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794266407; h=Received:DKIM-Signature:Received:Content-Type:MIME-Version: Content-Transfer-Encoding:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; bh=wFAP8r9CaQQlfx6iSws7XcCoEgxpI34vrJvw4H/11RI=; b=RELOZnUI1h/XTO/f3Zmxajil3awhEKrK+e0H0BPpvoRXXCq6FqMlDEpMRX+8rgjhNI06 jIdDlcZHgje1uZ63p9kxYbdDBZgOloBIZ2ofmcHxenq6HNVacCOUyFx3H5O2zlQu8C5GH 2LtAJHKZ7u3HefGnjiue5fOzA96UmPhXdaDQQZGeq7R9MScJKd2q5rFH7AaFAzick468B /9pJHRhjMVUjV/se7wF+28bKNcfxq7UAgwBInDhdf0yvH4PrgAtf/dneSU14ifsa70XEC bDvu/U7xRDJ1xnesswg8pXYG5r6rMQ7szTey5bucb6QY0zNGCEGe7K9JQdoeAjFFAZA== 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="at/Voxot"; 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 8DB0B606A326; Mon, 9 Nov 2026 23:20:07 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2D6871F008A2; Mon, 9 Nov 2026 23:20:07 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1794266407; bh=wFAP8r9CaQQlfx6iSws7XcCoEgxpI34vrJvw4H/11RI=; h=Subject:From:Date:References:In-Reply-To:To:Cc; b=at/VoxotQ1gaLG12naEs/Lrq+/DMK+KU9jEfKRUMqib+2IZ2fTtdFlgB4Tmykv5N/ INWqsvL0dGsGPVgWf1/0dDeA4WQqEbSzdNRzcXaYwmSIUsOtWElcU0/yVSAVAglMjM atyCGMckMdf0jJG9GeBhcF0f3E7Px4H0/HeD7YctZV/bjpCgg4WS2XsMMJHnWHXdeV pF1MyyI+vIVcTIHTPm6U4kIhfj23ueMGbyVFYFKt8lwI1SmE5fPlE393St0lcVC9BG /c07Z6nOQKpb87LJXNVmvQHd+WzGitxGCKQ292zho4IQLrD7ZaeUaaPiMfFrqfxO4p 9txLQFRDJqO2g== 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 210B3391AF99; Mon, 9 Nov 2026 23:20: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: <20261030042229.74068-1-kylebot@openai.com> X-Cc: netdev@vger.kernel.org, dsahern@kernel.org, idosch@nvidia.com, linux-kernel@vger.kernel.org, outbounddisclosures@openai.com