From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.210.44 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796512389; b=IkYy+pf9Xe8tOTlQmh2gJBFN6nQj5bjEvnQQwfugyUTItH8+ijjP0IX6AsY9kL3X3313 ieUhXW5TSMy19cZRiKFKey3VSclONBxPMmb9bZp9HaLDGiAdfSKF5kvZc0RH8LJeO+PgX YktCN9dIfKOs9bce+sYu1/idTLgd5qYvZjKOlX2vg62e7FaOupCU35xwlq4t6NGpQk3T4 Sc78nUYY54m5AWrXtLPeo/sLBcwDR8VPoh3PIHxUNlMYJ+WT0/Bi7shcC5TMCtcfTGuG9 bJiBk3MP3mbaY/gbJ3A/DNvKMEFx+K0H6/ka3tqi+nOAW7m0k8rrlxMjM0DmMoBymHA== 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=YFRDP6VFGQV9PZnJ/MWK4b72wMV3drss+ivLzVBnTjsyp+Mzvta8/dfYDkzEQ4GxXCGb F4R1cYtKzQhkrnKlATcIUN2c2DIGrNSK/ZykB+9R6Ev60+rV+PsR70m9W64PKOvrXGnt8 lCkr5LIF7lUTo4zE/Gs948Z1Ea6sUPDTO7dYzke+OoJGOQ816mkOLmwy+ASSZXivMzvYE iCjD4eOumcBZ3fiTEZ9p6X7jyXXS5j3dw1npkFPgSa6wEiGacHi7wELB40SAhhhPw2aoS pEKonuc7rNYWQEWE5TUOVAvZlO0acMIhJx8JgcuaUmeyJnQjhTzR7nUXMsudkjzNvsA== 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.44 Received: from mail-ot1-f44.google.com (mail-ot1-f44.google.com [209.85.210.44]) (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 97D0C606A31F for ; Sat, 5 Dec 2026 23:13:09 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 97D0C606A31F 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-f44.google.com with SMTP id 46e09a7af769-844a8bf7e25so1274236a34.1 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=HWa3ItGElqUEEpHPj3J1HzRmRhoSVUupe028tjkXKbORajZGWHaZ1Ok8wLcCGnm9qd E0ihTlEYVOj+bh6cJAkzOwSq0yGDI5VtfJAAjfhwocDJESEtejewJiFgjpMS3XoyeAM6 A5lJm4KhEyCRMVZJV2Y1ibQE1fzTTUfyDmO70YL1i6KFWLfIIut6Wc7L2x5EGBVLNlQn 9JcJznmjUECVT+1KEzsuuJJ9TRXWNLNUjaR8LC24pE10dj/BRvKm1lc01SyeOu9CCH2g IFzptK18Tjh3ufoCftFf+6iPCzfZ6rxNtzRl4OMy6PH/FIK69PzG8/do609vtyMLuCFl oZeg== X-Gm-Message-State: APuU4Z+Ca/qxape4Yijy6XOPVilfHf+tE2ontikPinC2K1GyvU+F2d8L B8e9xzIX5wz6oY1/Q7OpU7hBvFj2eafOsXKPBZQubpeWdjHjbCdEcNgREWbYedaomWGBekLiryU HtWV6AbU= X-Gm-Gg: AZFdTZeu3ogyqPCVLj6TB3cWJSuKszgJyoSsRqokBrEULzrVYT5/XxsltYCFR40xtSw 0LRCrKdkTOb+XqDVwkFDY7JpT/OEu9sekH5Ycz8vQ2K77bFRWUiuB4m8EtWH2E8IlIMJvB0+XpP l1a8/giTdNnQ0AzISKc3AvFGjkz8dkMDiljBMYTBzb4+6jkzVZ0QtO9HUUI89QzCxVlj7vo4RzA 1hlxg0VC31mFFMmwLA06hFPK/2jF6okiQ/cV5sWGz8sh4o5bLBzyUCjYb2vT7pZi8w3kKMl+C/g kN0KcS3hPtR1B1kuMP51Wjmlr91/rVDaz9AIWNy+Xq68XgqdJSzUnk196i4OtiQlowtgdk159Yg AMWOsjLIs5WDzDm3dDYn2neok5z2AZxCW597lr4e2Uq57h9hlU2rAD0fOP9StkOHXrw+eiHkEqz q2gB4q9U3AHccAKlLh4EbK7CZiD2WWscQkSrzPi/ggAGJxMEKFBIyM0eBsD9NEnt9M5CrPh62qc 5+T2spSjVtQdgI3AGSdoqCTjeT5nVur7R2Z7wyzcSIK86dy/L4/xJBwsTIpwL65FpxE7A/uODoU qq1dBmlOnreyEyhyOyl8nRWVtRdn0HHv6HjZka3sgNO5RJzXtURNRa0mQzKbRStxkFVkTUUSYHp 85FKTrxKWHfF59lc/kDDSD4kSiI6hdxWQa4sNOT2p8n6dnlWWLaBCzsQyFQ== 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: stable@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