aboutsummaryrefslogtreecommitdiff
path: root/net/sctp
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2017-05-17 07:16:40 -0700
committerMister Oyster <oysterized@gmail.com>2017-06-22 11:48:00 +0200
commit7f24dd62bee0ed26aed7f8ca961c95d6391b3bd6 (patch)
treeb8c9956a6ff4129f2c9a4883a7571eaaaad529d9 /net/sctp
parent2318bf505b387bf524e7757fa44e7f6bf8a27f59 (diff)
UPSTREAM: sctp: do not inherit ipv6_{mc|ac|fl}_list from parent
SCTP needs fixes similar to 83eaddab4378 ("ipv6/dccp: do not inherit ipv6_mc_list from parent"), otherwise bad things can happen. Signed-off-by: Eric Dumazet <edumazet@google.com> Reported-by: Andrey Konovalov <andreyknvl@google.com> Tested-by: Andrey Konovalov <andreyknvl@google.com> Signed-off-by: David S. Miller <davem@davemloft.net> (cherry picked from commit fdcee2cbb8438702ea1b328fb6e0ac5e9a40c7f8) Signed-off-by: Connor O'Brien <connoro@google.com> Bug: 62298712 Change-Id: I386efa7b8e8a99b22830a9593c92a41232ab03bb
Diffstat (limited to 'net/sctp')
-rw-r--r--net/sctp/ipv6.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/sctp/ipv6.c b/net/sctp/ipv6.c
index 10d3e2874..486c551a4 100644
--- a/net/sctp/ipv6.c
+++ b/net/sctp/ipv6.c
@@ -660,6 +660,9 @@ static struct sock *sctp_v6_create_accept_sk(struct sock *sk,
newnp = inet6_sk(newsk);
memcpy(newnp, np, sizeof(struct ipv6_pinfo));
+ newnp->ipv6_mc_list = NULL;
+ newnp->ipv6_ac_list = NULL;
+ newnp->ipv6_fl_list = NULL;
rcu_read_lock();
opt = rcu_dereference(np->opt);