All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jens Axboe <axboe@kernel.dk>
To: io-uring@vger.kernel.org
Cc: asml.silence@gmail.com, naup96721@gmail.com
Subject: [PATCHSET v2] Fix DEFER_TASKRUN ring resize flag manipulation
Date: Wed, 11 Mar 2026 07:11:54 -0600	[thread overview]
Message-ID: <20260311131336.197028-1-axboe@kernel.dk> (raw)

Hi,

Two patches here:

1) Fix adding local task_work during ring resize. There's a tiny gap
   where a NULL pointer would be used.

2) Same issue exists in the eventfd handling, so apply the same kind of
   fix there.

Thanks to Hao-Yu Yang for the report and initial fix attempt, and Pavel
for a good suggestion on how best to handle this.

Changes since v1:
- Don't clear -rings_rcu during resize, old rings remain valid until
  post RCU synchronize anyway (Pavel)

-- 
Jens Axboe


             reply	other threads:[~2026-03-11 13:13 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-11 13:11 Jens Axboe [this message]
2026-03-11 13:11 ` [PATCH 1/2] io_uring: ensure ctx->rings is stable for task work flags manipulation Jens Axboe
2026-03-11 15:06   ` Keith Busch
2026-03-11 15:12     ` Jens Axboe
2026-03-11 13:11 ` [PATCH 2/2] io_uring/eventfd: use ctx->rings_rcu for flags checking 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=20260311131336.197028-1-axboe@kernel.dk \
    --to=axboe@kernel.dk \
    --cc=asml.silence@gmail.com \
    --cc=io-uring@vger.kernel.org \
    --cc=naup96721@gmail.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.