Ring resizing fixes
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | io_uring/register: use stable SQ/CQ ring data during resizeio_uring/ | +2 | 0 replies | |
| 2/3 | io_uring/register: document io_register_resize_rings() shared mem usageio_uring/ | +26 | 0 replies | |
| 3/3 | io_uring/register: cache old SQ/CQ head reading for copiesio_uring/ | +7 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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