Linux kernel -stable discussions
 help / color / mirror / Atom feed
* [PATCH 6.1.y 0/9] io_uring fixes for 6.1-stable
@ 2026-12-05 23:10 Jens Axboe
  2026-12-05 23:10 ` [PATCH 6.1.y 1/9] io_uring/net: don't copy msg_name on a recvmsg retry Jens Axboe
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: Jens Axboe @ 2026-12-05 23:10 UTC (permalink / raw)
  To: stable; +Cc: io-uring, gregkh

Hi Greg,

Here are 9 io_uring patches for 6.1-stable. Patches 1, 4, 5, 8 and 9
went to Linus in io_uring-7.4-20261127, merge commit 7cd8495c0f16
("Merge tag 'io_uring-7.4-20261127' of
git://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux").

Patches 2, 3, 6 and 7 are older mainline commits, backported because the
fixes are written on top of them: 2 (v6.19) and 3 (v7.4-rc1, Fixes: 2)
for 4, which needs ctx->tctx_lock; 6 (v6.13) and 7 (v6.13, Fixes: 6) for
8, which needs the raw timeout_lock.

The series applies on top of v6.1.193 plus queue-6.1 at stable-queue
commit 16dfa5cc8e2f. It also applies to v6.1.193 alone.

Patches 2, 3, 6, 7, 8 and 9 needed changes for 6.1. The [axboe: ...]
note at the end of each says what was changed and why. The rest are the
upstream changes as they are.

Please take these together, in this order: 2-4; 6-8.

Testing: the liburing test suite (liburing-2.15-76-ged312b3c) was run
in KVM guests with PROVE_LOCKING and PROVE_RAW_LOCK_NESTING on two
kernels: v6.1.193, and v6.1.193 plus these patches and the io_uring
patches already in queue-6.1. The patched kernel fails exactly the
tests that v6.1.193 fails (napi-test times out; cancel-fd-userdata,
io-wq-unused-exit, poll, poll-mshot-wake, send-zerocopy and timestamp
fail), all from the test environment. No WARNING, BUG, lockdep or
KASAN report in dmesg on either kernel. io_uring/ builds without
warnings on v6.1.193 plus queue-6.1 plus this series.

CVE assessment, by the io_uring maintainer:

Should get a CVE:
  4/9 io_uring: free the ring after a grace period
  5/9 io_uring/filetable: don't install O_PATH files
  8/9 io_uring/cancel: always walk links under timeout_lock
  9/9 io_uring/net: restore the cmsg buffer on recvmsg retry

Should not get a CVE:
  1/9 io_uring/net: don't copy msg_name on a recvmsg retry
      Writes past msg_name, in the caller's own user memory only.
  2/9 io_uring/tctx: add separate lock for list of tctx's in ctx
      prep for 4/9
  3/9 io_uring: free the task context after a grace period
      Fixes 2/9 of this series, no release has the bug.
  6/9 io_uring: make ctx->timeout_lock a raw spinlock
      prep for 8/9
  7/9 io_uring/timeout: flush timeouts outside of the timeout lock
      Fixes 6/9 of this series, no release has the bug.

Chris Mason (6):
  io_uring/net: don't copy msg_name on a recvmsg retry
  io_uring: free the task context after a grace period
  io_uring: free the ring after a grace period
  io_uring/filetable: don't install O_PATH files
  io_uring/cancel: always walk links under timeout_lock
  io_uring/net: restore the cmsg buffer on recvmsg retry

Jens Axboe (3):
  io_uring/tctx: add separate lock for list of tctx's in ctx
  io_uring: make ctx->timeout_lock a raw spinlock
  io_uring/timeout: flush timeouts outside of the timeout lock

 include/linux/io_uring_types.h | 15 +++++-
 io_uring/cancel.c              |  3 ++
 io_uring/filetable.c           |  3 ++
 io_uring/io_uring.c            | 37 +++++++++------
 io_uring/net.c                 | 12 +++++
 io_uring/tctx.c                | 13 ++++--
 io_uring/timeout.c             | 83 ++++++++++++++++++++--------------
 7 files changed, 112 insertions(+), 54 deletions(-)

-- 
2.55.0


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

end of thread, other threads:[~2026-12-05 23:10 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-05 23:10 [PATCH 6.1.y 0/9] io_uring fixes for 6.1-stable Jens Axboe
2026-12-05 23:10 ` [PATCH 6.1.y 1/9] io_uring/net: don't copy msg_name on a recvmsg retry Jens Axboe
2026-12-05 23:10 ` [PATCH 6.1.y 2/9] io_uring/tctx: add separate lock for list of tctx's in ctx Jens Axboe
2026-12-05 23:10 ` [PATCH 6.1.y 3/9] io_uring: free the task context after a grace period Jens Axboe
2026-12-05 23:10 ` [PATCH 6.1.y 4/9] io_uring: free the ring " Jens Axboe
2026-12-05 23:10 ` [PATCH 6.1.y 5/9] io_uring/filetable: don't install O_PATH files Jens Axboe
2026-12-05 23:10 ` [PATCH 6.1.y 6/9] io_uring: make ctx->timeout_lock a raw spinlock Jens Axboe
2026-12-05 23:10 ` [PATCH 6.1.y 7/9] io_uring/timeout: flush timeouts outside of the timeout lock Jens Axboe
2026-12-05 23:10 ` [PATCH 6.1.y 8/9] io_uring/cancel: always walk links under timeout_lock Jens Axboe
2026-12-05 23:10 ` [PATCH 6.1.y 9/9] io_uring/net: restore the cmsg buffer on recvmsg retry Jens Axboe

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