From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.210.53 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796512389; b=YvsBRGbY5AC2uwzWvR0BFgvmm9igU29o8EefHCYo1GNsGdpcz1uD7+tBczXOM713v1SU GqEzpWQY9v03QRD1nx8jEYGXvu0xg5MA8q361LnyC44QV9RLl9l8tb64FLfsuOXNZjVve sxR3hecMOWjJVH915nECv9jxvSRtQKt84a8pAeP5NRCrkNsJzFDmoKYDREe5pKN8xa6tr jH9TqEM9H3QjLdyXLLpFLfbLDE2CEc4+YBdAFcMTOgmgW4fi7DQ+zQ5pd1TPnGKcStr6I bfDqDxHbJy/dUtIwws5IAq9B26VHxZRL7qOPnh1F8SGPk0S7oiiZ1EFnNsJ9t7cdzhg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796512389; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Gm-Message-State:X-Gm-Gg:X-Received:Received:From:To:Cc:Subject: Date:Message-ID:X-Mailer:MIME-Version:Content-Transfer-Encoding; bh=G3QK+FdVimQnrqIoeEVDSJJozYG6keTCcZ8wAceohuM=; b=EaBeJkHFUGRZcgaCoBU7COuswChQoZzT/k4JjIvp7w5CJyDQk0I2+oj8h9D44GqJDXEI LtwhGPb9gwr2Fg1d0rNeOkb4e5gBotTN/jy/rZqCMuwObcpK+O4DzV6J+zCLJIG1rJ4PW SqmAcUNThR15CwrhheN9VMCYBtPGP6c0PmGi40OW8xQemJfA1Nazt2QgAltspP0JYaxR7 eFMGyd4YHduT9ZWlVjqB2Fj3zKqQLkLHCXzOvqvKfrn15Tbre8lq1vtMa+EmXG4O6+lvx okGPmqTpRHj7snoHxBGVi/LhxvcWZUCVHSOAsLP0YMk75x5owF6FVlBwRj2pU1BzEjQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=kernel.dk; spf=pass smtp.mailfrom=kernel.dk; dkim=pass header.d=kernel.dk header.i=@kernel.dk header.a=rsa-sha256 header.s=google header.b="N1MVTq/R"; arc=none smtp.remote-ip=209.85.210.53 Received: from mail-ot1-f53.google.com (mail-ot1-f53.google.com [209.85.210.53]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 89358606A322 for ; Sat, 5 Dec 2026 23:13:09 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 89358606A322 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=kernel.dk Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=kernel.dk Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.dk header.i=@kernel.dk header.a=rsa-sha256 header.s=google header.b=N1MVTq/R Received: by mail-ot1-f53.google.com with SMTP id 46e09a7af769-862b9c2e78aso1164238a34.2 for ; Sat, 05 Dec 2026 15:13:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.dk; s=google; t=1796512388; x=1797117188; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=G3QK+FdVimQnrqIoeEVDSJJozYG6keTCcZ8wAceohuM=; b=N1MVTq/RVSbgocCqYIqmQXNOdvySOUBNNvtPOaucxQyBIoVWZIO7zmraQXXX6wX8Cl c/RC68rij/UTmS5vh0nap0Ja9Ux8yBuTnHykOFoMrL/ApPrra8lJzbFWguVB4b3Ik5sN X5xPlUdR9SRxY4KvYUAm9cqtRD7Vt7px6CtBqJLZdVj8M23fa33DrdssuQVN70GkvL0d EHyfnnbuei9kc2gowW2yjlT0+7ABKZwnZVxHR9rDTbmRoAAGkMapVPphDUwm7trzfr3G idpIUZvrQzdRrVSRGmFi3CnMRBSAZaaJR9MT2cfeCua363/XTfUb6Y2xdMBTLrQ491mr QAgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796512388; x=1797117188; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=G3QK+FdVimQnrqIoeEVDSJJozYG6keTCcZ8wAceohuM=; b=QJrlQtY+0RRVQvYIqbWDejfBkr5/KsvDLg4RlRgCMhXS1pBONKUCXah+6mk+MglYk1 7oipoJbfBFJpMsPpGdSyupvM97c+2hVH8yOa7b1yO3usiZrpqjocnFzCwXo6ALAQX4kN woYTTmmVZS8eJVfiCfnkvVQD5wmhTCQMqWEoNVk3FlswRPAKV3ZQMgVnx7xbmESebJO1 XSyt89T/20d9moCSy3qrSwMwUTXNt2ZdcTyOKYbKDe0VlcfbvDJb/Jf9ycJ897Kyc5dT XI/AOjiDft7DgZXF66yxsZJklfTJ/zdIS8vL05oCZrIes+t9HkCpHZ+Xz0fdizTJu9fL vqQA== X-Gm-Message-State: APuU4Z9hDNt2pBPamPgSZVxVo/ZZkTTyDM2LZGR6TDVKGS3PcYxQhkZE SNlwYVAFtwVW7l9JxtnAhtDs5vxh2U2FgkYvSxpynfXKupv80Z1T1P9OR6nGPCxaGOKBAl75JuJ i1LeXweE= X-Gm-Gg: AZFdTZdjl8Z1JluVysj5xuJ7gLoAe9lu0pniBmL5wiMtgbtO1SEy+BDQPfujH0rJPxI OUwY3GPwPG1l1mghRjRzo1uJoACdsghG4YKhvI7rvjpRMG6R3lDPkWBYZvNP54dj+a7+BTV6poh MMRo7L7JA3qQ/ff2Ux+ZKXAuKTaMtdLdOpIGZSRUeofXuizzn5p8/lDnL+X2xwOs35h4j9asnwH 4YH3k111sWct2+IAXwoBxGvK5N4u/K2CrbIDoTdbwyciQ64QrqSsRRlmLN27f828jXP88MKIPq0 M4jEjWTHMBim4yhXEAlnFq2qYfjs96e3JD8TV+9AeggGi41/PoDNE3HXaBgCiJQijCQW2f4fCl6 W12v1FqO9qJPIQSIkOEWqnhUDpSGyr1H4fWIzEAy7z2rgvuMwhO8XC7INRpv1yW4jcF98FBVO0M 754bGcPkmsH8lf6QK7kvaij9VIWojKR3gt3RASVBgJmdrsDtUWhSpQsH/SiunrFq3ys/hUfdHar g5TZrQHn2l2W5eNs4E+5kBRI3MR2wr7sk1srZ3mflPM+UxZxf4yzEw/K7jy2rfMECCTicgmN6LY 2Eq59URxfZBZl2v8Nnq5wTA4dyEOMIXLpx+Dg8gAnSStPzopgk2y4y+RvLy+d82ZhakLBZboo+W ZJvhhtLDMzMC+LAcCPKecexVMWBuU/EVLi9qunsQFjPstelbk/UIOjwIdHQ== X-Received: by 2002:a05:6830:448e:b0:843:cc20:9d07 with SMTP id 46e09a7af769-863f89d0f5dmr6215798a34.16.1796512388501; Sat, 05 Dec 2026 15:13:08 -0800 (PST) Received: from r7625 ([96.43.243.2]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-863f8331ff6sm6269737a34.22.2026.12.05.15.13.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 05 Dec 2026 15:13:07 -0800 (PST) From: Jens Axboe To: stable@vger.kernel.org Cc: io-uring@vger.kernel.org, gregkh@linuxfoundation.org Subject: [PATCH 7.3.y 00/15] io_uring fixes for 7.3-stable Date: Sat, 5 Dec 2026 23:12:50 +0000 Message-ID: <20261205231305.4158103-1-axboe@kernel.dk> X-Mailer: git-send-email 2.55.0 X-Mailing-List: io-uring@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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