All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 7.3.y 00/15] io_uring fixes for 7.3-stable
@ 2026-12-05 23:12 Jens Axboe
  2026-12-05 23:12 ` [PATCH 7.3.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:12 UTC (permalink / raw)
  To: stable; +Cc: io-uring, gregkh

Hi Greg,

Here are 15 io_uring fixes for 7.3-stable. Patches 1-11 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-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").

The series applies on top of v7.3.7 plus queue-7.3 at stable-queue
commit 16dfa5cc8e2f. It also applies to v7.3.7 alone.

None of the patches needed changes, they are the upstream commits as
they are.

Please take 6 and 7 together: both are needed for the walk of a link
chain under timeout_lock to be safe against a linked timeout that goes
away.

Testing: the liburing test suite (liburing-2.15-76-ged312b3c) was run in
KVM guests with PROVE_LOCKING on two kernels: v7.3.7, and v7.3.7 plus
these patches. The patched kernel fails exactly the tests that v7.3.7
fails (napi-test times out; cbpf_filter, iowait, read-mshot,
read-mshot-fuse, ringbuf-read, send-zerocopy, timestamp, vec-regbuf and
waitid fail), all from the test environment. No WARNING, BUG, lockdep or
KASAN report in dmesg on either kernel. The zcrx change in 14 is build
tested only, the guests have no NIC that supports zcrx. io_uring/ builds
without warnings on v7.3.7 plus queue-7.3 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
   4/15 io_uring: free the ring after a grace period
   5/15 io_uring/filetable: don't install O_PATH files
   6/15 io_uring/timeout: hold timeout_lock for the link splice
   7/15 io_uring/cancel: always walk links under timeout_lock
   8/15 io_uring/net: don't count the buffers of a send bundle
   9/15 io_uring/net: restore the cmsg buffer on recvmsg retry
  15/15 io_uring: enforce task restrictions on blind MSG_RING

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.
  10/15 io_uring/openclose: allow an empty path with O_EMPTYPATH
        Functional fix, a valid open failed with -ENOENT.
  11/15 io_uring/bpf-ops: validate loop_step before registration
        The WARN needs a struct_ops map, which needs CAP_BPF.
  12/15 io_uring: close poll activation race when enabling rings
        Missed poll wakeup on the app's own ring.
  13/15 io_uring/cancel: arm local work wakeups only for submitter
        Needs a zcrx ifq for the crash, which needs CAP_NET_ADMIN.
  14/15 io_uring/zcrx: don't sync dma-bufs
        Needs a zcrx ifq, which needs CAP_NET_ADMIN.

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 ring after a grace period
  io_uring/filetable: don't install O_PATH files
  io_uring/timeout: hold timeout_lock for the link splice
  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

Hengyu Liang (1):
  io_uring/openclose: allow an empty path with O_EMPTYPATH

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

Pavel Begunkov (1):
  io_uring/zcrx: don't sync dma-bufs

Sechang Lim (1):
  io_uring/bpf-ops: validate loop_step before registration

Shawn Shao (1):
  io_uring: enforce task restrictions on blind MSG_RING

 include/linux/io_uring_types.h |  2 ++
 io_uring/bpf-ops.c             |  8 +++++++
 io_uring/cancel.c              | 21 +++++++++---------
 io_uring/filetable.c           |  3 +++
 io_uring/io_uring.c            | 39 +++++++---------------------------
 io_uring/io_uring.h            | 21 ++++++++++++++++++
 io_uring/kbuf.c                |  3 +++
 io_uring/net.c                 | 27 +++++++++++++++++------
 io_uring/openclose.c           |  5 ++++-
 io_uring/register.c            | 21 ++++++++++++++++++
 io_uring/tctx.c                |  3 +++
 io_uring/timeout.c             |  5 ++++-
 io_uring/zcrx.c                |  6 +++++-
 13 files changed, 113 insertions(+), 51 deletions(-)

-- 
2.55.0


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

end of thread, other threads:[~2026-12-05 23:13 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:12 [PATCH 7.3.y 00/15] io_uring fixes for 7.3-stable Jens Axboe
2026-12-05 23:12 ` [PATCH 7.3.y 01/15] io_uring/net: don't charge the folio offset to truesize for managed frags Jens Axboe
2026-12-05 23:12 ` [PATCH 7.3.y 02/15] io_uring/net: don't copy msg_name on a recvmsg retry Jens Axboe
2026-12-05 23:12 ` [PATCH 7.3.y 03/15] io_uring/kbuf: clear REQ_F_BL_NO_RECYCLE on buffer put Jens Axboe
2026-12-05 23:12 ` [PATCH 7.3.y 04/15] io_uring: free the ring after a grace period Jens Axboe
2026-12-05 23:12 ` [PATCH 7.3.y 05/15] io_uring/filetable: don't install O_PATH files Jens Axboe
2026-12-05 23:12 ` [PATCH 7.3.y 06/15] io_uring/timeout: hold timeout_lock for the link splice Jens Axboe
2026-12-05 23:12 ` [PATCH 7.3.y 07/15] io_uring/cancel: always walk links under timeout_lock Jens Axboe
2026-12-05 23:12 ` [PATCH 7.3.y 08/15] io_uring/net: don't count the buffers of a send bundle Jens Axboe
2026-12-05 23:12 ` [PATCH 7.3.y 09/15] io_uring/net: restore the cmsg buffer on recvmsg retry Jens Axboe
2026-12-05 23:13 ` [PATCH 7.3.y 10/15] io_uring/openclose: allow an empty path with O_EMPTYPATH Jens Axboe
2026-12-05 23:13 ` [PATCH 7.3.y 11/15] io_uring/bpf-ops: validate loop_step before registration Jens Axboe
2026-12-05 23:13 ` [PATCH 7.3.y 12/15] io_uring: close poll activation race when enabling rings Jens Axboe
2026-12-05 23:13 ` [PATCH 7.3.y 13/15] io_uring/cancel: arm local work wakeups only for submitter Jens Axboe
2026-12-05 23:13 ` [PATCH 7.3.y 14/15] io_uring/zcrx: don't sync dma-bufs Jens Axboe
2026-12-05 23:13 ` [PATCH 7.3.y 15/15] io_uring: enforce task restrictions on blind MSG_RING 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.