Wei Wang
85cb73ff9b
net: ipv6: reset daddr and dport in sk if connect() fails
...
In __ip6_datagram_connect(), reset sk->sk_v6_daddr and inet->dport if
error occurs.
In udp_v6_early_demux(), check for sk_state to make sure it is in
TCP_ESTABLISHED state.
Together, it makes sure unconnected UDP socket won't be considered as a
valid candidate for early demux.
v3: add TCP_ESTABLISHED state check in udp_v6_early_demux()
v2: fix compilation error
Fixes: 5425077d73e0 ("net: ipv6: Add early demux handler for UDP unicast")
Signed-off-by: Wei Wang <weiwan@google.com>
Acked-by: Maciej Żenczykowski <maze@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-06-25 11:46:56 -04:00
..
2017-06-08 15:36:56 -04:00
2017-05-03 10:11:26 -04:00
2017-06-22 13:21:44 -04:00
2017-04-17 15:35:38 -04:00
2017-04-26 22:39:08 -04:00
2017-01-16 12:57:48 +01:00
2017-06-06 15:18:20 -04:00
2017-06-25 11:46:56 -04:00
2017-06-22 10:49:14 +02:00
2017-04-24 07:56:31 +02:00
2016-06-27 15:06:15 -04:00
2017-05-01 15:10:20 -04:00
2017-06-20 15:34:02 -04:00
2017-06-14 15:33:58 -04:00
2017-01-28 10:33:06 -05:00
2017-01-18 13:04:28 -05:00
2017-06-20 15:34:02 -04:00
2016-12-24 11:46:01 -08:00
2017-06-07 15:53:24 -04:00
2016-06-18 22:11:38 -07:00
2017-04-20 10:35:33 -04:00
2017-06-04 21:41:10 -04:00
2017-06-23 13:29:38 -04:00
2017-06-18 23:56:57 -04:00
2016-11-02 15:18:36 -04:00
2017-06-07 15:53:24 -04:00
2017-06-07 15:53:24 -04:00
2016-11-04 14:45:23 -04:00
2016-12-30 15:24:47 -05:00
2017-03-27 16:05:06 -07:00
2017-02-15 11:04:11 +01:00
2017-03-28 22:02:21 -07:00
2016-12-25 17:21:23 +01:00
2017-04-26 22:39:08 -04:00
2016-11-04 14:45:23 -04:00
2017-05-17 14:55:59 -04:00
2017-06-04 22:56:55 -04:00
2017-06-12 09:53:14 -04:00
2017-03-24 13:17:07 -07:00
2017-06-04 22:56:55 -04:00
2016-11-03 15:41:11 -04:00
2017-06-22 11:06:06 -04:00
2017-02-07 16:29:30 -05:00
2017-04-17 15:33:53 -04:00
2017-04-20 15:40:33 -04:00
2017-06-23 14:08:40 -04:00
2017-05-05 12:00:11 -04:00
2016-06-27 15:06:17 -04:00
2017-05-15 15:50:49 -07:00
2017-05-18 10:23:33 -04:00
2017-05-17 22:54:11 -04:00
2017-06-25 11:46:56 -04:00
2016-11-24 15:32:14 -05:00
2017-06-22 10:49:14 +02:00
2017-06-02 13:57:27 -04:00
2017-06-02 13:57:27 -04:00
2017-04-14 10:07:39 +02:00
2017-04-14 10:06:10 +02:00
2017-02-09 10:22:19 +01:00
2017-02-09 10:22:17 +01:00
2016-11-18 10:59:15 -05:00