public inbox for io-uring@vger.kernel.org
 help / color / mirror / Atom feed
From: Pavel Begunkov <asml.silence@gmail.com>
To: Keith Busch <kbusch@kernel.org>
Cc: io-uring@vger.kernel.org, axboe@kernel.dk
Subject: Re: [PATCH 1/2] io_uring/timeout: READ_ONCE sqe->addr
Date: Wed, 25 Feb 2026 10:35:05 +0000	[thread overview]
Message-ID: <f9d85900-3353-49db-b98a-c8c8466956ea@gmail.com> (raw)
In-Reply-To: <aZ3WH6S7TjyvPd5V@kbusch-mbp>

On 2/24/26 16:47, Keith Busch wrote:
> On Tue, Feb 24, 2026 at 04:12:10PM +0000, Pavel Begunkov wrote:
>> @@ -557,7 +557,7 @@ static int __io_timeout_prep(struct io_kiocb *req,
>>   	data->req = req;
>>   	data->flags = flags;
>>   
>> -	if (get_timespec64(&data->ts, u64_to_user_ptr(sqe->addr)))
>> +	if (get_timespec64(&data->ts, u64_to_user_ptr(READ_ONCE(sqe->addr))))
>>   		return -EFAULT;
> 
> Should io_timeout_remove_prep() get the same update? Otherwise looks
> good.

good catch, it misses it as well

-- 
Pavel Begunkov


  parent reply	other threads:[~2026-02-25 10:35 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-24 16:12 [PATCH 0/2] timeout immediate arg Pavel Begunkov
2026-02-24 16:12 ` [PATCH 1/2] io_uring/timeout: READ_ONCE sqe->addr Pavel Begunkov
2026-02-24 16:47   ` Keith Busch
2026-02-24 18:28     ` Jens Axboe
2026-02-25 10:35     ` Pavel Begunkov [this message]
2026-02-24 16:12 ` [PATCH 2/2] io_uring/timeout: immediate timeout arg Pavel Begunkov
2026-02-24 18:31   ` Jens Axboe

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=f9d85900-3353-49db-b98a-c8c8466956ea@gmail.com \
    --to=asml.silence@gmail.com \
    --cc=axboe@kernel.dk \
    --cc=io-uring@vger.kernel.org \
    --cc=kbusch@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