All of lore.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; 5+ 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] 5+ messages in thread

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

Thread overview: 5+ 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

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.