Article View: linux.kernel.netdev
Article #16759Re: [PATCH net-next v4] erspan: drop packets with an unknown ERSPAN version
From: patchwork-bot+netdevbpf
Date: Sun, 15 Nov 2026 19:50
Date: Sun, 15 Nov 2026 19:50
29 lines
8993 bytes
8993 bytes
Hello:
This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:
On Wed, 11 Nov 2026 00:28:48 +0900 you wrote:
> The ERSPAN type II and III receive paths take the length of the ERSPAN
> header from the version field of the packet, with erspan_hdr_len(), but
> never check that the version is one they know: 1 for type II or 2 for
> type III.
>
> For any other version, erspan_hdr_len() returns 0 or the type III
> length. With version 0, the ERSPAN header is not pulled, so it is
> passed up as the start of the inner Ethernet frame, and in collect_md
> mode the metadata is filled from the wrong part of the header. The
> ETH_HLEN pull in __iptunnel_pull_header() still covers the bytes that
> are copied, so nothing is read past the pulled data.
>
> [...]
Here is the summary with links:
- [net-next,v4] erspan: drop packets with an unknown ERSPAN version
https://git.kernel.org/netdev/net-next/c/7ccc5e05043b
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Technical Details
Message-ID:
<179477220602.2712597.2387350653289450443.git-patchwork-notify@kernel.org>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news-can.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-363834-linux-kernel-netdev=dewy.ruReferences:
<20261110152848.23136-1-yanhaishuang@cmss.chinamobile.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news-can.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-363834-linux-kernel-netdev=dewy.ru From: patchwork-bot+netdevbpf@kernel.org Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next v4] erspan: drop packets with an unknown ERSPAN version Date: Sun, 15 Nov 2026 19:50:06 +0000 Organization: Usenet Network Message-ID: <179477220602.2712597.2387350653289450443.git-patchwork-notify@kernel.org> References: <20261110152848.23136-1-yanhaishuang@cmss.chinamobile.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="1886705"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:b7eT4d8bb+JEr3KcEI9Nktqgfag= sha256:JAkzWxz7zVO1R91UXHwwcGHxdsWK+DTM7II1E8fl+vA= sha1:rkYx4sENFs3m3P7/QcKHihHIdLw= sha256:hqfjaFlBGCxSrY0BSFIPW8tgp7XAfzWAM30tpYN5G5M= 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 55601114A4C; Sun, 15 Nov 2026 22:50: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 gFO1MxcApowf; Sun, 15 Nov 2026 22:50:24 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-363834-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 6ED0B114A52; Sun, 15 Nov 2026 22:50: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 415452E960; Sun, 15 Nov 2026 19:50: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=1794772208; b=Hp6aV3KK7dgwp0fmfLll7jvUJmXtFr40ivpSoLKA6Egajg3r0AoZjuVoriaevbJRHK0R ya6sJPLgmM6ChXUNB8Tt7UfZgP4uc8cs5lVEF6znM0TtFl8UgqEclr1X4Q6gVofSBDkQY m4PpqFKVlQA74ex1MrPKQVptRF7BrFicslzsrzd85Bzp+u4CQuRKtjMsd6HTcNJEF3/Cl 4G5Lzs8KAh57o91jfTJ3R2IVP1CbaywqqYUf7+WLVO3PqaBCDTyiYdO3ODwM6vHx4OnsU jscHyeXxkRKlHvo2ASHbFS/9WmyXUhYO1oIEYeG/TrCobUWwVfPSFnqUZ4gjLsycBOQ== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794772208; 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=O6G1Hb7w7HKu/DtXrp41mYowr753WjHlB5harznQUmw=; b=BMqxrGBHvS35tcrg1x1xOrsm+U7q4ZuHvMtgJNmYA1DTOAhzzglwg+K/4gubjQpVjw+3 iH0xAbGJPPWjB/cmvWwrAuCaZXASl7Ve1C8qMxNIOSQEeWmgoVqmZQe4m48eXdbKcADN6 PH99KKtTWpDSPe5RtI3Olt+TVDtsQPAJqJqtIfHd/+I7dKhYJcaRzl8fdffJc02mgBpsi sWpYIdK5IZ8vDdbdwzEWqyHXDGi4Gmz0iS2l4fHHa3BfW9wuwwUrKTc0o0XtcGSwGIoVh oOLawh1X4Ywn3LCp4ii7L1kNQeEBmpSK4Ex5+29Py9EsA3q5i2p5+GLFxUABsLZA5wg== 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=jHXKbgay; 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 84EFE606A331; Sun, 15 Nov 2026 19:50: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=jHXKbgay 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=1794772207; b=QSdsRl8lT66stsYqxVBeFtQx9p9loyCBDAmgetC4Xe/3BVzEh7Ec3aMj+3HSSCwUm3/k qwA5tAvjOrymkOl9xt6OjqO6KUg//9sEpQVUJq/qR7A3NkzqZgpM97+MgIiI6MzGNDoHt KV21tYbKeDy/oTaKn553X9JWK2lMGZvoLcFgTl6Z4Hl3KPRNbMomNDt4su+40DIn3a177 +T3Pq1beAWnP86c+RdWSmWjqVwKnnp1J1dK5KR2wTax6221xAea62lq/CeSWyCVfSF7/o NfsBYOt2/PkY7MOY+UTBAA5zWtfc7Y5Wrf2+GVX0xExTlwfYzcKPMaIerfxaylzxDWA== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794772207; h=Received:DKIM-Signature:Received:Content-Type:MIME-Version: Content-Transfer-Encoding:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; bh=O6G1Hb7w7HKu/DtXrp41mYowr753WjHlB5harznQUmw=; b=jxVn27n8nkux2bXOFf9JIuwEm4hBLQGfHSiVlF/H+tHVmDkEuXQUm4uCke3HuY85NOun hqQmmLdweuitY2hdKcnKh3gphpHxyZqkKvEvcQOJbxYnN9K5+SvWGYDzcPXrBIOSyLARv L/9vw5HCPwIf0Uu3NnO90BzUkO68/daL6QxFJEvZh3JatZ//XEIImcOJ/YO74F0bRvlw6 BuA73l9EyUlc8CPL4CToCk5nJ6JZebKrddsO6PfNh77/zloJ9H9OGLUqlASYIPIKvFk8a +jBMee65Lpp4Jrctp9opYxD3PXzhsEYxx2szvzWKFvcLnWF6m6Snv9SCR0HFCynxI2A== 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=jHXKbgay; 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 A692A606A31F; Sun, 15 Nov 2026 19:50:07 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 80A511F000C4; Sun, 15 Nov 2026 19:50:07 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1794772207; bh=O6G1Hb7w7HKu/DtXrp41mYowr753WjHlB5harznQUmw=; h=Subject:From:Date:References:In-Reply-To:To:Cc; b=jHXKbgayc+e4Z15JvHXBwHM2wEuFEfrEm8olU7Ftt4aNLuj20+vzz7/ghG/hKZZ0U +KBjE4lbXXpHXAcp2aZrhspjUViXJlXokH0RbmLuAO98rp9rLaVBo8BM5rRM11jSvn MoxuaWaQPHDpzu6O66fs0ys/4mp8JAOlaUkh4YlvnMbT6kaT8CTFBVKLnViVDosrrb 3nxlNBh3Q+10+aypLtNGs3IampyfYA0QrAmE4tKm8a8t8bLXbj4zg26YC/Y4aBeK+H vAk6RIr97h6CESbHjIC+efTfHVuS2UA+r/8Xs2RfECbQma8WTVdDC223ZyIWjPBlTH bRSDvPrSsRcrg== 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 773FB3808235; Sun, 15 Nov 2026 19:50: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: <20261110152848.23136-1-yanhaishuang@cmss.chinamobile.com> X-Cc: netdev@vger.kernel.org, dsahern@kernel.org, idosch@nvidia.com, davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, horms@kernel.org, witu@nvidia.com, linux-kernel@vger.kernel.org