Re: [PATCH v3 2/2] ip6_tunnel: fix potential issue in __ip6_tnl_rcv

5 messages, 3 authors, 2017-06-09 · open the first message on its own page

Re: [PATCH v3 2/2] ip6_tunnel: fix potential issue in __ip6_tnl_rcv

From: Alexei Starovoitov <hidden>
Date: 2017-06-08 05:00:47

On Thu, Jun 08, 2017 at 12:56:58PM +0800, 严海双 wrote:
quoted
On 8 Jun 2017, at 12: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?
Sorry for your confusing, because Pravin Shelar give a feedback in ipv4 patch, see below:
hmm. right.
Then it raises the question: How did you test this and previous patch?

since previous version was sort-of fixing the bug, but completely
breaking the logic...

Re: [PATCH v3 2/2] ip6_tunnel: fix potential issue in __ip6_tnl_rcv

From: 严海双 <hidden>
Date: 2017-06-08 07:34:02

On 8 Jun 2017, at 1:00 PM, Alexei Starovoitov [off-list ref] wrote:

On Thu, Jun 08, 2017 at 12:56:58PM +0800, 严海双 wrote:
quoted
quoted
On 8 Jun 2017, at 12: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?
Sorry for your confusing, because Pravin Shelar give a feedback in ipv4 patch, see below:
hmm. right.
Then it raises the question: How did you test this and previous patch?

since previous version was sort-of fixing the bug, but completely
breaking the logic...
Sorry for my previous fault, I tried to fix this problem in theory without testing carefully.
I have tested the latest patches, it works ok now.

Re: [PATCH v3 2/2] ip6_tunnel: fix potential issue in __ip6_tnl_rcv

From: David Miller <davem@davemloft.net>
Date: 2017-06-08 13:18:37

From: Alexei Starovoitov <redacted>
Date: Wed, 7 Jun 2017 22:00:43 -0700
On Thu, Jun 08, 2017 at 12:56:58PM +0800, 严海双 wrote:
quoted
quoted
On 8 Jun 2017, at 12: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?
Sorry for your confusing, because Pravin Shelar give a feedback in ipv4 patch, see below:
hmm. right.
Then it raises the question: How did you test this and previous patch?

since previous version was sort-of fixing the bug, but completely
breaking the logic...
Anyone who posts new patches this patch isn't testing things thoroughly at all.

Re: [PATCH v3 2/2] ip6_tunnel: fix potential issue in __ip6_tnl_rcv

From: David Miller <davem@davemloft.net>
Date: 2017-06-08 14:00:10

From: 严海双 <redacted>
Date: Thu, 8 Jun 2017 15:33:58 +0800
quoted
On 8 Jun 2017, at 1:00 PM, Alexei Starovoitov [off-list ref] wrote:

On Thu, Jun 08, 2017 at 12:56:58PM +0800, 严海双 wrote:
quoted
quoted
On 8 Jun 2017, at 12: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?
Sorry for your confusing, because Pravin Shelar give a feedback in ipv4 patch, see below:
hmm. right.
Then it raises the question: How did you test this and previous patch?

since previous version was sort-of fixing the bug, but completely
breaking the logic...
Sorry for my previous fault, I tried to fix this problem in theory without testing carefully.
I have tested the latest patches, it works ok now.
This does not instill a lot of confidence in us.

I want someone else to test these patches, then you can resubmit them
with proper Tested-by: tags added, since you thought it was OK to submit
a patch without testing in the first place.

Re: [PATCH v3 2/2] ip6_tunnel: fix potential issue in __ip6_tnl_rcv

From: 严海双 <hidden>
Date: 2017-06-09 00:23:17

On 8 Jun 2017, at 9:59 PM, David Miller [off-list ref] wrote:

From: 严海双 <redacted>
Date: Thu, 8 Jun 2017 15:33:58 +0800
quoted
quoted
On 8 Jun 2017, at 1:00 PM, Alexei Starovoitov [off-list ref] wrote:

On Thu, Jun 08, 2017 at 12:56:58PM +0800, 严海双 wrote:
quoted
quoted
On 8 Jun 2017, at 12: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?
Sorry for your confusing, because Pravin Shelar give a feedback in ipv4 patch, see below:
hmm. right.
Then it raises the question: How did you test this and previous patch?

since previous version was sort-of fixing the bug, but completely
breaking the logic...
Sorry for my previous fault, I tried to fix this problem in theory without testing carefully.
I have tested the latest patches, it works ok now.
This does not instill a lot of confidence in us.

I want someone else to test these patches, then you can resubmit them
with proper Tested-by: tags added, since you thought it was OK to submit
a patch without testing in the first place.
Ok, thanks.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help