Skip to content

Commit fdcee2c

Browse files
Eric Dumazetdavem330
Eric Dumazet
authored andcommitted
sctp: do not inherit ipv6_{mc|ac|fl}_list from parent
SCTP needs fixes similar to 83eadda ("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>
1 parent a3f96c4 commit fdcee2c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: net/sctp/ipv6.c

+3
Original file line numberDiff line numberDiff line change
@@ -677,6 +677,9 @@ static struct sock *sctp_v6_create_accept_sk(struct sock *sk,
677677
newnp = inet6_sk(newsk);
678678

679679
memcpy(newnp, np, sizeof(struct ipv6_pinfo));
680+
newnp->ipv6_mc_list = NULL;
681+
newnp->ipv6_ac_list = NULL;
682+
newnp->ipv6_fl_list = NULL;
680683

681684
rcu_read_lock();
682685
opt = rcu_dereference(np->opt);

0 commit comments

Comments
 (0)