Re: [PATCH net-next v4] erspan: drop packets with an unknown ERSPAN version
From: patchwork-bot+netdevbpf
Date: Sun Nov 15 2026 - 14:50:16 EST
Hello:
This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@xxxxxxxxxx>:
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