From: Haishuang Yan <hidden> Date: 2017-06-08 04:32:50
When ip_tunnel_rcv fails, the tun_dst won't be freed, so call
dst_release to free it in error code path.
CC: Pravin B Shelar <redacted>
Fixes: 2e15ea390e6f ("ip_gre: Add support to collect tunnel metadata.")
Signed-off-by: Haishuang Yan <redacted>
---
Changes in v2:
- Add the the missing Fixes information
Changes in v3:
- Free tun_dst from error code path
---
net/ipv4/ip_tunnel.c | 2 ++
1 file changed, 2 insertions(+)
From: Haishuang Yan <hidden> Date: 2017-06-08 04:33:01
When __ip6_tnl_rcv fails, the tun_dst won't be freed, so call
dst_release to free it in error code path.
CC: Alexei Starovoitov <redacted>
Fixes: 8d79266bc48c ("ip6_tunnel: add collect_md mode to IPv6 tunnels")
Signed-off-by: Haishuang Yan <redacted>
---
Changes in v2:
- Add the the missing Fixes information
Changes in v3:
- Free tun_dst from error code path
---
net/ipv6/ip6_tunnel.c | 2 ++
1 file changed, 2 insertions(+)
On Thu, Jun 08, 2017 at 12:32:44PM +0800, Haishuang Yan wrote:
When __ip6_tnl_rcv fails, the tun_dst won't be freed, so call
dst_release to free it in error code path.
CC: Alexei Starovoitov <redacted>
Fixes: 8d79266bc48c ("ip6_tunnel: add collect_md mode to IPv6 tunnels")
Signed-off-by: Haishuang Yan <redacted>
I don't get it. Why did you send another version of the patch?
What was wrong with previous approach that myself and Eric acked?
From: Eric Dumazet <hidden> Date: 2017-06-08 04:50:25
On Wed, Jun 7, 2017 at 9:38 PM, Alexei Starovoitov
[off-list ref] wrote:
On Thu, Jun 08, 2017 at 12:32:44PM +0800, Haishuang Yan wrote:
quoted
When __ip6_tnl_rcv fails, the tun_dst won't be freed, so call
dst_release to free it in error code path.
CC: Alexei Starovoitov <redacted>
Fixes: 8d79266bc48c ("ip6_tunnel: add collect_md mode to IPv6 tunnels")
Signed-off-by: Haishuang Yan <redacted>
I don't get it. Why did you send another version of the patch?
What was wrong with previous approach that myself and Eric acked?
Answer lies in Pravin feedback on v2 of the patch on ipv4 side.
From: Eric Dumazet <hidden> Date: 2017-06-08 04:54:37
On Thu, 2017-06-08 at 12:32 +0800, Haishuang Yan wrote:
quoted hunk
When ip_tunnel_rcv fails, the tun_dst won't be freed, so call
dst_release to free it in error code path.
CC: Pravin B Shelar <redacted>
Fixes: 2e15ea390e6f ("ip_gre: Add support to collect tunnel metadata.")
Signed-off-by: Haishuang Yan <redacted>
---
Changes in v2:
- Add the the missing Fixes information
Changes in v3:
- Free tun_dst from error code path
---
net/ipv4/ip_tunnel.c | 2 ++
1 file changed, 2 insertions(+)
On Wed, Jun 7, 2017 at 9:32 PM, Haishuang Yan
[off-list ref] wrote:
When ip_tunnel_rcv fails, the tun_dst won't be freed, so call
dst_release to free it in error code path.
CC: Pravin B Shelar <redacted>
Fixes: 2e15ea390e6f ("ip_gre: Add support to collect tunnel metadata.")
Signed-off-by: Haishuang Yan <redacted>
---
Changes in v2:
- Add the the missing Fixes information
Changes in v3:
- Free tun_dst from error code path
---