Re: [PATCH net] vlan: require the MAC header to be present in __vlan_insert_inner_tag()

From: patchwork-bot+netdevbpf

Date: Sat Sep 19 2026 - 19:21:40 EST


Hello:

This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@xxxxxxxxxx>:

On Tue, 15 Sep 2026 01:31:52 -0700 you wrote:
> __vlan_insert_inner_tag() only guarantees head room via skb_cow_head(),
> never that mac_len bytes of MAC header are present. Its ETH_HLEN
> wrappers - __vlan_insert_tag() under skb_vlan_push(), and
> vlan_insert_tag() under validate_xmit_vlan() on the generic transmit
> path - therefore rewrite the first 16 bytes at skb->data: a 12-byte
> memmove plus two 2-byte stores at +12 and +14. No caller supplies the
> bound, while the pop helpers use skb_ensure_writable()/pskb_may_pull().
>
> [...]

Here is the summary with links:
- [net] vlan: require the MAC header to be present in __vlan_insert_inner_tag()
https://git.kernel.org/netdev/net/c/ab888242fce4

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html