🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #19207

Re: [PATCH] net: prevent receive header offset overflow during decapsulation

#19207
From: patchwork-bot+netdevbpf
Date: Thu, 19 Nov 2026 14:40
26 lines
8990 bytes
Hello:

This patch was applied to netdev/net.git (main)
by Paolo Abeni <pabeni@redhat.com>:

On Wed, 18 Nov 2026 08:32:27 -0600 you wrote:
> Repeated decapsulation can leave skb->data far from skb->head while
> the remaining packet data is still valid. Since the skb header positions
> are 16-bit offsets, a later header update can truncate and make header
> access use unrelated bytes and eventually crash.
> 
> Limit receive headroom to 32 KiB. This is well beyond the headroom of
> normal packets while allowing the networking stack to pull enough
> headers in a single pass without overflowing 16-bit header offsets.
> 
> [...]

Here is the summary with links:
  - net: prevent receive header offset overflow during decapsulation
    https://git.kernel.org/netdev/net/c/b10c986f1769

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Technical Details
Message-ID: <179509920504.3130597.3198388033732007048.git-patchwork-notify@kernel.org>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-367090-linux-kernel-netdev=dewy.ru
References: <20261118-prevent_rx_header_offset_overflow-v1-1-92a5be55f994@cloudflare.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-367090-linux-kernel-netdev=dewy.ru
From: patchwork-bot+netdevbpf@kernel.org
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH] net: prevent receive header offset overflow during
 decapsulation
