Article View: linux.kernel.netdev
Article #8640Re: [PATCH net v2 0/5] net: fix eth_type_trans() crashes on skbs coming from the stack
From: patchwork-bot+netdevbpf
Date: Thu, 29 Oct 2026 16:30
Date: Thu, 29 Oct 2026 16:30
36 lines
9535 bytes
9535 bytes
Hello:
This series was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@kernel.org>:
On Wed, 28 Oct 2026 13:26:58 +0100 you wrote:
> eth_type_trans() assumes ETH_HLEN bytes are present in skb->head.
> NIC drivers always provide this, and they should keep using the fast
> version, without an extra pskb_may_pull().
>
> Devices looping skbs from their transmit path back to their receive
> path get skbs built by the stack instead. tc actions (act_vlan pop_eth,
> act_ife decode), BPF helpers (bpf_skb_change_head() before a redirect)
> or OVS actions (pop_eth followed by pop_mpls/pop_nsh) can leave fewer
> than ETH_HLEN bytes in the linear part, and eth_type_trans() then hits
> the BUG() in __skb_pull().
>
> [...]
Here is the summary with links:
- [net,v2,1/5] net: add eth_type_trans_careful()
https://git.kernel.org/netdev/net/c/2519a6fe7a8b
- [net,v2,2/5] loopback: use eth_type_trans_careful()
https://git.kernel.org/netdev/net/c/093a28998374
- [net,v2,3/5] net: use eth_type_trans_careful() in __dev_forward_skb2()
https://git.kernel.org/netdev/net/c/695e1408eb90
- [net,v2,4/5] openvswitch: use eth_type_trans_careful() in internal_dev_recv()
https://git.kernel.org/netdev/net/c/b55e5a0159c8
- [net,v2,5/5] net/sched: act_ife: do not consume the inner header on egress
https://git.kernel.org/netdev/net/c/498c631f9c6d
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Technical Details
Message-ID:
<179329141129.559085.14393528345528530000.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-353382-linux-kernel-netdev=dewy.ruReferences:
<20261028122703.2093730-1-edumazet@kernel.org>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-353382-linux-kernel-netdev=dewy.ru From: patchwork-bot+netdevbpf@kernel.org Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net v2 0/5] net: fix eth_type_trans() crashes on skbs coming from the stack Date: Thu, 29 Oct 2026 16:30:11 +0000 Organization: Usenet Network Message-ID: <179329141129.559085.14393528345528530000.git-patchwork-notify@kernel.org> References: <20261028122703.2093730-1-edumazet@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="2050439"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:WU0Ju+JZgNq5mGKvCgjk0ULaM9g= sha256:K+lXFzxaTXDvM50+7beX00CnCnV9btl9Q2YP9KaivXY= sha1:EH3mzZ8o9V8qwiVnbPEs4k38a/c= sha256:QyeVlccQ+AcaPx813RQhnUkntn4nj8ToWnVGQQUgro0= 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 1E029125C6B; Thu, 29 Oct 2026 19:42:24 +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 c6yfEdQGbyA1; Thu, 29 Oct 2026 19:42:20 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=netdev+bounces-353382-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 sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4]) by mail.dewy.ru (Postfix) with ESMTPS id 3E396125C69; Thu, 29 Oct 2026 19:42:11 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sin.lore.kernel.org (Postfix) with ESMTP id 92F292C3B0; Thu, 29 Oct 2026 16:30:34 +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=1793291414; b=rwH2YY+hyV0mZ0wWl+VNPT3Wjkl0EGJRMdSeFuWrE9dwtH3rDJ9qZCKrWajKofymTMwK X9B9C7HdHpgakHvqgijDVS6502a3Yg4A9GY7qZP4GdXuaDsSoJdlgLp08olibFWa6YsQo PoJf0yfzf4qNxGPUX5oHyCH2GEgV4amIUBrVS/RuJQ+1+hDJJR0hriNKtZub+ykhm/6ku QEQAmqrRGMcGZpuIG3yEb+cJpJiP9ooK4iUIsFPB1raO5hkelPSoxF23jW9LKk5hRi0dP xON4C94VbepoLWTbVnhXoEJwPK4f5ntaypyF7bmWRvr9Jl5ZaMSQcFFMvQfjWdpQdow== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793291414; 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=E19BMPrjdlaYAFVXrSdWhXQYi/WuuCVsgVtT7xwTeXA=; b=Q/s+PB+4xHMvvH3LwEziRRDP569aQd1KQw2N5mBzbRN38B+tD0TPI2BUKLNFaTfJX8F1 ywqVQ1k6nFKyoLkTb9BhZN7OCqXjeadUCTX4onLoc5LKTctq0olvqAX0AoEZzQcJJQKZ+ JrXMjIPMg/GxFBt5pFchZLrdCQGoqrxk/gvGPlqvPl2fRfxaASuc9DQm5PiWtHCuv1Qfl SX+SFKkIGSfFwp6qC/2DX8DW0hk8RrGVek/UWn2hHMce61be77aZrrPJK6djRb5ISpTGL Uc7M+i53NZGTztsw+fsRTx879KO2mc6Bl3spLTSOEH+RxSeUE3GWgtoiZRdMRDaNkNQ== 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="J4wlMw/x"; 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 5415160A2610; Thu, 29 Oct 2026 16:30:14 +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=J4wlMw/x 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=1793291413; b=c8K8muxPBsnAza48tSd8y2WPqKxS4jm9BtesRLNqAPyJzfUMYLAUlIbH3L6uSgIUDCwk Y9X/GxY9CaNgMczi3bwP4+qPdRQ6rWsYTzW17HgR6o77iUgEWyYmrPntiNWAZvd4gO/1W iGCMIS9SIpxHN4CancdDgOXVjbqTb9sCI08iEio16vgXU4gmYsVaf+tL89r3rUCpxS+kP 5VfPKhHVQwCmsKpAM20+ixi+Ksn5j3fQ2v0OKaMrobEeKTwsvS6XrM4iF7qi0EusUp25L 0BFG5mwleasJSkAze2xwbHs6EA/v42s2oasAncoQL/YAvbRFLrRDzqd7Kk5iaycCheg== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793291413; h=Received:DKIM-Signature:Received:Content-Type:MIME-Version: Content-Transfer-Encoding:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; bh=E19BMPrjdlaYAFVXrSdWhXQYi/WuuCVsgVtT7xwTeXA=; b=JEDGW5+WbVr+c8diZ+oZkrrJmurBgD0CAJuqc8PXR3UvHHmiNBICPGOH3X/xNCDC8u6y VLKzLZJWnhwTbyaOQxW+HK/gLcuKsJPmxAh4G7UxHQkQiZGTkWcYMCgNSc9LjamcWUY4/ tHbkAbCpdHmHWyWk6oxlUFKoe1t9UD47LpdRWOzidDeDUcDAUMn9b5pheJY0QnNw8XejV P/75ubu8kYaELwmBZZL4Zgbt8vsvScvsoyMX1MBNP3j/df6mGqT7EIAEQdZuxvfYAWfpx 3aa+O4kY5YTzOxZmtTPlUZgpfsiL8VmMfd7yTarHwfrlEUhmBh5YQ/qX/S8ZtvSmbaA== 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="J4wlMw/x"; 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 2B69260A2619; Thu, 29 Oct 2026 16:30:12 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id C24F91F031F0; Thu, 29 Oct 2026 16:30:12 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1793291412; bh=E19BMPrjdlaYAFVXrSdWhXQYi/WuuCVsgVtT7xwTeXA=; h=Subject:From:Date:References:In-Reply-To:To:Cc; b=J4wlMw/xPOQ0Mm5M+Ny4lcPeswTPGc8uRrX+SqYgZls5LRL/BZRxw+H42jMprvIcD TUqIMzkMScG+ObtvSxkjFVnBLuFZ4nmPUJJbY4QmUMU9N804GXtacVowSeW5ttTAKJ /yUzXQ5f1qJ2dyD7S8DFLhCeIRBTkaOW+ipcI9prRya98onzPUS5pZmMrr6+haUsSy BErW3F6HsrFYoEQj5hy8gzBYaec+tB6kC5cZnsk7mC209sCEvNBxEehtdLeJtLKmpv 7z23Hpdy59CSRcPwgQmfjqHyiDGbCUC33+Aq4FmdIHsCKAriTQFmB38CPcxX/d+yFM 7V6AXZXIqO/kw== 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 BA2C23808223; Thu, 29 Oct 2026 16:30:12 +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: <20261028122703.2093730-1-edumazet@kernel.org> X-Cc: davem@davemloft.net, kuba@kernel.org, pabeni@redhat.com, willemb@google.com, horms@kernel.org, netdev@vger.kernel.org, bpf@vger.kernel.org, andrew+netdev@lunn.ch, aconole@redhat.com, echaudro@redhat.com, i.maximets@ovn.org, jhs@mojatatu.com, jiri@resnulli.us, dev@openvswitch.org, willemdebruijn.kernel@gmail.com, weir@nebusec.ai