commit | 03645a11a570d52e70631838cb786eb4253eb463 | [log] [tgz] |
---|---|---|
author | Eric Dumazet <edumazet@google.com> | Tue Jul 14 08:10:22 2015 +0200 |
committer | David S. Miller <davem@davemloft.net> | Wed Jul 15 17:25:51 2015 -0700 |
tree | 8a370b57010d040b59fd7e17ba90d1d8ed1c7650 | |
parent | 14e4cec80cd05ad585c537db56a705ab61fbaff9 [diff] |
ipv6: lock socket in ip6_datagram_connect() ip6_datagram_connect() is doing a lot of socket changes without socket being locked. This looks wrong, at least for udp_lib_rehash() which could corrupt lists because of concurrent udp_sk(sk)->udp_portaddr_hash accesses. Signed-off-by: Eric Dumazet <edumazet@google.com> Acked-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: David S. Miller <davem@davemloft.net>