From: Greg KH <gregkh@linuxfoundation.org>
To: Pavel Begunkov <asml.silence@gmail.com>
Cc: stable@vger.kernel.org, Muhammad Ramdhan <ramdhan@starlabs.sg>,
Bing-Jhong Billy Jheng <billy@starlabs.sg>,
Jacob Soo <jacob.soo@starlabs.sg>, Jens Axboe <axboe@kernel.dk>
Subject: Re: [PATCH stable-6.6 1/3] io_uring: fix multishots with selected buffers
Date: Tue, 11 Feb 2025 11:16:33 +0100 [thread overview]
Message-ID: <2025021120-relearn-move-a4a0@gregkh> (raw)
In-Reply-To: <7f1d8d30db7f5b304893917da8f9d22a38edb965.1738772087.git.asml.silence@gmail.com>
On Mon, Feb 10, 2025 at 03:21:36PM +0000, Pavel Begunkov wrote:
> [ upstream commit d63b0e8a628e62ca85a0f7915230186bb92f8bb4 ]
>
> We do io_kbuf_recycle() when arming a poll but every iteration of a
> multishot can grab more buffers, which is why we need to flush the kbuf
> ring state before continuing with waiting.
>
> Cc: stable@vger.kernel.org
> Fixes: b3fdea6ecb55c ("io_uring: multishot recv")
> Reported-by: Muhammad Ramdhan <ramdhan@starlabs.sg>
> Reported-by: Bing-Jhong Billy Jheng <billy@starlabs.sg>
> Reported-by: Jacob Soo <jacob.soo@starlabs.sg>
> Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
> Link: https://lore.kernel.org/r/1bfc9990fe435f1fc6152ca9efeba5eb3e68339c.1738025570.git.asml.silence@gmail.com
> Signed-off-by: Jens Axboe <axboe@kernel.dk>
> ---
> io_uring/poll.c | 2 ++
> 1 file changed, 2 insertions(+)
This is already in our 6.6.y queue, thanks!
greg k-h
next prev parent reply other threads:[~2025-02-11 10:16 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-10 15:21 [PATCH stable-6.6 0/3] provided buffer recycling fixes Pavel Begunkov
2025-02-10 15:21 ` [PATCH stable-6.6 1/3] io_uring: fix multishots with selected buffers Pavel Begunkov
2025-02-11 10:16 ` Greg KH [this message]
2025-02-10 15:21 ` [PATCH stable-6.6 2/3] io_uring: fix io_req_prep_async with provided buffers Pavel Begunkov
2025-02-11 10:17 ` Greg KH
2025-02-10 15:21 ` [PATCH stable-6.6 3/3] io_uring/rw: commit provided buffer state on async Pavel Begunkov
2025-02-11 10:16 ` Greg KH
2025-02-11 10:18 ` [PATCH stable-6.6 0/3] provided buffer recycling fixes Greg KH
2025-02-12 11:59 ` Pavel Begunkov
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=2025021120-relearn-move-a4a0@gregkh \
--to=gregkh@linuxfoundation.org \
--cc=asml.silence@gmail.com \
--cc=axboe@kernel.dk \
--cc=billy@starlabs.sg \
--cc=jacob.soo@starlabs.sg \
--cc=ramdhan@starlabs.sg \
--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