From: patchwork-bot+netdevbpf@kernel.org
To: Shuai Liu <847807867@qq.com>
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
Subject: Re: [PATCH net] xfrm: interface: drop non-IP packets before pskb_inet_may_pull()
Date: Thu, 26 Nov 2026 09:00:05 +0000 [thread overview]
Message-ID: <179568360577.1684356.12907143611601535467.git-patchwork-notify@kernel.org> (raw)
In-Reply-To: <tencent_46F20906773869221623F9FA26275C133107@qq.com>
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
next prev parent reply other threads:[~2026-11-26 9:00 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-18 16:14 [syzbot] [net?] WARNING in xfrmi_xmit syzbot
2026-11-19 5:08 ` [PATCH net] xfrm: interface: drop non-IP packets before pskb_inet_may_pull() Shuai Liu
2026-11-25 12:22 ` Paolo Abeni
2026-11-25 12:24 ` Paolo Abeni
2026-11-25 16:26 ` Steffen Klassert
2026-11-26 9:00 ` patchwork-bot+netdevbpf [this message]
-- strict thread matches above, loose matches on Subject: below --
2026-11-26 3:04 Shuai Liu
2026-11-26 3:05 Shuai Liu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179568360577.1684356.12907143611601535467.git-patchwork-notify@kernel.org \
--to=patchwork-bot+netdevbpf@kernel.org \
--cc=847807867@qq.com \
--cc=edumazet@kernel.org \
--cc=herbert@gondor.apana.org.au \
--cc=horms@kernel.org \
--cc=kuba@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=q.h.hack.winter@gmail.com \
--cc=stable@vger.kernel.org \
--cc=steffen.klassert@secunet.com \
--cc=syzbot+d29af9ef5c96a3f5e96c@syzkaller.appspotmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.