Re: [PATCH V2] netfilter: ipv4: fix NULL dereference

2016-03-28 Thread Pablo Neira Ayuso
On Sat, Mar 26, 2016 at 04:32:57PM +0800, Liping Zhang wrote: > From: Liping Zhang > > 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

[PATCH V2] netfilter: ipv4: fix NULL dereference

2016-03-26 Thread Liping Zhang
From: Liping Zhang 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