public inbox for [email protected]
 help / color / mirror / Atom feed
From: Jens Axboe <[email protected]>
To: Pavel Begunkov <[email protected]>, [email protected]
Subject: Re: [PATCH 5.13] io_uring: fix NULL reg-buffer
Date: Mon, 26 Apr 2021 09:04:20 -0600	[thread overview]
Message-ID: <[email protected]> (raw)
In-Reply-To: <830020f9c387acddd51962a3123b5566571b8c6d.1619446608.git.asml.silence@gmail.com>

On 4/26/21 8:17 AM, Pavel Begunkov wrote:
> io_import_fixed() doesn't expect a registered buffer slot to be NULL and
> would fail stumbling on it. We don't allow it, but if during
> __io_sqe_buffers_update() rsrc removal succeeds but following register
> fails, we'll get such a situation.
> 
> Do it atomically and don't remove buffers until we sure that a new one
> can be set.

Applied, thanks.

-- 
Jens Axboe


      reply	other threads:[~2021-04-26 15:04 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-26 14:17 [PATCH 5.13] io_uring: fix NULL reg-buffer Pavel Begunkov
2021-04-26 15:04 ` Jens Axboe [this message]

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 \
    [email protected] \
    [email protected] \
    [email protected] \
    [email protected] \
    /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