From: Haishuang Yan <hidden> Date: 2017-06-07 14:16:30
When ip_tunnel_rcv fails, the tun_dst won't be freed, so move
skb_dst_set to begin and tun_dst would be freed by kfree_skb.
Signed-off-by: Haishuang Yan <redacted>
---
net/ipv4/ip_tunnel.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
From: Haishuang Yan <hidden> Date: 2017-06-07 14:16:40
When __ip6_tnl_rcv fails, the tun_dst won't be freed, so move
skb_dst_set to begin and tun_dst would be freed by kfree_skb.
Signed-off-by: Haishuang Yan <redacted>
---
net/ipv6/ip6_tunnel.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
From: Eric Dumazet <hidden> Date: 2017-06-07 14:50:01
On Wed, 2017-06-07 at 22:16 +0800, Haishuang Yan wrote:
When ip_tunnel_rcv fails, the tun_dst won't be freed, so move
skb_dst_set to begin and tun_dst would be freed by kfree_skb.
Signed-off-by: Haishuang Yan <redacted>
---
Please add the missing Fixes: tag and CC author of the patch that added
this bug, so that he has a chance to comment and avoid future similar
bugs.
Thanks.
On 7 Jun 2017, at 10:48 PM, Eric Dumazet [off-list ref] wrote:
On Wed, 2017-06-07 at 22:16 +0800, Haishuang Yan wrote:
quoted
When ip_tunnel_rcv fails, the tun_dst won't be freed, so move
skb_dst_set to begin and tun_dst would be freed by kfree_skb.
Signed-off-by: Haishuang Yan <redacted>
---
Please add the missing Fixes: tag and CC author of the patch that added
this bug, so that he has a chance to comment and avoid future similar
bugs.
Thanks.
Ok, I will add these information in v2 commit.
Thanks.