mptcp.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
From: Paolo Abeni <pabeni@redhat.com>
To: Florian Westphal <fw@strlen.de>
Cc: mptcp@lists.linux.dev
Subject: Re: [PATCH RFC mptcp] net: tcp: prevent transition to FIN_WAIT2 when mptcp has unacked data_fin
Date: Tue, 23 Aug 2022 17:54:07 +0200	[thread overview]
Message-ID: <81a5905caefa01f2319553805119c5b0eff2d864.camel@redhat.com> (raw)
In-Reply-To: <20220822123206.GF11586@breakpoint.cc>

Hello,

sharing here private discussion to keep all on the same page...

On Mon, 2022-08-22 at 14:32 +0200, Florian Westphal wrote:
> Paolo Abeni <pabeni@redhat.com> wrote:
> > > Full test case stashed here for the time being:
> > > https://github.com/fw-strlen/packetdrill/commit/60a3f57ea309f910643e06dbf123236741c7f8d9
> > > 
> > > Its possible to either change tw_sk to have enough mptcp context to be
> > > able to send a packet back, or we can supress/delay the tw_sock
> > > transition.  This is what classic TCP is doing when it receives another
> > > FIN while in FIN1 state.
> > > 
> > > This change makes the test case work (another dss ack is sent), but
> > > there may be other corner cases where we need to delay the sk ->
> > > tw_sk transition.
> > > 
> > > If the general idea looks ok, perhaps its better to replace
> > > 
> > > tcp_time_wait(sk, skb, ..
> > > 
> > > with a mptcp aware helper, e.g.  tcp_time_wait_check(sk, skb, ..
> > > and place the option parsing for mptcp-subflows there?
> > 
> > _if_ (big if) I read correctly, this patch "always" (most common
> > shutdown sequence should match the condition checked here, right?)
> 
> Really?  I had to fudge with the test case a long time to get the needed
> transition, I'm not even sure the test case is legit.
> 
> https://github.com/fw-strlen/packetdrill/commit/60a3f57ea309f910643e06dbf123236741c7f8d9
> 
> is that even correct?!

I mean/fear that a simple shutdown sequence (local close(), followed by
remote data fin) could end-up matching the test implemented by this
patch (even if the data fin retransmission will really happen on a much
more rare condition). 

That is, possibly the test is a little more relaxed then actual packet
sequence necessary to trigger the issue (but I don't know how to make
it more strict). 

I'll try to double check the above.

Thanks!

Paolo


  reply	other threads:[~2022-08-23 15:54 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-18 16:21 [PATCH RFC mptcp] net: tcp: prevent transition to FIN_WAIT2 when mptcp has unacked data_fin Florian Westphal
2022-08-18 18:40 ` net: tcp: prevent transition to FIN_WAIT2 when mptcp has unacked data_fin: Tests Results MPTCP CI
2022-08-19 15:20 ` [PATCH RFC mptcp] net: tcp: prevent transition to FIN_WAIT2 when mptcp has unacked data_fin Matthieu Baerts
2022-08-22 11:02 ` Paolo Abeni
2022-08-22 12:32   ` Florian Westphal
2022-08-23 15:54     ` Paolo Abeni [this message]
2022-09-02  9:17       ` Paolo Abeni

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=81a5905caefa01f2319553805119c5b0eff2d864.camel@redhat.com \
    --to=pabeni@redhat.com \
    --cc=fw@strlen.de \
    --cc=mptcp@lists.linux.dev \
    /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).