Skip to content

Ring resizing fixes

Jens Axboe io-uring 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3io_uring/register: use stable SQ/CQ ring data during resizeio_uring/register.c+2 -20 replies
2/3io_uring/register: document io_register_resize_rings() shared mem usageio_uring/register.c+26 -180 replies
3/3io_uring/register: cache old SQ/CQ head reading for copiesio_uring/register.c+7 -50 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCHSET 0/3] Ring resizing fixes

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(-)
Signature · 1 line
Jens Axboe