Re: [PATCH net] ip6_gre: fix a dst leak in ip6erspan_tunnel_xmit

2019-09-16 Thread David Miller
From: Xin Long Date: Fri, 13 Sep 2019 17:45:47 +0800 > In ip6erspan_tunnel_xmit(), if the skb will not be sent out, it has to > be freed on the tx_err path. Otherwise when deleting a netns, it would > cause dst/dev to leak, and dmesg shows: > > unregister_netdevice: waiting for lo to become fr

Re: [PATCH net] ip6_gre: fix a dst leak in ip6erspan_tunnel_xmit

2019-09-14 Thread William Tu
On Fri, Sep 13, 2019 at 2:45 AM Xin Long wrote: > > In ip6erspan_tunnel_xmit(), if the skb will not be sent out, it has to > be freed on the tx_err path. Otherwise when deleting a netns, it would > cause dst/dev to leak, and dmesg shows: > > unregister_netdevice: waiting for lo to become free. U

[PATCH net] ip6_gre: fix a dst leak in ip6erspan_tunnel_xmit

2019-09-13 Thread Xin Long
In ip6erspan_tunnel_xmit(), if the skb will not be sent out, it has to be freed on the tx_err path. Otherwise when deleting a netns, it would cause dst/dev to leak, and dmesg shows: unregister_netdevice: waiting for lo to become free. Usage count = 1 Fixes: ef7baf5e083c ("ip6_gre: add ip6 erspa