Re: [PATCH] ip_tunnel:multicast process cause panic due to skb->_skb_refdst NULL pointer
From: Hannes Frederic Sowa <hidden>
Date: 2014-02-24 14:58:09
From: Hannes Frederic Sowa <hidden>
Date: 2014-02-24 14:58:09
On Mon, Feb 24, 2014 at 12:35:19PM +0800, Xin Long wrote:
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
If the packet is locally forwarded we can test for IPCB(skb)->flags & IPSKB_FORWARDED. I am not sure if we actually have the correct dst at that point. Greetings, Hannes