]> git.baikalelectronics.ru Git - kernel.git/commit
ip_tunnel:multicast process cause panic due to skb->_skb_refdst NULL pointer
authorXin Long <lucien.xin@gmail.com>
Mon, 3 Mar 2014 12:18:36 +0000 (20:18 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 3 Mar 2014 20:56:40 +0000 (15:56 -0500)
commit39d44dd65e0d5c92f3ca70200cec20268d246336
tree44376ec17d4145e7eab45debff4ccbebb8b1760e
parent7055dd3066a1df6eb4089045f3499a40cdea1498
ip_tunnel:multicast process cause panic due to skb->_skb_refdst NULL pointer

when ip_tunnel process multicast packets, it may check if the packet is looped
back packet though 'rt_is_output_route(skb_rtable(skb))' in ip_tunnel_rcv(),
but before that , skb->_skb_refdst has been dropped in iptunnel_pull_header(),
so which leads to a panic.

fix the bug: https://bugzilla.kernel.org/show_bug.cgi?id=70681

Signed-off-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ip_tunnel_core.c