Re: [PATCH] net: ipv6: fix dif and sdif mismatch in raw6_icmp_error
From: patchwork-bot+netdevbpf
Date: Thu Jul 23 2026 - 11:59:40 EST
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@xxxxxxxxxx>:
On Fri, 17 Jul 2026 22:32:30 +0800 you wrote:
> From: Li RongQing <lirongqing@xxxxxxxxx>
>
> In raw6_icmp_error(), raw_v6_match() is called with inet6_iif(skb) passed
> to both the 'dif' and 'sdif' arguments. This is a copy-paste or typo error,
> as the last argument should represent the secondary interface index (sdif).
>
> This mismatch breaks ICMPv6 error handling for IPv6 raw sockets in VRF
> (Virtual Routing and Forwarding) environments. When a raw socket is bound
> to a VRF master device, raw_v6_match() fails to find a match because it is
> not given the correct sdif value, causing the socket to miss relevant
> ICMPv6 error notifications.
>
> [...]
Here is the summary with links:
- net: ipv6: fix dif and sdif mismatch in raw6_icmp_error
https://git.kernel.org/netdev/net/c/440e274da4d1
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html