Skip to content
Snippets Groups Projects
Commit 775ad4d1 authored by Eric Dumazet's avatar Eric Dumazet Committed by Andrew Lehmer
Browse files

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: default avatarEric Dumazet <edumazet@google.com>
Reported-by: default avatarAndrey Konovalov <andreyknvl@google.com>
Tested-by: default avatarAndrey Konovalov <andreyknvl@google.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
(cherry picked from commit fdcee2cbb8438702ea1b328fb6e0ac5e9a40c7f8)
Signed-off-by: default avatarConnor O'Brien <connoro@google.com>
Bug: 62298712
Change-Id: I386efa7b8e8a99b22830a9593c92a41232ab03bb
parent 389a42d9
No related branches found
No related tags found
No related merge requests found
...@@ -657,6 +657,9 @@ static struct sock *sctp_v6_create_accept_sk(struct sock *sk, ...@@ -657,6 +657,9 @@ static struct sock *sctp_v6_create_accept_sk(struct sock *sk,
newnp = inet6_sk(newsk); newnp = inet6_sk(newsk);
memcpy(newnp, np, sizeof(struct ipv6_pinfo)); memcpy(newnp, np, sizeof(struct ipv6_pinfo));
newnp->ipv6_mc_list = NULL;
newnp->ipv6_ac_list = NULL;
newnp->ipv6_fl_list = NULL;
/* Initialize sk's sport, dport, rcv_saddr and daddr for getsockname() /* Initialize sk's sport, dport, rcv_saddr and daddr for getsockname()
* and getpeername(). * and getpeername().
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment