🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #22982

Re: [PATCH net] xfrm: interface: drop non-IP packets before pskb_inet_may_pull()

#22982
From: patchwork-bot+netdevbpf
Date: Thu, 26 Nov 2026 09:00
30 lines
9077 bytes
Hello:

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

On Thu, 19 Nov 2026 13:08:14 +0800 you wrote:
> AF_XDP sockets bound to an xfrm interface submit skbs with
> skb->protocol unset (0) and skb->network_header still 0 from the
> __alloc_skb() zero-initialization; skb_reserve() only moves data
> NET_SKB_PAD bytes into the headroom.
> 
> Since commit 86de3a1118a16 ("xfrm: interface: validate the IP header
> on xmit"), xfrmi_xmit() calls pskb_inet_may_pull() unconditionally.
> For such a skb, pskb_inet_may_pull_reason() selects nhlen = 0 for the
> unknown protocol and pskb_may_pull_reason() receives
> len = skb_network_offset(skb) = network_header - data = -64, which as
> unsigned int exceeds INT_MAX and trips the
> DEBUG_NET_WARN_ON_ONCE(len > INT_MAX) in pskb_may_pull_reason():
> 
> [...]

Here is the summary with links:
  - [net] xfrm: interface: drop non-IP packets before pskb_inet_may_pull()
    https://git.kernel.org/netdev/net/c/e509726660dd

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Technical Details
Message-ID: <179568360577.1684356.12907143611601535467.git-patchwork-notify@kernel.org>
Path: mbox-mo1.pugleaf.net!news-sfo.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-371974-linux-kernel-netdev=dewy.ru
References: <tencent_46F20906773869221623F9FA26275C133107@qq.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-sfo.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-371974-linux-kernel-netdev=dewy.ru
From: patchwork-bot+netdevbpf@kernel.org
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net] xfrm: interface: drop non-IP packets before
 pskb_inet_may_pull()
