From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.160.41 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796512271; b=VvzlD6+9N+YyAPThIOFC/Nn4ZgskAPjlUjdyKxWMzeupKkRINEeQCMT7c54LfoB8XTCp JCjdJKNH58j4XEQZw8Eu8jWcjVQ+spOCp4VmoGe044y4LkW5p/FO87UzKO9WoNbwrxzMx oD58T8+x3JKs5Q4JLWVnwMUGTs84pCB+u+EsaVuwiaikk0O8qnrm97HqmXKIPPy1z3RL8 ylX5+5S6Jnan2oGrMsnmcZYAAe1IKiRvcj52TSHI9I7TK1wbpvRvFHw7ueVljFEVVNUay HWyCgB2XvIrIwVmQf9s2sg3a0jHCz9TzHkkefpyRRh+EhyI2ZTJEKUCh5p7XFXo7R3g== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796512271; 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=vURVvdQLnMtuiNEoE4HNpyzuX7vhYs1W6gLvtWkGjCE=; b=f1VIuRUY2ylyATIRTUYeY4gG+C2Uaw/OgIxkMA+D9F+Usa5AYlQEhtcJ/79wPacQk+a0 9nCr0Cr1qX8JYHY6aXSQUBIVVfG4Rlkk7u11yT4yYphalUkAmVeRLrz1eeZWU0PgsBcpz 68j0KS5eUZz3v5PT8FNM6jvPorjCKUgtPYj9s2OhRIisk7CRpq/1n/5y3g4oe3wlpyyzR stfJiErHJA9jJ43jU/BaGAcAkbojxEXYc2aTXw1IqclVdHacYSaDzkAZuJeCJZn/uot3h IZNZNkpdwvDsEQVtrCufOKVEUooqnQgXOvNcHYVquebyJSuYANUOvmDA3zvSfbq5LAA== 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=W9ZxAQUm; arc=none smtp.remote-ip=209.85.160.41 Received: from mail-oa1-f41.google.com (mail-oa1-f41.google.com [209.85.160.41]) (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 660C5606A322 for ; Sat, 5 Dec 2026 23:11:11 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 660C5606A322 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=W9ZxAQUm Received: by mail-oa1-f41.google.com with SMTP id 586e51a60fabf-4a85c656c58so1368127fac.3 for ; Sat, 05 Dec 2026 15:11:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.dk; s=google; t=1796512270; x=1797117070; 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=vURVvdQLnMtuiNEoE4HNpyzuX7vhYs1W6gLvtWkGjCE=; b=W9ZxAQUm42pXrWnWDTMUvvYOFsUST4N2lA/CLhCONo2GzPlsD3HcNSJMeupoHr4W0N YpvBfl+iCGY6ScrwDiUerWKPJw+EgsNr+JpHRlByscDALHYwIwinLUwe3TVrzMX3V7VI hakZBOXckbe+/fCiiNpLz8gLxiKQbz3UIJNT33PH4Ti/yVnAJui5PrOwdzDzKNyv+bOV Tr5/QpcN0byYtE/Wo86Jx7t4rHdBJt3lIrmvatmS3QxcO1ulB4REnyGbztr5VEN1keTR 7YbvqDoDJ3Ddk7FN8a67daSKco0xW02ZXFdeFPfNUByY8pnH5SLN3gBtx7MGsoytPLlx s6Hg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796512270; x=1797117070; 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=vURVvdQLnMtuiNEoE4HNpyzuX7vhYs1W6gLvtWkGjCE=; b=OZ/2uSsohaoUClblNjsc19PjO7jqaRJT9bzQ1RLB4W8hGDXIKcYmIQ2doPQMFjkiCg oyuMdckP5idIrhBRgxtkjk3+Ubpp3gvGozEZnLGE1CoiO9EEr6yWAX6sTC1qnTxFzxb2 yMLgKpZPjXhOlwgsJ/wAo9fuUhMtxEmMRHn0+bg8xQ5DsXebRuSj1WM3o/4HuTJvgJUW 3kfwlexqlvMpwhFQPQnV1WUYXaaGc4XieZTdHtjSuMNE6Y8dsqikrdmVHkcENehlIzIB TwEkcly9sn15k3+4Rt0YFofQsVuhe+QM9tqOzLBLmohmdthXySFqe12ny1ixLJLvYdIW OkQw== X-Gm-Message-State: APuU4Z9MGh6k29/JylK1PguL0ulF/exHCOq0vZfOUhX6jweBoM9d1AKr MXMgctKcTBrP6zvBmG3fSp/iIfQmlDUpaUfVwc40ZFLTx0HQ8cf62g+gsvEqVPYh6X7Qt7FuqxN AAi2ZkDw= X-Gm-Gg: AZFdTZebt2bYFgZAoLdLQ8UD7hVxJPISLoyiXDB87ksARtzu13NOUwrMwo58Zdn23+E UJr4e9t55FzzLjB4J3m17xNXy+hXxFL3Kr/qTHIWvKVucTskye3h2zmILLDE2jD6XPuiZOkWg43 m6pkAWWD4dk+ufRZwmtN/DlRqp/jglj0nSd+EbZohJAz0lNdHeTPMttUOzj8hwJcaNAYyqT24jC Sb1/5GpbxueYf6AVf+WL86UECIFCwybEZnlUyh0rr73A1oLRm3G4alGVNtbO1G5mThpYDr6lQz0 9kykMhfTjnSc1/M7ovNJyZYH3Y4sDFmULciOh2LZDLlpXmqcitL/HFMfz31ufcBh/Djie27owsz kbiFssMT+DpX0i6ELTHdrZCCgyKVQfZ/cQeCQaifpq5+MxUrM5+7EK4kaxmu2H2YGn6AkPykQPV Bbz/6NST3G/xA/l+Y4b5rAq4VO2I0YIn/YVQ7VtE9pQYs5gLxlUO+I5AVmiSm9k8ly/+ycVJtSc 5JTa7eOUo5JTPYW44jlui3vAVjbpp2bOQAwuNe17Mm8rxNIW6ZqKLIZ/IimaVfwocIOUqi/rHrf jRSw/WssRcGueZE0zOrQwec612vrXZWwJo+GyXdwjCZm8AlXjKmccu0g3aWqR65T48qfKMsFXxW sCVMmmjJb7fGJcJRgMPGc2ll7H0TB2VGidX0EwC/fx/46xpq0NaD4SvqYWw== X-Received: by 2002:a05:6808:10c1:b0:572:1c6:60fe with SMTP id 5614622812f47-57f207f520emr5753574b6e.30.1796512270249; Sat, 05 Dec 2026 15:11:10 -0800 (PST) Received: from r7625 ([96.43.243.2]) by smtp.gmail.com with ESMTPSA id 5614622812f47-57f1f65febbsm4163964b6e.6.2026.12.05.15.11.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 05 Dec 2026 15:11:09 -0800 (PST) From: Jens Axboe To: stable@vger.kernel.org Cc: io-uring@vger.kernel.org, gregkh@linuxfoundation.org Subject: [PATCH 6.12.y 00/15] io_uring fixes for 6.12-stable Date: Sat, 5 Dec 2026 23:10:52 +0000 Message-ID: <20261205231107.4023506-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 patches for 6.12-stable. Patches 1, 2, 3, 6, 7, 10, 11 and 12 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 14 and 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"). Patches 4, 5, 8, 9 and 13 are older mainline commits, backported because the fixes are written on top of them: 4 (v6.19) and 5 (v7.4-rc1, Fixes: 4) for 6, which needs ctx->tctx_lock; 8 (v6.13) and 9 (v6.13, Fixes: 8) for 10, which needs the raw timeout_lock; 13 (v6.13) for 14, which is written for io_uring_poll() without the smp_rmb(). The series applies on top of v6.12.120 plus queue-6.12 at stable-queue commit 16dfa5cc8e2f. It also applies to v6.12.120 alone. Patches 4, 5, 8, 9, 10, 14 and 15 needed changes for 6.12. 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: 4-6; 8-10; 13 and 14. 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.12.120, and v6.12.120 plus these patches. The patched kernel fails exactly the tests that v6.12.120 fails (napi-test times out; io-wq-unused-exit, read-mshot, read-mshot-fuse, ringbuf-read, send-zerocopy, timestamp and waitid 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.12.120 plus queue-6.12 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 6/15 io_uring: free the ring after a grace period 7/15 io_uring/filetable: don't install O_PATH files 10/15 io_uring/cancel: always walk links under timeout_lock 11/15 io_uring/net: don't count the buffers of a send bundle 12/15 io_uring/net: restore the cmsg buffer on recvmsg retry 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. 4/15 io_uring/tctx: add separate lock for list of tctx's in ctx prep for 6/15 5/15 io_uring: free the task context after a grace period Fixes 4/15 of this series, no release has the bug. 8/15 io_uring: make ctx->timeout_lock a raw spinlock prep for 10/15 9/15 io_uring/timeout: flush timeouts outside of the timeout lock Fixes 8/15 of this series, no release has the bug. 13/15 io_uring_poll: kill the no longer necessary barrier after poll_wait() prep for 14/15 14/15 io_uring: close poll activation race when enabling rings Missed poll wakeup on the app's own ring. 15/15 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 (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 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: don't count the buffers of a send bundle 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 | 50 +++++++++++-------- io_uring/kbuf.c | 3 ++ io_uring/net.c | 27 ++++++++--- io_uring/register.c | 2 + io_uring/tctx.c | 13 +++-- io_uring/timeout.c | 87 ++++++++++++++++++++-------------- 9 files changed, 134 insertions(+), 69 deletions(-) -- 2.55.0