* [PATCH] ipv6: nullify ipv6_ac_list and ipv6_fl_list when creating new socket
@ 2011-09-25 12:21 Yan, Zheng
2011-09-29 4:34 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Yan, Zheng @ 2011-09-25 12:21 UTC (permalink / raw)
To: netdev@vger.kernel.org, davem@davemloft.net
ipv6_ac_list and ipv6_fl_list from listening socket are inadvertently
shared with new socket created for connection.
Signed-off-by: Zheng Yan <zheng.z.yan@intel.com>
---
diff --git a/net/ipv6/tcp_ipv6.c b/net/ipv6/tcp_ipv6.c
index 3c9fa61..79cc646 100644
--- a/net/ipv6/tcp_ipv6.c
+++ b/net/ipv6/tcp_ipv6.c
@@ -1383,6 +1383,8 @@ static struct sock * tcp_v6_syn_recv_sock(struct sock *sk, struct sk_buff *skb,
newtp->af_specific = &tcp_sock_ipv6_mapped_specific;
#endif
+ newnp->ipv6_ac_list = NULL;
+ newnp->ipv6_fl_list = NULL;
newnp->pktoptions = NULL;
newnp->opt = NULL;
newnp->mcast_oif = inet6_iif(skb);
@@ -1447,6 +1449,7 @@ static struct sock * tcp_v6_syn_recv_sock(struct sock *sk, struct sk_buff *skb,
First: no IPv4 options.
*/
newinet->inet_opt = NULL;
+ newnp->ipv6_ac_list = NULL;
newnp->ipv6_fl_list = NULL;
/* Clone RX bits */
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] ipv6: nullify ipv6_ac_list and ipv6_fl_list when creating new socket
2011-09-25 12:21 [PATCH] ipv6: nullify ipv6_ac_list and ipv6_fl_list when creating new socket Yan, Zheng
@ 2011-09-29 4:34 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2011-09-29 4:34 UTC (permalink / raw)
To: zheng.z.yan; +Cc: netdev
From: "Yan, Zheng" <zheng.z.yan@intel.com>
Date: Sun, 25 Sep 2011 20:21:30 +0800
> ipv6_ac_list and ipv6_fl_list from listening socket are inadvertently
> shared with new socket created for connection.
>
> Signed-off-by: Zheng Yan <zheng.z.yan@intel.com>
Applied.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-09-29 4:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-25 12:21 [PATCH] ipv6: nullify ipv6_ac_list and ipv6_fl_list when creating new socket Yan, Zheng
2011-09-29 4:34 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).