Re: [PATCH net] gre: fix kernel panic when using lw tunnel

2019-03-06 Thread Nicolas Dichtel
Le 06/03/2019 à 11:32, Nicolas Dichtel a écrit : > There was several problems: > - skb_dst(skb) can be NULL when the packet comes from a gretap tunnel; > - skb_dst(skb)->ops may point to md_dst_ops, which doesn't set ->mtu >handler, thus calling dst_mtu() leads to a panic. > > I also wonder

[PATCH net] gre: fix kernel panic when using lw tunnel

2019-03-06 Thread Nicolas Dichtel
There was several problems: - skb_dst(skb) can be NULL when the packet comes from a gretap tunnel; - skb_dst(skb)->ops may point to md_dst_ops, which doesn't set ->mtu handler, thus calling dst_mtu() leads to a panic. I also wonder if ->cow_metrics may be called if skb_dst(skb)->ops points to