All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCHSET 0/3] Ring resizing fixes
@ 2025-01-15 16:06 Jens Axboe
  2025-01-15 16:06 ` [PATCH 1/3] io_uring/register: use stable SQ/CQ ring data during resize Jens Axboe
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Jens Axboe @ 2025-01-15 16:06 UTC (permalink / raw)
  To: io-uring; +Cc: jannh

Hi,

A few fixes for the ring resizing that should go into 6.13. Note that
this doesn't impact other kernels, as the ring resizing was added in
this release.

Patch 1 fixes an issue with malicious userspace modifying the ring
memory while a resize operation is in progress. Patch 2 modifies the
shared memory reading to use read/write once, as is appropriate, and
finally patch 3 ensures the CQ/SQ ring heads are only read once and
that the validated value is used for the copies.

 io_uring/register.c | 52 +++++++++++++++++++++++++++------------------
 1 file changed, 31 insertions(+), 21 deletions(-)

-- 
Jens Axboe


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

end of thread, other threads:[~2025-01-15 16:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-15 16:06 [PATCHSET 0/3] Ring resizing fixes Jens Axboe
2025-01-15 16:06 ` [PATCH 1/3] io_uring/register: use stable SQ/CQ ring data during resize Jens Axboe
2025-01-15 16:06 ` [PATCH 2/3] io_uring/register: document io_register_resize_rings() shared mem usage Jens Axboe
2025-01-15 16:06 ` [PATCH 3/3] io_uring/register: cache old SQ/CQ head reading for copies 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.