From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.160.49 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796512311; b=f2i6Q05iAdhMjlbV5Usa5DG2PyRE05G2CbOvZSIIi2MNVbc2Z3wMnaX0ApeVD200y4gG Ts3CwvebcGi7Udm01hddXZbtF6Fd68c62Mp9QShZyhjFdNHcyybZvRPviItghZF/apY9X 5o7bXakEZv0BxGbOi7YyiJHHSzQFzpuIE06+mqaAqJuS8JH4E18q8MXd9ARaAwkLSK/ey pDenvPPVobvEBwri0TJn2fTTQy8M4sNjbsxmubBYNhxTBMj0uJCPvv/OpvcwPSTH9qxjp b1eKkia32d86F32xlM2Tug07aZUZrYPn5OjjP2xndwlTHVggh6Dw3PANO0ctL5Spsew== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796512311; 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=i4EHfl0Vqnpa+L3rGhHIqbXVTzXx2nSu0NxaIz4qERk=; b=zZDWDqCOAN0d0OVazvgYIGLHJMWgXU48bR+yhi2IH2yyZphVRfBP06iMpHf+PJVrNmFT OQumafUm28MfpYPUO1Hcyt2Yo4kEwt7PrR1aCq4xH2WM+kDpXY5WhF2r4Zj6oVUnMEZ0d jtV1UkcXba8PU+0OKfCcvSSzUECZachh3MMv+K/FyRQHYbRouiAUgeovL9/hsFwl3OmEo Bxh/CfjuvBRhgqwSxQikKjcELzU571gAcAZk32zcKncoMMrSIny9C87FOMe2A1/yhEHdA 7tEjAOKkvE+AjaygBRawdkOoSqjwgly1NWZ8vo2du+XwZrBYR+nBH/rR3D+ODNTv8RQ== 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=VGdLsNO9; arc=none smtp.remote-ip=209.85.160.49 Received: from mail-oa1-f49.google.com (mail-oa1-f49.google.com [209.85.160.49]) (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 36614606A31F for ; Sat, 5 Dec 2026 23:11:51 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 36614606A31F 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=VGdLsNO9 Received: by mail-oa1-f49.google.com with SMTP id 586e51a60fabf-4b5138f0991so1658314fac.1 for ; Sat, 05 Dec 2026 15:11:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.dk; s=google; t=1796512310; x=1797117110; 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=i4EHfl0Vqnpa+L3rGhHIqbXVTzXx2nSu0NxaIz4qERk=; b=VGdLsNO9ZCaHAWPutMyIdSIATSe9po27fZRB4928dwTETbFGTDpoBzYTLzidqBXLPI PJ69feFjHGrlmoXubNju8cEqXq3lxmbr5L5jR3B0sI0tI+OVK+3A6D+QDHPdaNnQKlIv iGBLxEUSODRYhPQrfDsPswSXDgLqJISl5QZG+7NPmueGZk1+WWxZmLpLOeFvx8BgsEkp kVKuAtHygr1PAAgCdsUVs9T7FuNaVutDWR5LFQxabZXlfFsTYUTL+w3KfpX3ZyLYPYVj HzvhmgDc7Pu9Meo+Bq5oPPRK6Wuc0D0zl6Ybq82qXEkSiZUbEiqEJGR2kA9gPzCoKDfh ojuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796512310; x=1797117110; 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=i4EHfl0Vqnpa+L3rGhHIqbXVTzXx2nSu0NxaIz4qERk=; b=Gn4P1QrbA8BY53vTgUtNpaDW4+SNOZPVBoe3guyZPX2QtlnrRjXLfCXCHRD+9OepxS 7ucXy1LnZ2XYoBvGezS3WyD4VeAMISQ18fp49zwvEH4fwH2K7zh/zlpyeoCm14U/pXg5 +LcaoN+k5WZyRnw4Mnr/SyT2ptxlvdKocqIH/3IZAlGdM3UZOx2JAp/K3GvLkQz3JGJs E0TOQEjpHy8IudgrKkD4F9QElatZ504+/Uw3LaZW/F59EovHt9tFbQs0xP5zL639xMOs hu5IlmM8OyO7gDmiFicrC8mC/Tvgk8EuksB1hKCh8j30V6vbfCwlFGm7jn275Htt5Sf3 XI8g== X-Gm-Message-State: APuU4Z+AyNf6QCsaln5pHIguPdeKXalYllIk8VMEdB9m81nSYpy+Wh4f crHRgOd15UdX80wFwX9lPDJCMghuy7ZfRinLRPmGV/N4uw1O/AEYuaHavn06j0WUieabzGMqdrv sPypBiiU= X-Gm-Gg: AZFdTZePmPVZPuToNZQMl39y/lO/ySjUS44npy/fYDIA4mKy/MyNWhKhOG47ZFPvd01 aP9cPGftN8HULeYny3xSj9lbSwjG6WG7mHi8JA9Ic/+7GgzMG1FnrcoclEcCIyytgDM3zCtOPMT 0ZvH22KPdj/t94dcIRw1cObY3FBsVQxHrArK8hAFB6OF5pi9yIMJyPEJy9ZN1WpQnxsqqrc4fhP FyWviapkTxFu2hChp9/JlT4du1W8YNHJ7SqDVDrehOw1bOjtRFxxq0j77aCZGU4xxxBaW3zaTnR //pWPhKI788o1wwf17VvK8BbguLDXOYUiRjm+fAJnZxLXQYQIqK6QjMjXIthnolONpFX1A9GK5y 4xSj1w+1xeD7672hp63c+Tpephry8xDVqrGX5XPgekvnLJi6LUgY4UuTnvtQT7j0lzS0mHYYb6/ ikxe4KaovuNAskmk/i2RJIZMFwQIcYkTzEVUZsQBScjs9/VG1b7rANGtuUWhrrZdbiFFfz8cqBr ri9CrA4dMGqhvDQqrIVmFI4Kje0ku2TCxRJcExF8SKTLAMzsStNs5g9wC8APhg0GiKZJbHgjpaF i0dnUvjrsImlY9eGGT2eF/yLuDlKvUEvH13Wp2wS2msvejOVKO+wa+Fmz7X5UollaR1KYPtrdap I+tVnrOnZnbNVFzEDoFbJVW29ViC1OE9+iksR X-Received: by 2002:a05:6808:c2b7:b0:4fb:c2dd:c7a5 with SMTP id 5614622812f47-57f2083446dmr4485717b6e.31.1796512310190; Sat, 05 Dec 2026 15:11:50 -0800 (PST) Received: from r7625 ([96.43.243.2]) by smtp.gmail.com with ESMTPSA id 5614622812f47-57f1f6fe2ecsm4086916b6e.14.2026.12.05.15.11.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 05 Dec 2026 15:11:49 -0800 (PST) From: Jens Axboe To: stable@vger.kernel.org Cc: io-uring@vger.kernel.org, gregkh@linuxfoundation.org Subject: [PATCH 6.18.y 00/14] io_uring fixes for 6.18-stable Date: Sat, 5 Dec 2026 23:11:33 +0000 Message-ID: <20261205231147.4095031-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 14 io_uring patches for 6.18-stable. Patches 1, 2, 3, 6, 7, 8, 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 11, 12 and 14 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 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; 13 (v7.1) for 14, which needs ifq->kern_readable. The series applies on top of v6.18.66 plus queue-6.18 at stable-queue commit 16dfa5cc8e2f. It also applies to v6.18.66 alone. Patches 5, 11, 13 and 14 needed changes for 6.18. 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; 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.18.66, and v6.18.66 plus these patches. The patched kernel fails exactly the tests that v6.18.66 fails (napi-test times out; 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 changes in 13 and 14 are build tested only, the guests have no NIC that supports zcrx. io_uring/ builds without warnings on v6.18.66 plus queue-6.18 plus this series. CVE assessment, by the io_uring maintainer: Should get a CVE: 3/14 io_uring/kbuf: clear REQ_F_BL_NO_RECYCLE on buffer put 6/14 io_uring: free the ring after a grace period 7/14 io_uring/filetable: don't install O_PATH files 8/14 io_uring/cancel: always walk links under timeout_lock 9/14 io_uring/net: don't count the buffers of a send bundle 10/14 io_uring/net: restore the cmsg buffer on recvmsg retry Should not get a CVE: 1/14 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/14 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/14 io_uring/tctx: add separate lock for list of tctx's in ctx prep for 6/14 5/14 io_uring: free the task context after a grace period Fixes 4/14 of this series, no release has the bug. 11/14 io_uring: close poll activation race when enabling rings Missed poll wakeup on the app's own ring. 12/14 io_uring/cancel: arm local work wakeups only for submitter Early or spurious wakeups of the submitter, no crash in this tree. 13/14 io_uring/zcrx: cache fallback availability in zcrx ctx prep for 14/14 14/14 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 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 (1): io_uring/tctx: add separate lock for list of tctx's in ctx Louis Thiery (1): io_uring/net: don't charge the folio offset to truesize for managed frags Pavel Begunkov (2): io_uring/zcrx: cache fallback availability in zcrx ctx io_uring/zcrx: don't sync dma-bufs include/linux/io_uring_types.h | 13 ++++++++++++- io_uring/cancel.c | 26 +++++++++++++++----------- io_uring/filetable.c | 3 +++ io_uring/io_uring.c | 18 +++++++++++++----- io_uring/kbuf.c | 3 +++ io_uring/net.c | 27 +++++++++++++++++++++------ io_uring/register.c | 2 ++ io_uring/tctx.c | 13 ++++++++----- io_uring/zcrx.c | 18 +++++++++++++++--- io_uring/zcrx.h | 1 + 10 files changed, 93 insertions(+), 31 deletions(-) -- 2.55.0