commit | 29421198c3a860092e27c2ad8499dfe603398817 | [log] [tgz] |
---|---|---|
author | Liping Zhang <liping.zhang@spreadtrum.com> | Sat Mar 26 16:32:57 2016 +0800 |
committer | Pablo Neira Ayuso <pablo@netfilter.org> | Mon Mar 28 17:59:29 2016 +0200 |
tree | 71294f8a20e10d1ca420d72452d4cfb9a37c3799 | |
parent | b301f2538759933cf9ff1f7c4f968da72e3f0757 [diff] |
netfilter: ipv4: fix NULL dereference Commit fa50d974d104 ("ipv4: Namespaceify ip_default_ttl sysctl knob") use sock_net(skb->sk) to get the net namespace, but we can't assume that sk_buff->sk is always exist, so when it is NULL, oops will happen. Signed-off-by: Liping Zhang <liping.zhang@spreadtrum.com> Reviewed-by: Nikolay Borisov <kernel@kyup.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>