diff options
author | Eric Dumazet <edumazet@google.com> | 2015-07-14 08:10:22 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-10-01 12:07:37 +0200 |
commit | 4b633bbef8730380d624a3d55a54d9e42effdd1c (patch) | |
tree | fc7f1a82e235dcde40b7208c39b0b4d1e58cb697 /drivers/net/macvlan.c | |
parent | c6419a861e56cf6c6446bf0e8f9c75557c2a3a02 (diff) |
ipv6: lock socket in ip6_datagram_connect()
[ Upstream commit 03645a11a570d52e70631838cb786eb4253eb463 ]
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/net/macvlan.c')
0 files changed, 0 insertions, 0 deletions