Guillaume Nault 02c2d9e72e l2tp: lock socket before checking flags in connect()
commit 0382a25af3c771a8e4d5e417d1834cbe28c2aaac upstream.

Socket flags aren't updated atomically, so the socket must be locked
while reading the SOCK_ZAPPED flag.

This issue exists for both l2tp_ip and l2tp_ip6. For IPv6, this patch
also brings error handling for __ip6_datagram_connect() failures.

Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Giuliano Procida <gprocida@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-05-27 16:40:28 +02:00
..
2020-05-20 08:11:41 +02:00
2015-10-08 04:27:03 -07:00
2020-05-10 10:26:23 +02:00
2020-05-10 10:26:22 +02:00
2015-02-28 16:56:51 -05:00
2015-11-03 10:52:13 -05:00
2020-05-10 10:26:17 +02:00
2020-05-10 10:26:23 +02:00
2020-05-10 10:26:23 +02:00