From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.167.176 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796512311; b=fzZst4SRhY+3+W6QYQDhPUD1aKzO8utKrAD/FdRAIqEtPB/I33JnpT3RbplrVnAc2Pk2 Uymsgf9wzAynS2nvp9/6ZwPBLsQ8KzEQaXiNGntKjWze+sZm+dprB2Y3l/xuxWb2RO15v U2FlX6BfYGR58udvF/+inra+1WnLGoHfq2s3BjYgpE52uppuL6jfRlCJ2IX8lu9kQU/JP 1KMjA5Q5w/Gr94dGl7TNfTAiwzWmnUQC1SOmY/aFuboO2Yxa+9li9lpo8z0Gaiec6WPYp 3Vw26cnbYECzJ519x/+uhNKTcna87pRcp0GyQdEIijYPlzfxxqu2hDOsBPoEX6aZOYQ== 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=Fj07rtUR9iFb5Vl49BhWYYnSd/JTga7B32SgCFVDt0AECV9pd5/wP1yASOdQZDDMaLWi YbyHomT52M1oMPjv3nHPGEabmh9siH9QchaBt9XrNjRzeVu7M8X214mtrZWm5qwDalVJ+ hpclnH41nVSZZ7wZCrPoAK/xX3iNym5T8oSnvz92k1is2h4TkS7QNreZTap9rocdbv/Lg b6StE+4vNrw+Vcs10f98OfleZbkyNHmsawGgHKmmQlCFyWOAkVLsvzJBhlzTF4YuiTcHL VxECZbcnwAyzSRZIhXyKOYeKiCT3/x8PGJ8ybmGbA3fbJs6fZhtZhQQaXFa47xFcqhg== 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.167.176 Received: from mail-oi1-f176.google.com (mail-oi1-f176.google.com [209.85.167.176]) (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 3E759606A322 for ; Sat, 5 Dec 2026 23:11:51 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 3E759606A322 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-oi1-f176.google.com with SMTP id 5614622812f47-4b28d9537bcso1596597b6e.0 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=CNwThfejKadr8Mt7Q9vj5PMc8xatDwpDERVwTHcIS+2Vw4WFug6Ds6zitOvXZ9ub6r LCu2Hf3GuwQL3tpTWYAdbxuGil3t+Um+nlfKCzqbA7a6508uVXIMveTwMad9OcUS2ZKD /XGT6qYl77ET3kI7y24Z7zHLg+7mg27t4GwuRcTWQfCA9EP+qO7xGfqFIwPMbmmaF1Lz ktjl8WhYTz+IWkWdmj0w90Bc0prftW9zN3ThXW3ysMp6uof7zeWPp00AHyXyExR9JRYE Y2VVIrHPmsg3fRK+8UDFGE311XlXS3uNi592i7dO2uZimKDHaU4ODBSXTijPfHzCwwUB Jt4Q== X-Gm-Message-State: APuU4Z+Z3vFuVefaYX3MuX3cGJeNaqZ/FFSch6pExi7FfiFwTmcrWc8e TnjBccunqqNWvbxomVgrLKhAKgurOrInKO1BTRV3OcYdY2WSP61K/sekTTt363TOLpo= X-Gm-Gg: AZFdTZePvl+uDJEz6ZkGc06Ccmyvap38gsQJ0JqMrvGevsjaFvrurrVCDMvDhbPKdZt +lPcOcG1KuB9o+bI9Lyz2+FDrQKCaClGKMVjER2YtnI/RP5fqWlRLEkn0PPMp0G3AETA4bkzp1h fIcFLe8cfxT8xIBrVCmrO5cK7VrN6hP7xhXSRWW3hfRE3YfDVYJLaOpOV0hieqY2+D0VUCXdBu6 3u28Udl+GJZgvm6sQ14ReP+nuynUsRgin5SbLfRbQQresjLEMTAPgK7LIe0haV/I/t7gUuP+ND4 qbUTE24eA9txHRQyBbRvDB7AbVd0wxcN57ynX6WC2zcZbjQkXNZkFrVLeIhatRDMlG5uwqbhmCs uFdlYHFlSgQTDlcOXszOWke0WDkItGAS+f6lQdWMenTmFWlmKlDYOYF3lyTByX++1Gs5DxGmi1f H/hnyIHKKNTF6dhQZf0BKmrcMlaQf5eTInpaI7nTSrKsL1wRaNYsyZEgqd2+a8LQYj6Rok4TJFt NdfSgVk9q10v38lKBb25+1iT2bhxrvK1yBZ3Xr+yB0kUTtJu/RwDCeu4/Pnt/wcN9Tf6J+NQf8a /iCLFzM9Y/DqO+R/fAXyzsV+wwDdDClC6PNN/J0M56y5fVw9jqUE8gR11JQgsw8DwZ3H/6q7fdv kU71sWAZs6LBzTaQyuc4JxuLxCvfA95TRQks1 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: 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 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