Date: Thu, 19 Nov 2026 14:40:05 +0000
Organization: Usenet Network
Message-ID: <179509920504.3130597.3198388033732007048.git-patchwork-notify@kernel.org>
References: <20261118-prevent_rx_header_offset_overflow-v1-1-92a5be55f994@cloudflare.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="2902587"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:/yTdA10hivOvOWzfWbhfDqBDksA= sha256:bSIZgD7DeX4CZeOw4HNLwD/h6UcTX9j/5KIdFLZuNQs=
	sha1:zV5Hb/RKkaX94obAPaql9snWtgA= sha256:GjtyZhpop8Jns4XVmiumh+k4rrmVEPzsc2XDkiv1HUo=
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 626A21156A5; Thu, 19 Nov 2026 17:40:30 +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 6kq06mrsP7_4;
	Thu, 19 Nov 2026 17:40:26 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-367090-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 1BC6711569D; Thu, 19 Nov 2026 17:40:15 +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 5F2D5109261; Thu, 19 Nov 2026 14:40:08 +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=1795099207;
	b=5GN4OdqW4EoWjg5invhjzbl9U95FNb5dwDJ0yfwDexv4800j/VP1uLjjKd5eqHXV1T+a
	 5Whm7Q+3GtFsvJBwb6WM/MWvTC90+luMdur1ctgPDR/JAlBeARTx+BV68oJefaDJLMqUP
	 sexhz+CfRi39vvPMto0/3VLFwtaBIpsWPDNFQ6f1Mcqyc4E6wzUZgHkkczFFpXNZyuuM4
	 KAoPvi6jXIlBKSIx9l4T8uoBjhKPBeytg4BLaC46nxUJXekwNoD56BkwNYHk+3ubSe57y
	 HPkFcgta8U9gKJdS5dnEwYFaqACf/T6ZAMMijlZo3S1mCG2dWumdMX2EzVhggYlhPYw==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795099207;
	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=JZZeuN46WZUONBawEx9Y/62cwogowmJ6fVZH44nD2QI=;
	b=j5eYcTLcN2zB1O+YXXZCFcG/3SjAKNkAtqG/IgGcaGGxblTwWkkEUFEfBCPtKpo9lDSw
	 LYB/fY+IzrjC/nqjuxzM7PhoR3agJns9n+bKe4viBC+fvsZj0nCPm8mLoKtCA2yvLKAgY
	 4FxvYAdQQ+JbvQAzXa2fC1vkn//2Z0KXhfSP0R5X29Tu0fBhP3h0Ir60HSBGUZwUnjgF8
	 DLMHeetQxkRV+rhLKgCrupDlYx7AAWaz/50BZqbDexryc1NSJVquLqYXdAMIeOZT8Q1sD
	 T4u1PqpTko1PFoPjiaB7Ftd2PhaWgRd94Kh8PjghYIBDGSX52AubNTUCnRrBX7U/VdA==
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=F7dEcQrt;
	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 67454606A333;
	Thu, 19 Nov 2026 14:40:07 +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=F7dEcQrt
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=1795099206;
	b=xMnKZis6eq3fEFCwl9RJykwId/85ia1Q5R0anZkJQH2ewD3/8e1CMo1Fafte7JE1O3Tg
	 aul+mqe5RlSzDNTXhIVJ5ZZpmWswBFxG71kqyoRXE0DcT9YIbilhErJUYma4SZP3QSOVb
	 j+aW6xPjsPI1YB4UEzGslYmdsHnsUfdok4wRFf94RQgJ4vP0tD2SPQF5Xig6jrEovCvA4
	 KHkFuCy9O2Ju64qYB+wIds1EUAxk2rEHEjOPVgLiFV4YvhBeCD+JsMPmV0h87K9MQCQ8K
	 mTV6jVCZ+5Y+cwkwipl3NmNH0L27LqeuQZIQ1FxTxA/sEA5TPKHqsYbx4w6njO9PMvw==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795099206;
	h=Received:DKIM-Signature:Received:Content-Type:MIME-Version:
	 Content-Transfer-Encoding:Subject:From:Message-Id:Date:References:
	 In-Reply-To:To:Cc;
	bh=JZZeuN46WZUONBawEx9Y/62cwogowmJ6fVZH44nD2QI=;
	b=n1tFUyHOpkcN1TCNQccj5Z8UM3WDdvge5x3DKk6tZVDoPyEtm4E8YVjxEViUBFtR0K5j
	 F5TcobCCaV1iO20h/M6U+wB0I0/ckMgtbymPz0okVboc1genZdLsWxZzpd4pQt7J9a+XW
	 4cd2B9HGl4lD5JuPt5MZmZQPxcTg0NJ+iVJlKQDxSE/YEWE2mqHvIlirXXd1OdzzN4TSm
	 h8JV8Y031Dppv8rlNUYvSmKWDyl0RNGlni4cq1VGJAclazEYkMMfC2GSlkA5/f5I7zrpY
	 LfXukdj5O9yVmLe4rUhGOcIgXGJvYegiaYBcZvZsy8MQ/lKBwRBxmjAJdPNlY87yhcQ==
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=F7dEcQrt;
	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 83015606A325;
	Thu, 19 Nov 2026 14:40:06 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 440041F000C5;
	Thu, 19 Nov 2026 14:40:06 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1795099206;
	bh=JZZeuN46WZUONBawEx9Y/62cwogowmJ6fVZH44nD2QI=;
	h=Subject:From:Date:References:In-Reply-To:To:Cc;
	b=F7dEcQrtxKXxZbEkyXpeH9k94XnG16joMUzoWFZFIz8CrPodGVRjmUj9MSayvxk3R
	 7xM/Fpghy/FBDlINWbBOQ2sAbloPEYBbFbF294zAmVoNa0dsmeDu70Y60SNbn8aU4E
	 s2XabGxLmreEk8SBeS3gSPSOgeUMlE/c0EYOXrNfGNYs5sKZNjls9/2n89N6sBlG+0
	 k+bJ55WllWhz9enl0UM6wo0Edb7OcgkTRYDBTjogZVR3zbxEc637j2W3o+zvhvyHX4
	 dDv5Vr11MA/LSkBA3xk+76q137ll6TE2jOJ9YrmosRxkjY3z7NKw55XUvCnNvSheKh
	 YZFvRqprBAwOg==
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 3A45D3808210;
	Thu, 19 Nov 2026 14:40:06 +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:  <20261118-prevent_rx_header_offset_overflow-v1-1-92a5be55f994@cloudflare.com>
X-Cc: davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org,
 pabeni@redhat.com, horms@kernel.org, dsahern@kernel.org, idosch@nvidia.com,
 june@cloudflare.com, danjones@cloudflare.com, jbrandeburg@cloudflare.com,
 josef@toxicpanda.com, mason@kernel.org, kernel-team@cloudflare.com,
 netdev@vger.kernel.org, linux-kernel@vger.kernel.org, stable@kernel.org