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: use np->final in inet6_sk_rebuild_header()

Instead of using an automatic variable, use np->final
to get rid of the stack canary in inet6_sk_rebuild_header().

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

authored by

Eric Dumazet and committed by
Jakub Kicinski
3d3f075e 03ff0cb1

+2 -2
+2 -2
net/ipv6/af_inet6.c
··· 825 825 { 826 826 struct ipv6_pinfo *np = inet6_sk(sk); 827 827 struct inet_sock *inet = inet_sk(sk); 828 - struct in6_addr *final_p, final; 828 + struct in6_addr *final_p; 829 829 struct dst_entry *dst; 830 830 struct flowi6 *fl6; 831 831 ··· 847 847 security_sk_classify_flow(sk, flowi6_to_flowi_common(fl6)); 848 848 849 849 rcu_read_lock(); 850 - final_p = fl6_update_dst(fl6, rcu_dereference(np->opt), &final); 850 + final_p = fl6_update_dst(fl6, rcu_dereference(np->opt), &np->final); 851 851 rcu_read_unlock(); 852 852 853 853 dst = ip6_dst_lookup_flow(sock_net(sk), sk, fl6, final_p);