net: mptcp: fix unreleased socket in accept queue
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v5 Latest2 patches 2 repliesIn review
- v43 patches 5 repliesSuperseded
- v31 patch 4 repliesSuperseded
Earlier versions · 2
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v2 | 1 patch | 2 replies | Superseded | |
| v1 | 1 patch | 6 replies | Superseded |
Changes in v5 from the cover letter
- keep sock_hold() in __mptcp_close() in the 1th patch
- rename cancel_work to do_cancel_work in the 1th patch
- don't make mptcp_cancel_work() inline in the 2th patch
Patches in v5 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | net: mptcp: factor out __mptcp_close() without socket locknet/ net/ | +13 | 0 replies | |
| 2/2 | net: mptcp: fix unreleased socket in accept queuenet/ net/ net/ | +9 | 0 replies |
Reviews trailers per patch
All 2 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Jiang Biao | Mengen Sun | Paolo Abeni |
|---|---|---|---|
| Series | A-b | ||
| 1/2 | R-b | R-b | |
| 2/2 | R-b | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.
Cover letter [PATCH net v5 0/2] net: mptcp: fix unreleased socket in accept queue
From: Menglong Dong <[email protected]>
The mptcp socket and its subflow sockets in accept queue can't be released after the process exit.
While the release of a mptcp socket in listening state, the corresponding tcp socket will be released too. Meanwhile, the tcp socket in the unaccept queue will be released too. However, only init subflow is in the unaccept queue, and the joined subflow is not in the unaccept queue, which makes the joined subflow won't be released, and therefore the corresponding unaccepted mptcp socket will not be released to.
In the 1th patch, we factor-out __mptcp_close() which should run under socket lock.
And in the 2th patch, we fix the problem we mentioned above by closing all of the unaccepted mptcp socket in mptcp_subflow_queue_clean() with __mptcp_close().
Changes since v4:
- keep sock_hold() in __mptcp_close() in the 1th patch
- rename cancel_work to do_cancel_work in the 1th patch
- don't make mptcp_cancel_work() inline in the 2th patch
Changes since v3:
- factor out __mptcp_close() and replace mptcp_close() with it in mptcp_subflow_queue_clean()
Menglong Dong (2):
net: mptcp: factor out __mptcp_close() without socket lock
net: mptcp: fix unreleased socket in accept queue
net/mptcp/protocol.c | 16 +++++++++++++--- net/mptcp/protocol.h | 2 ++ net/mptcp/subflow.c | 33 +++++++-------------------------- 3 files changed, 22 insertions(+), 29 deletions(-)
Signature · 1 line
2.37.2