diff options
author | Liping Zhang <liping.zhang@spreadtrum.com> | 2016-03-26 09:32:57 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2016-03-28 17:59:29 +0200 |
commit | 29421198c3a860092e27c2ad8499dfe603398817 (patch) | |
tree | 71294f8a20e10d1ca420d72452d4cfb9a37c3799 /net/bridge/br_multicast.c | |
parent | netfilter: x_tables: enforce nul-terminated table name from getsockopt GET_EN... (diff) | |
download | linux-29421198c3a860092e27c2ad8499dfe603398817.tar.xz linux-29421198c3a860092e27c2ad8499dfe603398817.zip |
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>
Diffstat (limited to 'net/bridge/br_multicast.c')
0 files changed, 0 insertions, 0 deletions