From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.210.42 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796512357; b=yj1NXHedFBrRycITlZf4kLFSbPQxpcXLPBd3lU5UF0DOqaCUd8gIzpNCaqsY2tVAHuVn hABkPqLbltVcLBcKkN81OJBPnWHZqiT0mk2abxre2T0l+D8LUWSzxVlzA0712BGbL4CpD 1C1zidDVIhGz+VZBg4xDIJFHGKpd5loCj+uvggDbSh+XzYycn88TgaiwfNxWUj/A/8VEK U1/7hQBy7WeLr4+ljBLh7TS8il/gQ8mjv8cTyLStqKrICzGTi18xCKDjUR8KSgg5ekTjR xXTAlDk6L+ZK156dT++WChKDiYvI0o4Z4fBnfuQ5aKpKBg2ViQ91F7F+izl77jWB7ZQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796512357; 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=Ji8Y89NjbVQzRmzXoXyrWhHAsBhbRQQSxYTUR2LMKqc=; b=OxLn4wYpzxmHVhUbqyRzpY60Zk3RcwgFva9DRKJqWaHqQ/JhGFACy4fRUMeMkw7J3zRT FAQczBCZHI10EIixWksvpzWEW1dGt9BSa+u/+kFIMzEPi2RLWc94t/Hrzxog2WbGWEYmj lWAQ9WxGcEaioPzBqPkw/hVNOt0ArE2KqPECi0KMsWHLi89kem4vmc4vbExMqGrRN1UPK oNkEOa/2XYuFpSqg6N39LlrOWtYvdKHy8bFww8Sw8FGYV39qWGYcgY1gP6nfBYpHCfyPX +8P68TVRlPMCGx2mn41vRCj2q/J59lQlp5pV3NWCGugERzzMoPp3AjVMP3ixNUrlB4g== 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=KkIudsVj; arc=none smtp.remote-ip=209.85.210.42 Received: from mail-ot1-f42.google.com (mail-ot1-f42.google.com [209.85.210.42]) (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 ADD0B606A681 for ; Sat, 5 Dec 2026 23:12:36 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org ADD0B606A681 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=KkIudsVj Received: by mail-ot1-f42.google.com with SMTP id 46e09a7af769-862bb0a189aso848597a34.1 for ; Sat, 05 Dec 2026 15:12:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.dk; s=google; t=1796512356; x=1797117156; 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=Ji8Y89NjbVQzRmzXoXyrWhHAsBhbRQQSxYTUR2LMKqc=; b=KkIudsVjNoMjzroHG8jWxzGLN17xiTjq8odbBm39pfJuqzSmole0VFSCLPvQ1GAJwe ZCWX5RC5WwnMS/vsUsao55HSETWKHH1rc+OpKOsSH0N1sRQssfx5ny81NyjOvl2rUqyW OTCJgMjOdXSZiaWWSq3iRopkr0H6z7I/ENv/Y+6+eCMTjth+RJr1wKfBaKafTRIKkTLx 50aVrtwH4vvbbGNggdp5nDZIWElGqaj51nNG4mj+4S6AmLPekOrQd2Pdt89lYXGesTo3 48khQsJrKBoGksWUtn9BqW2XYjGaO01Upf2oVSUgT8VBZcqsa+qlWFxlbVRPgtssMxsW vw8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796512356; x=1797117156; 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=Ji8Y89NjbVQzRmzXoXyrWhHAsBhbRQQSxYTUR2LMKqc=; b=RtsQTcEfvEsLOKZmDaayfeXvX1SHg8h/ElCy4AO3q8aEQT5TlvK2xu+QkQh3u6Si/N 9dygLGPbxED0bAsMfU8LVRqgnKJ84Y+8e0WIRbT3sFGnsgqav7z47bd3VPxbfxDkqxIV wBbtbxBpsc0ezLpJ33wmIXXY4zdmQKeG51u7RI8OVrl7z7VQZ6Hp72t9JgwCIazdzstU ktRgJlM/CzJEY9uzHR1AGLLs0MdbFePE+sn8RK10F/dX8zq60N9jlRyVnuviUkxrpice 8gFeS7VB0QXHCCXJAKMm5CUmCkCjsKsSQI5vxjqj2Yt1NfUkt+X39CAXNREK479X4i9q 9F1Q== X-Gm-Message-State: APuU4Z+aIL4KVUu3dnXdQawFN1U8PYXjwl5ComZWLaNP9Uxn1xXUeljq fGugrAnQpejeUmjbtTK+IPcpp30+m7oi3jZ8MCQmggYv6VwO5QMzcWcJEQiQAPOxynE7RHX9NZz IjQ8VVBE= X-Gm-Gg: AZFdTZf8mGt1+uEtqRJDNwkRHI4YBUqkkTPWu8DlfJldFcGKQRgeTdihWO6BknMWero uSyeSWqqErUXCAR4pYcKbUkEoJHJ8iTQLh8ubXUSGVpIcz6uk6Ka4vKvqqvohKwadDfErZlUh9b 25YkAkz6raFhsttU/RgdSJcxiKo6ZnglM5/mrlqTmKzYn+vx7oxQh1Ij+POjy8Mcc1zVbfx3wpl lDI/hSGQ9ogxefijiP6dGaQflabk+3/0XH152fHblDgQmJpU2J3OjQvsqkk0/2fWiC0L123afaK otjgowDWZLs+w8H3AO0CO9+amwjdA4TOl1892F9oqUXuWzr8CvhSlCb6Bgan2NInLdEIkJIvl44 gjNdEsge4Tep1lNo/RMn0dfGi9Lk7Swj2Vbse1q5l+8GsJo9mUXI/JI9oPUIYz8YNt0MtzYPROj /XWsAUEynyz/AueF+0ZxsAFSePmNsH8m4L6GecNkj1tGMY+/Smd3iWxVfM80ZxYZjcb01m6a7C0 5Pkq2CTPWtNunCb3r/icO6gYq6RMf2c8X6mDVZkKpTEQH9NMswBGv26vro4JpmPlvbnen4A6M1Y YVaPIPI6BK+0gIF9JwISnmDnQejilpL3hUxQl/SRDrhWFrvmdfO4k86327cLex9i5t+J9vZqx48 ios9hml9hT4NDH6Vrt32XX427EbCFnyQQr5t4Cw== X-Received: by 2002:a05:6830:640d:b0:7fa:ab72:9e04 with SMTP id 46e09a7af769-863f8a2c487mr6669500a34.28.1796512355684; Sat, 05 Dec 2026 15:12:35 -0800 (PST) Received: from r7625 ([96.43.243.2]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-863f7dd42a8sm6279788a34.0.2026.12.05.15.12.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 05 Dec 2026 15:12:34 -0800 (PST) From: Jens Axboe 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 Message-ID: <20261205231233.4140988-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 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