Commit 03ff0cb1 authored by Eric Dumazet's avatar Eric Dumazet Committed by Jakub Kicinski
Browse files

ipv6: add daddr/final storage in struct ipv6_pinfo



After commit b409a7f7 ("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: default avatarEric Dumazet <edumazet@google.com>
Reviewed-by: default avatarKuniyuki Iwashima <kuniyu@google.com>
Link: https://patch.msgid.link/20260206173426.1638518-2-edumazet@google.com


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 792aaea9
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -230,6 +230,10 @@ struct ipv6_fl_socklist;
struct ipv6_pinfo {
	/* Used in tx path (inet6_csk_route_socket(), ip6_xmit()) */
	struct in6_addr 	saddr;
	union {
		struct in6_addr daddr;
		struct in6_addr final;
	};
	__be32			flow_label;
	u32			dst_cookie;
	struct ipv6_txoptions __rcu	*opt;