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 if ->cow_metrics may be called if skb_dst(skb)->ops points
> to ovs_dst_ops.
> 
> Don't try to do anything in one of those cases.
> 
> Fixes: 962924fa2b7a ("ip_gre: Refactor collect metatdata mode tunnel xmit to 
> ip_md_tunnel_xmit")
> CC: wenxu <we...@ucloud.cn>
> Signed-off-by: Nicolas Dichtel <nicolas.dich...@6wind.com>
Please, drop it, Alan's version is better.


Regards,
Nicolas

Reply via email to