netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: David Miller <davem@davemloft.net>
To: yanhaishuang@cmss.chinamobile.com
Cc: alexei.starovoitov@gmail.com, netdev@vger.kernel.org,
	edumazet@google.com
Subject: Re: [PATCH v3 2/2] ip6_tunnel: fix potential issue in __ip6_tnl_rcv
Date: Thu, 08 Jun 2017 09:59:58 -0400 (EDT)	[thread overview]
Message-ID: <20170608.095958.853026498068086014.davem@davemloft.net> (raw)
In-Reply-To: <6CE04FE7-4904-4047-95F5-80461324CDA6@cmss.chinamobile.com>

From: 严海双 <yanhaishuang@cmss.chinamobile.com>
Date: Thu, 8 Jun 2017 15:33:58 +0800

>> On 8 Jun 2017, at 1:00 PM, Alexei Starovoitov <alexei.starovoitov@gmail.com> wrote:
>> 
>> On Thu, Jun 08, 2017 at 12:56:58PM +0800, 严海双 wrote:
>>> 
>>>> On 8 Jun 2017, at 12:38 PM, Alexei Starovoitov <alexei.starovoitov@gmail.com> wrote:
>>>> 
>>>> 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 <ast@fb.com>
>>>>> Fixes: 8d79266bc48c ("ip6_tunnel: add collect_md mode to IPv6 tunnels")
>>>>> Signed-off-by: Haishuang Yan <yanhaishuang@cmss.chinamobile.com>
>>>> 
>>>> 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.

  reply	other threads:[~2017-06-08 14:00 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-08  4:32 [PATCH v3 1/2] ip_tunnel: fix potential issue in ip_tunnel_rcv Haishuang Yan
2017-06-08  4:32 ` [PATCH v3 2/2] ip6_tunnel: fix potential issue in __ip6_tnl_rcv Haishuang Yan
2017-06-08  4:38   ` Alexei Starovoitov
2017-06-08  4:50     ` Eric Dumazet
     [not found]     ` <3A078CA0-C9C8-45D2-A359-1FB38B25792D@cmss.chinamobile.com>
2017-06-08  5:00       ` Alexei Starovoitov
2017-06-08  7:33         ` 严海双
2017-06-08 13:59           ` David Miller [this message]
2017-06-09  0:23             ` 严海双
2017-06-08 13:18         ` David Miller
2017-06-08  4:54 ` [PATCH v3 1/2] ip_tunnel: fix potential issue in ip_tunnel_rcv Eric Dumazet
2017-06-08 21:47 ` Pravin Shelar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170608.095958.853026498068086014.davem@davemloft.net \
    --to=davem@davemloft.net \
    --cc=alexei.starovoitov@gmail.com \
    --cc=edumazet@google.com \
    --cc=netdev@vger.kernel.org \
    --cc=yanhaishuang@cmss.chinamobile.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).