Re: [PATCH net] ipv6: ioam: fix type confusion of dst_entry
From: patchwork-bot+netdevbpf@kernel.org
Date: 2026-06-21 22:30:27
Also in:
lkml
From: patchwork-bot+netdevbpf@kernel.org
Date: 2026-06-21 22:30:27
Also in:
lkml
Hello: This patch was applied to netdev/net.git (main) by Jakub Kicinski [off-list ref]: On Thu, 18 Jun 2026 18:43:35 +0800 you wrote:
IOAM uses a dummy dst_entry(null_dst) to mark that the destination should not be changed after the transformation. This dst is stored in the IOAM lwt state and may be passed to dst_cache_set_ip6(). However, the IPv6 dst cache path eventually calls rt6_get_cookie(), which treats the dst_entry as part of a struct rt6_info. Since the null_dst was embedded directly as a struct dst_entry in struct ioam6_lwt, this resulted in an invalid cast and rt6_get_cookie() reading fields from the wrong object. [...]
Here is the summary with links:
- [net] ipv6: ioam: fix type confusion of dst_entry
https://git.kernel.org/netdev/net/c/9ed19e11d214
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html