From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.210.47 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796512357; b=svLhk32UOwXmv7DZ37mIEjB1u6r/XJPiYTsZJqJRO7cPdJEj5NUWFvaDktHWQ7BHJ2Bc LZYLWRPVMVQkzQLnRETBhQlRFbOTmsHHoMKeoZfuB9p9sUTz3ENcbfKmpBOjGth9/OhRD TZ17n9Lymudj9KGBey1uwsKsyeLFFGJ3uAgK8hR/Aosy9Ar9s7SOk69bvNafsbw+0bGws ntU+FhFcxwMe3ENwPUM/rvTYC5WtPffKWB4GlyAnrympOECJf4bqtmdV30u0pmDZNcMwc M+MnVIJnH8QEs5UcR5dBTGibt9h6ljfb4jFr3Nislp9Qwp2hKuPGuII59rn1jKUXu9Q== 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=duhwzrkgc5KUcgFl5gdg21m1XydVWO1Kk1/rQTN0EyJ9tc1w0WRJ5sXcdnKhnnf6F91w EERu/kT5qPd0tPyUlQXG6Om+i19iEHDDCTdj1tsIwyBhIcW4T4W4YsMNdhwKHA1sTTV3a PGngKUJDLuRiNAMWRp2cFxxar+vVXWKDXY+tvWH4kKRXOxGpLGBHkK5PzHvP4rr2mSj8p 4PLnrhJN51G1dibGUQp7NqnlgoROgLa+PdMWKwI1Smc0CP2iYeH9giKfpzzew/Fx9vs0+ gLEAwPBj32IBH7Qatk9eX70ARkJJzIDOQXS0oi6RxqPsMmmkVzjYhHdTBNdwF3N3ukQ== 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.47 Received: from mail-ot1-f47.google.com (mail-ot1-f47.google.com [209.85.210.47]) (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 A7740606A33E for ; Sat, 5 Dec 2026 23:12:36 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org A7740606A33E 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-f47.google.com with SMTP id 46e09a7af769-8470d7d430fso1089363a34.3 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=fu55UKEWZk8B4UMUZGNZK6Uz0h8MrAtXnjrPksTLi9sVUXTHj2gZSDI3eIbkGWmiu9 2fr5ab7sh5i0cr3Ag2j0mc/ige+xoDQMDRNPbTOJh+5CsXyTKHRWY6yRILPkuJi7HAA9 klkj3kBlt2ceg/fvcL+t+aLJdlD11x/1wphdolJCDRSpXgEZ/okBXlKR9fE7dEgVe2Hp pcN+5LWyr7ITOIQ8SZlYOnE4Uiwg+JXIBqdKuufM0JLSRqJT9poBDNn4hzWZvz5YOkLR 25iB/27zsNpTSvfMGc3BIH1EbVk46EwZdQ0gUGLTU1n0/0oSwMVmPctSxP1/39OrJS94 dsJg== X-Gm-Message-State: APuU4Z+E+2x1ctzraLkRLa2z5khK+gQ8Lo2LrUB5LU1ZCgngYNwosxxU JkDva1jauO8VvLPcsqAysB/YwCbo4YmtsJaVwS6AdhBu4o9xJPfrRQavBi8E0ddSfDhqNOieNtW hq+z/6tQ= X-Gm-Gg: AZFdTZdNTpsSO9lcT/lQzk6Nr0YFAHAK3Ep8sia7nwQt86L2O1unw0VXM3VKnLVs7I7 oQR1WmahsgoAtSVPjeWeP10XinsGda2MlXc2Nj8o8eHgfSHa/+4gXFfTRq5dnPe3FOQ7l6dcIqK A+x9UZxW4I+xPNLOOBNV9WyiAYGni8WhtQni4VEMQzwRSgm/uqC7NHOL/fLm/VQvQZlP6/7BzgI By6nZszGaBsHCnNkergLdTFFS7HUwBPOlQOo4d2yTkaFF0SFU9ly91nWoVfJEgdv3NTcGESUdam leMOlhfzHm/cE+tEraymG14nyzaFz45XypRx6plOxbcooZkqzLlzjE9W/ptIj0T1dYE3icL5XD8 10gKjJi+zOcqV+j9GqxgXOIgW+hFV/1BZ0vqkioxwLHkzWDtCw+kj21Ai5utaT/iCIsM1myA4Lx VgopnVWvLllgVUOaIBipkO67jE6fOCbwLXY0peQ5zkinHQcvz77m7hBDeCSqgFbEnngEo3ghOTg 8baCrqDXvfFjBhdQFG85KA0QEcZE8dNmSANDqJB+JMSyVEg9iEhpHdVF9m7uwNcxKbgpqVQT5je +ldklGbYdnQuT+9k5cD4xfQiMoC1069awPSTOZ5y+DWzRLmgssloxD8SnprD/XoR3sFlfizpY12 iGT/hECv9TsV5I01IHUiIWEH7R+/BzyJWpVDkAA== 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: 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 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