From: Sasha Levin <sashal@kernel.org>
To: Wentao Guan <guanwentao@uniontech.com>
Cc: Sasha Levin <sashal@kernel.org>,
stable@vger.kernel.org, gregkh@linuxfoundation.org
Subject: Re: [PATCH 6.18.y 0/5] Backport fixes for handshake
Date: Wed, 5 Aug 2026 12:41:51 -0400 [thread overview]
Message-ID: <20260805164000.stable-0005@kernel.org> (raw)
In-Reply-To: <20260805091348.609325-1-guanwentao@uniontech.com>
On Wed, Aug 05, 2026 at 05:13:44PM +0800, Wentao Guan wrote:
> Christian Brauner (2):
> file: add FD_{ADD,PREPARE}()
> net/handshake: convert handshake_nl_accept_doit() to FD_PREPARE()
>
> Chuck Lever (3):
> net/handshake: Take a long-lived file reference at submit
> net/handshake: hand off the pinned file reference to accept_doit
> net/handshake: Close the submit-side sock_hold race
The series is missing two follow-ups, and without them 6.18 ends up worse
off than it is today:
- dabac51b8102 ("net/handshake: Fix null-ptr-deref in handshake_complete()")
fixes fe67b063f687 ("net/handshake: convert handshake_nl_accept_doit() to
FD_PREPARE()"), your 2/5. After that conversion the ordinary "no pending
request" ACCEPT path falls through to handshake_complete(NULL, -EIO, NULL)
and dereferences req->hr_sk.
- d2ea4d254d04 ("file: ensure cleanup") fixes 011703a9acd7 ("file: add
FD_{ADD,PREPARE}()"), your 1/5. Without it the imported cleanup guard is
err-gated and no-ops on the accept-failure path, leaking an fd and a
struct file.
Either way, please get an ack from the handshake maintainers.
--
Thanks,
Sasha
next prev parent reply other threads:[~2026-08-05 16:42 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-05 9:13 [PATCH 6.18.y 0/5] Backport fixes for handshake Wentao Guan
2026-08-05 9:13 ` [PATCH 6.18.y 1/5] file: add FD_{ADD,PREPARE}() Wentao Guan
2026-08-05 9:13 ` [PATCH 6.18.y 2/5] net/handshake: convert handshake_nl_accept_doit() to FD_PREPARE() Wentao Guan
2026-08-05 9:13 ` [PATCH 6.18.y 3/5] net/handshake: Take a long-lived file reference at submit Wentao Guan
2026-08-05 9:13 ` [PATCH 6.18.y 4/5] net/handshake: hand off the pinned file reference to accept_doit Wentao Guan
2026-08-05 9:13 ` [PATCH 6.18.y 5/5] net/handshake: Close the submit-side sock_hold race Wentao Guan
2026-08-05 16:41 ` Sasha Levin [this message]
2026-08-05 16:54 ` [PATCH 6.18.y 0/5] Backport fixes for handshake Wentao Guan
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=20260805164000.stable-0005@kernel.org \
--to=sashal@kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=guanwentao@uniontech.com \
--cc=stable@vger.kernel.org \
/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