Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ipv6: add daddr/final storage in struct ipv6_pinfo

After commit b409a7f7176b ("ipv6: colocate inet6_cork in
inet_cork_full") we have room in ipv6_pinfo to hold daddr/final
in case they need to be populated in fl6_update_dst() calls.

This will allow stack canary removal in IPv6 tx fast paths.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Kuniyuki Iwashima <kuniyu@google.com>
Link: https://patch.msgid.link/20260206173426.1638518-2-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Eric Dumazet and committed by
Jakub Kicinski
03ff0cb1 792aaea9

+4
+4
include/linux/ipv6.h
··· 230 230 struct ipv6_pinfo { 231 231 /* Used in tx path (inet6_csk_route_socket(), ip6_xmit()) */ 232 232 struct in6_addr saddr; 233 + union { 234 + struct in6_addr daddr; 235 + struct in6_addr final; 236 + }; 233 237 __be32 flow_label; 234 238 u32 dst_cookie; 235 239 struct ipv6_txoptions __rcu *opt;