All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 6.12.y 00/15] io_uring fixes for 6.12-stable
@ 2026-12-05 23:10 Jens Axboe
  2026-12-05 23:10 ` [PATCH 6.12.y 01/15] io_uring/net: don't charge the folio offset to truesize for managed frags Jens Axboe
                   ` (14 more replies)
  0 siblings, 15 replies; 16+ messages in thread
From: Jens Axboe @ 2026-12-05 23:10 UTC (permalink / raw)
  To: stable; +Cc: io-uring, gregkh

Hi Greg,

Here are 15 io_uring patches for 6.12-stable. Patches 1, 2, 3, 6, 7, 10,
11 and 12 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 14
and 15 went in io_uring-7.4-20261205, merge commit 29217cb8ce52 ("Merge
tag 'io_uring-7.4-20261205' of
git://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux").

Patches 4, 5, 8, 9 and 13 are older mainline commits, backported because
the fixes are written on top of them: 4 (v6.19) and 5 (v7.4-rc1, Fixes:
4) for 6, which needs ctx->tctx_lock; 8 (v6.13) and 9 (v6.13, Fixes: 8)
for 10, which needs the raw timeout_lock; 13 (v6.13) for 14, which is
written for io_uring_poll() without the smp_rmb().

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

Patches 4, 5, 8, 9, 10, 14 and 15 needed changes for 6.12. 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: 4-6; 8-10; 13 and 14.

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.12.120, and v6.12.120 plus these patches. The patched
kernel fails exactly the tests that v6.12.120 fails (napi-test times
out; io-wq-unused-exit, read-mshot, read-mshot-fuse, ringbuf-read,
send-zerocopy, timestamp and waitid 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.12.120 plus
queue-6.12 plus this series.

CVE assessment, by the io_uring maintainer:

Should get a CVE:
   3/15 io_uring/kbuf: clear REQ_F_BL_NO_RECYCLE on buffer put
   6/15 io_uring: free the ring after a grace period
   7/15 io_uring/filetable: don't install O_PATH files
  10/15 io_uring/cancel: always walk links under timeout_lock
  11/15 io_uring/net: don't count the buffers of a send bundle
  12/15 io_uring/net: restore the cmsg buffer on recvmsg retry

Should not get a CVE:
   1/15 io_uring/net: don't charge the folio offset to truesize for
        managed frags
        Overcharges skb truesize on the sender's own socket; a
        performance bug.
   2/15 io_uring/net: don't copy msg_name on a recvmsg retry
        Writes past msg_name, in the caller's own user memory only.
   4/15 io_uring/tctx: add separate lock for list of tctx's in ctx
        prep for 6/15
   5/15 io_uring: free the task context after a grace period
        Fixes 4/15 of this series, no release has the bug.
   8/15 io_uring: make ctx->timeout_lock a raw spinlock
        prep for 10/15
   9/15 io_uring/timeout: flush timeouts outside of the timeout lock
        Fixes 8/15 of this series, no release has the bug.
  13/15 io_uring_poll: kill the no longer necessary barrier after
        poll_wait()
        prep for 14/15
  14/15 io_uring: close poll activation race when enabling rings
        Missed poll wakeup on the app's own ring.
  15/15 io_uring/cancel: arm local work wakeups only for submitter
        Early or spurious wakeups of the submitter, no crash in this
        tree.

Andrea Parri (2):
  io_uring: close poll activation race when enabling rings
  io_uring/cancel: arm local work wakeups only for submitter

Chris Mason (8):
  io_uring/net: don't copy msg_name on a recvmsg retry
  io_uring/kbuf: clear REQ_F_BL_NO_RECYCLE on buffer put
  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: don't count the buffers of a send bundle
  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

Louis Thiery (1):
  io_uring/net: don't charge the folio offset to truesize for managed
    frags

Oleg Nesterov (1):
  io_uring_poll: kill the no longer necessary barrier after poll_wait()

 include/linux/io_uring_types.h | 15 +++++-
 io_uring/cancel.c              |  3 ++
 io_uring/filetable.c           |  3 ++
 io_uring/io_uring.c            | 50 +++++++++++--------
 io_uring/kbuf.c                |  3 ++
 io_uring/net.c                 | 27 ++++++++---
 io_uring/register.c            |  2 +
 io_uring/tctx.c                | 13 +++--
 io_uring/timeout.c             | 87 ++++++++++++++++++++--------------
 9 files changed, 134 insertions(+), 69 deletions(-)

-- 
2.55.0


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

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

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-05 23:10 [PATCH 6.12.y 00/15] io_uring fixes for 6.12-stable Jens Axboe
2026-12-05 23:10 ` [PATCH 6.12.y 01/15] io_uring/net: don't charge the folio offset to truesize for managed frags Jens Axboe
2026-12-05 23:10 ` [PATCH 6.12.y 02/15] io_uring/net: don't copy msg_name on a recvmsg retry Jens Axboe
2026-12-05 23:10 ` [PATCH 6.12.y 03/15] io_uring/kbuf: clear REQ_F_BL_NO_RECYCLE on buffer put Jens Axboe
2026-12-05 23:10 ` [PATCH 6.12.y 04/15] io_uring/tctx: add separate lock for list of tctx's in ctx Jens Axboe
2026-12-05 23:10 ` [PATCH 6.12.y 05/15] io_uring: free the task context after a grace period Jens Axboe
2026-12-05 23:10 ` [PATCH 6.12.y 06/15] io_uring: free the ring " Jens Axboe
2026-12-05 23:10 ` [PATCH 6.12.y 07/15] io_uring/filetable: don't install O_PATH files Jens Axboe
2026-12-05 23:11 ` [PATCH 6.12.y 08/15] io_uring: make ctx->timeout_lock a raw spinlock Jens Axboe
2026-12-05 23:11 ` [PATCH 6.12.y 09/15] io_uring/timeout: flush timeouts outside of the timeout lock Jens Axboe
2026-12-05 23:11 ` [PATCH 6.12.y 10/15] io_uring/cancel: always walk links under timeout_lock Jens Axboe
2026-12-05 23:11 ` [PATCH 6.12.y 11/15] io_uring/net: don't count the buffers of a send bundle Jens Axboe
2026-12-05 23:11 ` [PATCH 6.12.y 12/15] io_uring/net: restore the cmsg buffer on recvmsg retry Jens Axboe
2026-12-05 23:11 ` [PATCH 6.12.y 13/15] io_uring_poll: kill the no longer necessary barrier after poll_wait() Jens Axboe
2026-12-05 23:11 ` [PATCH 6.12.y 14/15] io_uring: close poll activation race when enabling rings Jens Axboe
2026-12-05 23:11 ` [PATCH 6.12.y 15/15] io_uring/cancel: arm local work wakeups only for submitter 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.