Date: Thu, 26 Nov 2026 09:00:05 +0000
Organization: Usenet Network
Message-ID: <179568360577.1684356.12907143611601535467.git-patchwork-notify@kernel.org>
References: <tencent_46F20906773869221623F9FA26275C133107@qq.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="422004"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:EE4oA+clb/vInrZNRvtw1X0n4Hw= sha256:mEZPiHCJIIR2G4KKEc7PUyN3S3AaQDJULfALuZBM6JA=
	sha1:2p70oRNUVZHxe7C0wIc5L0KAA4I= sha256:xSyCCuYC2wH/kVMrbS7Z/T5aZ8ZygPldi0TA6dxuJM0=
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 0780B125EB7; Thu, 26 Nov 2026 12:00:31 +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 qPJtx4HHoeVr;
	Thu, 26 Nov 2026 12:00:27 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-371974-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 7BA10125EB5; Thu, 26 Nov 2026 12:00:19 +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 027084622B; Thu, 26 Nov 2026 09:00: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=1795683608;
	b=pDcyI6V92PlHMeVBDCDlJ+9dujBfMthu6AchymWseMUvyJ1Lo1uIXWJMxzmY2sXSLdrK
	 pSTV7NsnrLCIN3G9Is0niLBKFLSGfD8TZE198tWwxxbZiGhKWhh3+SMyyKTcLg4F6N/DH
	 fKRDwCtgjfap4pwPDB+1jTOCt6dHeSh0DZ4akk5L27wDG10PPWORUwxC/lNo/twOMzUnM
	 vh8DdAKZAyXZxVJQALovl3ux7mJXzMiL3VHhpBy/EfL5bAOFncOi07Wie8YFWbye0sLQZ
	 SYf+gFbDEcNHHZmfONzAii+GGpW/qkhLsLCf1Qcn9+MR2aDeqA064DDmkMbHgvVip2g==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795683608;
	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=TEgty31plzkgiOVV+GRpxhDGlFoQNh5kg6i9e3toEk0=;
	b=3L3hNFSwY6lVg/gB6PKgdV6KPCPWyN8kUlgwIZjfv7WrN32QGXhtLqg1LIFqrO9DupK2
	 rOyWyrX+rm3s2cWnoE035uSoI3zdqIRyTEL+JMgjNnb+kHQY+0Dj+RU0QNhVin1Dbjgh2
	 W9+P4ucnRrlMNSPdiIMHE6RlrUr0X6pWVgGDxBMXDZIRq/v7Xk0tlzPMWTvk/o0bDd/vJ
	 TYQaD5UOXYbGMfeU5NECYNEY52C6QoaT5cnHDRU/tNCF0EUw3m4BA4RhmOw1kFQwE6Otc
	 GCROFhT+o6mWuQb78GreBilx+CzxGma+2Gn3vE+wHdisShg44yid7dyxMIGZTH14S5w==
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="bCYCE/nH";
	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 AA992606A330;
	Thu, 26 Nov 2026 09:00:08 +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=bCYCE/nH
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=1795683607;
	b=NU5+QPsqAy9sIPK99bW5yNqzUeR1yh476WoEb07hBWaxR5MzVx6u9g3fbzgUHQlNi7mE
	 o23tEoHqjwjz34NzkYlvOgjDhvP75EPcJcRwOOQjct5QVx2I+9IXsECxtNaZKV4BNdoyt
	 ZN6jPGgxd0xIuNLupJfLRCpjY6FiP+RlP+gy1tMDMEqnEqh8PtXw3dU/OUoVTuR3bHPUG
	 Yi+GjysdStXMPrVMNP5yGcT2dF31murO+rZrcFMN6/IaVWtrk2NfjWq75GTByRRLMrx5D
	 d+DWrm2f9J+frasRViGUf5Eso7gnGZDrbjKTmcxXmY0pg6hpgzICJnMHfXhCKNLKIDw==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795683607;
	h=Received:DKIM-Signature:Received:Content-Type:MIME-Version:
	 Content-Transfer-Encoding:Subject:From:Message-Id:Date:References:
	 In-Reply-To:To:Cc;
	bh=TEgty31plzkgiOVV+GRpxhDGlFoQNh5kg6i9e3toEk0=;
	b=HEDKCrt89MpUBJalc8ErUVj+flnJO/xtJ7wWhm5yJ74apY4ytjNYWKAT2zj7JbBigu7E
	 UlIT/h6rGLOCyx2j3WzhwNPzwxBQFBCEQJtKBGZT6tLrl3zhUt+pdgCLrCmTOB9nxAgq6
	 f6mrBvSzWdCS6RmDE6fNB2zNCxw6ewbFqQtFH6b8rGfP1xzI+g42AQhSwn2oyjOZCh0eY
	 P+RWq+/3prXNPkjB65q9HcGyWy3t3X8LEqjN5Xrc8FqxUpS2D2L5ic8awlcQr9qgouCqp
	 ALOP8I1KmM/02w8WN6RX+hZQ10I+sTZuEw39q8BtdX+sirSqzSZkp7e9V9qUX67G6RA==
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="bCYCE/nH";
	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 CD8DE606A338;
	Thu, 26 Nov 2026 09:00:07 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 496B21F000EB;
	Thu, 26 Nov 2026 09:00:07 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1795683607;
	bh=TEgty31plzkgiOVV+GRpxhDGlFoQNh5kg6i9e3toEk0=;
	h=Subject:From:Date:References:In-Reply-To:To:Cc;
	b=bCYCE/nHRSKP/UNvufNeEqDJrkQsJHBG7SBSEUH/esRg7tCuaa9+7Bu0JJjVnCxPT
	 608gbd2JT3CQuglJoqSdZW9/hAACpM7AO+gxpPSfEWfZuOVVedYpYBvUeFnQ8iAmm5
	 LIP3JRUwXCln/p2SJBljSywUTxwWgsxtuwbh6e4644UvrVNa0EdmjVWRMDe5K+IKYi
	 Fge9vGSU5pRgsNxnJEoU4X+hEvPK+JbkoefyX0w/1OMT4u0ROYxyhuGs0NAl61oYtw
	 KEsHt8PV7ev6UmwRUh2KTNPWUc65pXVgatXWu/DPW0NsrYPLb+S02Oij1o1N4WOaJQ
	 XPFcMvanlzqAA==
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 3A5D43809A8F;
	Thu, 26 Nov 2026 09:00: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: <tencent_46F20906773869221623F9FA26275C133107@qq.com>
X-Cc: netdev@vger.kernel.org, steffen.klassert@secunet.com,
 herbert@gondor.apana.org.au, edumazet@kernel.org, kuba@kernel.org,
 pabeni@redhat.com, horms@kernel.org, q.h.hack.winter@gmail.com,
 stable@vger.kernel.org, syzbot+d29af9ef5c96a3f5e96c@syzkaller.appspotmail.com