Files
linux/net/ipv4
Lorenzo Colitti 2b9e162b21 UPSTREAM: net: ipv4: Don't crash if passing a null sk to ip_rt_update_pmtu.
Commit e2d118a1cb ("net: inet: Support UID-based routing in IP
protocols.") made __build_flow_key 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.

Change-Id: Ife860a7af8471bf40cc987f7803059d7bb9cc7e3
Fixes: e2d118a1cb ("net: inet: Support UID-based routing in IP protocols.")
Reported-by: Erez Shitrit <erezsh@dev.mellanox.co.il>
Signed-off-by: Lorenzo Colitti <lorenzo@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-01-27 13:56:00 -08:00
..
2015-08-25 13:38:50 -07:00
2016-04-27 22:48:24 -04:00
2016-10-20 14:32:22 -04:00
2016-10-20 14:32:22 -04:00
2016-04-27 22:48:23 -04:00
2016-10-26 17:33:22 -04:00
2016-09-21 00:23:01 -04:00
2016-09-01 14:09:01 -07:00
2016-06-10 23:07:49 -07:00
2016-09-21 00:23:00 -04:00
2016-11-03 16:12:06 -04:00
2016-10-20 14:32:22 -04:00
2015-09-17 17:18:37 -07:00
2013-05-31 17:19:05 -07:00