Lorenzo Colitti
7d99569460
net: ipv4: Don't crash if passing a null sk to ip_do_redirect.
...
Commit e2d118a1cb5e ("net: inet: Support UID-based routing in IP
protocols.") made ip_do_redirect call sock_net(sk) to determine
the network namespace of the passed-in socket. This crashes if sk
is NULL.
Fix this by getting the network namespace from the skb instead.
Fixes: e2d118a1cb5e ("net: inet: Support UID-based routing in IP protocols.")
Signed-off-by: Lorenzo Colitti <lorenzo@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-12-22 11:15:10 -05:00
..
2016-09-23 13:47:44 -04:00
2016-10-20 14:51:10 -04:00
2016-11-18 10:59:15 -05:00
2016-12-17 20:17:04 -08:00
2016-12-06 21:33:19 -05:00
2016-12-16 10:24:44 -08:00
2016-12-10 21:28:28 -05:00
2016-12-06 21:33:19 -05:00
2016-12-07 10:45:57 +01:00
2016-12-14 22:39:08 +01:00
2016-12-17 20:17:04 -08:00
2016-12-03 23:54:25 -05:00
2016-12-03 12:29:53 -05:00
2016-12-17 11:56:57 -05:00
2016-12-03 12:29:53 -05:00
2016-11-07 20:15:55 -05:00
2016-10-30 12:42:58 -04:00
2016-12-16 00:13:43 +02:00
2016-12-22 11:15:10 -05:00
2016-12-17 21:37:06 -05:00
2016-12-17 11:29:31 -05:00
2016-12-12 19:25:04 -08:00
2016-10-07 15:36:58 -07:00
2016-11-18 10:59:15 -05:00
2016-12-10 23:29:11 -05:00
2016-11-14 13:17:21 -05:00
2016-12-17 20:17:04 -08:00
2016-12-16 00:13:43 +02:00
2016-12-06 21:33:19 -05:00
2016-10-20 11:23:08 -04:00
2016-12-11 10:01:05 -05:00
2016-10-27 16:16:09 -04:00
2016-12-10 17:25:58 -05:00
2016-10-27 16:16:09 -04:00
2016-12-20 14:07:41 -05:00
2016-12-16 10:24:44 -08:00
2016-11-18 10:59:15 -05:00
2016-12-20 14:22:49 -05:00
2016-12-14 16:04:10 -08:00
2016-12-20 14:22:48 -05:00
2016-12-20 14:15:45 -05:00
2016-10-12 01:51:49 -04:00
2016-12-16 10:48:28 -08:00
2016-10-30 12:42:58 -04:00
2016-12-16 10:24:44 -08:00
2016-12-16 10:58:12 -08:00
2016-12-17 20:17:04 -08:00
2016-10-27 16:16:09 -04:00
2016-12-16 00:13:43 +02:00
2016-12-17 11:56:57 -05:00
2016-12-12 19:25:04 -08:00
2016-12-02 10:51:49 -05:00
2016-12-10 17:27:07 -05:00
2016-10-06 09:52:23 -07:00