All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jens Axboe <axboe@kernel.dk>
To: stable@vger.kernel.org
Cc: io-uring@vger.kernel.org, gregkh@linuxfoundation.org
Subject: [PATCH 6.6.y 00/13] io_uring fixes for 6.6-stable
Date: Sat,  5 Dec 2026 23:12:20 +0000	[thread overview]
Message-ID: <20261205231233.4140988-1-axboe@kernel.dk> (raw)

Hi Greg,

Here are 13 io_uring patches for 6.6-stable. Patches 1, 2, 5, 6, 9 and
10 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 12
and 13 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 3, 4, 7, 8 and 11 are older mainline commits, backported because
the fixes are written on top of them: 3 (v6.19) and 4 (v7.4-rc1, Fixes:
3) for 5, which needs ctx->tctx_lock; 7 (v6.13) and 8 (v6.13, Fixes: 7)
for 9, which needs the raw timeout_lock; 11 (v6.13) for 12, which is
written for io_uring_poll() without the smp_rmb().

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

Patches 3, 4, 7, 8, 9, 10, 12 and 13 needed changes for 6.6. 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: 3-5; 7-9; 11 and 12.

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.6.163, and v6.6.163 plus these patches and the io_uring
patches already in queue-6.6, except "io_uring/io-wq: apply the current
cpuset to new workers", which is not on the tested branch. The patched
kernel fails exactly the tests that v6.6.163 fails (napi-test times
out; io-wq-unused-exit, 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.6.163
plus queue-6.6 plus this series.

CVE assessment, by the io_uring maintainer:

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

Should not get a CVE:
   1/13 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/13 io_uring/net: don't copy msg_name on a recvmsg retry
        Writes past msg_name, in the caller's own user memory only.
   3/13 io_uring/tctx: add separate lock for list of tctx's in ctx
        prep for 5/13
   4/13 io_uring: free the task context after a grace period
        Fixes 3/13 of this series, no release has the bug.
   7/13 io_uring: make ctx->timeout_lock a raw spinlock
        prep for 9/13
   8/13 io_uring/timeout: flush timeouts outside of the timeout lock
        Fixes 7/13 of this series, no release has the bug.
  11/13 io_uring_poll: kill the no longer necessary barrier after
        poll_wait()
        prep for 12/13
  12/13 io_uring: close poll activation race when enabling rings
        Missed poll wakeup on the app's own ring.
  13/13 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 (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

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            | 52 ++++++++++++--------
 io_uring/net.c                 | 19 +++++++-
 io_uring/tctx.c                | 13 +++--
 io_uring/timeout.c             | 87 ++++++++++++++++++++--------------
 7 files changed, 128 insertions(+), 64 deletions(-)

-- 
2.55.0


             reply	other threads:[~2026-12-05 23:12 UTC|newest]

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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261205231233.4140988-1-axboe@kernel.dk \
    --to=axboe@kernel.dk \
    --cc=gregkh@linuxfoundation.org \
    --cc=io-uring@vger.kernel.org \
    --cc=stable@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.