Netdev List
 help / color / mirror / Atom feed
From: Matthieu Baerts <matttbe@kernel.org>
To: netdev-bot+sashiko@kernel.org
Cc: martineau@kernel.org, geliang@kernel.org, davem@davemloft.net,
	edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com,
	willemb@google.com, horms@kernel.org, dcaratti@redhat.com,
	netdev@vger.kernel.org, mptcp@lists.linux.dev, mason@kernel.org,
	stable@vger.kernel.org
Subject: Re: [PATCH net 5/9] mptcp: return EOF after a DATA_FIN, as TCP does
Date: Fri, 4 Dec 2026 13:04:53 +0100	[thread overview]
Message-ID: <6cdd3c32-2b2d-437a-bb0f-eb034731db2e@kernel.org> (raw)
In-Reply-To: <179633471320.3146.5929327584163174012@kernel.org>

Hello,

On 03/12/2026 22:51, netdev-bot+sashiko@kernel.org wrote:

(...)

> [Severity: Medium]
> Is the passive side covered when accept() takes the msk lock before
> mptcp_worker() has handled the emulated DATA_FIN?

(...)

> Could the pending DATA_FIN be processed before mptcp_set_state(newsk,
> TCP_CLOSE) in mptcp_stream_accept()?

Yes. This race is a separate issue, so a different commit. It is fixed
by a patch already in the MPTCP tree, for a next batch:


https://lore.kernel.org/20261124-mptcp-cmason-fixes-v3-13-416c0920c73f@kernel.org

> [Severity: Low]
> Can the lockless READ_ONCE(msk->rcv_data_fin) check in mptcp_close_ssk()
> race with the subflow side?

(...)

> This is a rare corner case. It needs a userspace PM (CAP_NET_ADMIN)
> tearing down the only subflow of a fallback connection, plus precisely
> timed peer packets.

Indeed, and the error is then reported as before this patch. So no need
to modify this patch here.

Cheers,
Matt
-- 
Sponsored by the NGI0 Core fund.


  reply	other threads:[~2026-12-04 12:05 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-02 21:29 [PATCH net 0/9] mptcp: misc fixes for v7.4-rc7 Matthieu Baerts (NGI0)
2026-12-02 21:29 ` [PATCH net 1/9] mptcp: pm: kernel: c-flag: keep local_addr_used in sync Matthieu Baerts (NGI0)
2026-12-02 21:29 ` [PATCH net 2/9] mptcp: keep an orphan while it can send its data Matthieu Baerts (NGI0)
2026-12-03 21:51   ` netdev-bot+sashiko
2026-12-04 12:04     ` Matthieu Baerts
2026-12-02 21:29 ` [PATCH net 3/9] mptcp: limit an orphan probing a zero window Matthieu Baerts (NGI0)
2026-12-03 21:51   ` netdev-bot+sashiko
2026-12-04 12:04     ` Matthieu Baerts
2026-12-02 21:29 ` [PATCH net 4/9] mptcp: count orphans as TCP does Matthieu Baerts (NGI0)
2026-12-03 21:51   ` netdev-bot+sashiko
2026-12-04 12:04     ` Matthieu Baerts
2026-12-02 21:29 ` [PATCH net 5/9] mptcp: return EOF after a DATA_FIN, " Matthieu Baerts (NGI0)
2026-12-03 21:51   ` netdev-bot+sashiko
2026-12-04 12:04     ` Matthieu Baerts [this message]
2026-12-02 21:29 ` [PATCH net 6/9] mptcp: wake up blocked senders when no sf left Matthieu Baerts (NGI0)
2026-12-03 21:51   ` netdev-bot+sashiko
2026-12-04 12:05     ` Matthieu Baerts
2026-12-02 21:29 ` [PATCH net 7/9] mptcp: reclaim forward memory after coalescing skbs Matthieu Baerts (NGI0)
2026-12-03 21:51   ` netdev-bot+sashiko
2026-12-04 12:05     ` Matthieu Baerts
2026-12-02 21:29 ` [PATCH net 8/9] mptcp: don't charge a shared page twice at accept() Matthieu Baerts (NGI0)
2026-12-02 21:29 ` [PATCH net 9/9] mptcp: don't charge the backlog " Matthieu Baerts (NGI0)
2026-12-04 12:05 ` [PATCH net 0/9] mptcp: misc fixes for v7.4-rc7 Matthieu Baerts

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=6cdd3c32-2b2d-437a-bb0f-eb034731db2e@kernel.org \
    --to=matttbe@kernel.org \
    --cc=davem@davemloft.net \
    --cc=dcaratti@redhat.com \
    --cc=edumazet@kernel.org \
    --cc=geliang@kernel.org \
    --cc=horms@kernel.org \
    --cc=kuba@kernel.org \
    --cc=martineau@kernel.org \
    --cc=mason@kernel.org \
    --cc=mptcp@lists.linux.dev \
    --cc=netdev-bot+sashiko@kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=stable@vger.kernel.org \
    --cc=willemb@google.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