Re: [PATCH net] ipv6: lock socket in ip6_datagram_connect()

2015-07-15 Thread David Miller
From: Eric Dumazet eric.duma...@gmail.com Date: Tue, 14 Jul 2015 08:10:22 +0200 From: Eric Dumazet eduma...@google.com 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

[PATCH net] ipv6: lock socket in ip6_datagram_connect()

2015-07-14 Thread Eric Dumazet
From: Eric Dumazet eduma...@google.com 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

Re: [PATCH net] ipv6: lock socket in ip6_datagram_connect()

2015-07-14 Thread Herbert Xu
Eric Dumazet eric.duma...@gmail.com wrote: From: Eric Dumazet eduma...@google.com 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