public inbox for io-uring@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCHSET v2] Fix DEFER_TASKRUN ring resize flag manipulation
@ 2026-03-11 13:11 Jens Axboe
  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 13:11 ` [PATCH 2/2] io_uring/eventfd: use ctx->rings_rcu for flags checking Jens Axboe
  0 siblings, 2 replies; 8+ messages in thread
From: Jens Axboe @ 2026-03-11 13:11 UTC (permalink / raw)
  To: io-uring; +Cc: asml.silence, naup96721

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


^ permalink raw reply	[flat|nested] 8+ messages in thread
* [PATCHSET 0/2] Fix DEFER_TASKRUN ring resize flag manipulation
@ 2026-03-10 14:45 Jens Axboe
  2026-03-10 14:45 ` [PATCH 1/2] io_uring: ensure ctx->rings is stable for task work flags manipulation Jens Axboe
  0 siblings, 1 reply; 8+ messages in thread
From: Jens Axboe @ 2026-03-10 14:45 UTC (permalink / raw)
  To: io-uring; +Cc: asml.silence, naup96721

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.

-- 
Jens Axboe


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2026-03-11 15:12 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-11 13:11 [PATCHSET v2] Fix DEFER_TASKRUN ring resize flag manipulation Jens Axboe
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
  -- strict thread matches above, loose matches on Subject: below --
2026-03-10 14:45 [PATCHSET 0/2] Fix DEFER_TASKRUN ring resize flag manipulation Jens Axboe
2026-03-10 14:45 ` [PATCH 1/2] io_uring: ensure ctx->rings is stable for task work flags manipulation Jens Axboe
2026-03-11 11:13   ` Pavel Begunkov
2026-03-11 13:05     ` Jens Axboe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox