From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-dl1-f47.google.com (mail-dl1-f47.google.com [74.125.82.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9C7402EEE8A for ; Fri, 5 Jun 2026 08:35:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.82.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780648534; cv=none; b=LWOwvKPmIM58/O5oZQub7V0CSu3CXT60sgUjjT03nNHL/b38OyJbK4aIwhtBp2//+RXZqq9PHZ67eXhB/K33kQ6v6vrGkgTIuhmNpLZdr5qZIeMjokQgQuXmAtV7aGHJTY87dn4aoTiVypGezt3nsqdh7bGUdtjc60e0DCDF7GY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780648534; c=relaxed/simple; bh=lDo/awf12mnu0rXStjbYUQ5yncxlrbhWIgSdHpfq9pY=; h=From:To:Cc:In-reply-to:Date:Message-ID:MIME-Version:Content-Type; b=kyQieGZ08YzRgCNjgXyIFscvAZ+g/l3CCJUAhUxKIGV/X8bc8BZQRP5Y9P20D7G9QBLvd3zt+PvjqTujAyWGuo08t1DgbpnJcRrnDIL9bsOpSwSWrEXBcikct1ICcuFj8/1+FC3N0lJJrGXaUVUJ3BFtNnu/rdqR8ExN060vKKo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=UuJHVdp3; arc=none smtp.client-ip=74.125.82.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="UuJHVdp3" Received: by mail-dl1-f47.google.com with SMTP id a92af1059eb24-137f27712fdso2442931c88.0 for ; Fri, 05 Jun 2026 01:35:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1780648533; x=1781253333; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :in-reply-to:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=G2QbVMMAjVZgPuV1Q0/veKQfSmVHwoFIoMdSdS/WIZg=; b=UuJHVdp3tKhT6AAQPnN3VH1SLaVTVJeu9SdL+rDlZeBP0FpYsKaAzlFGvx4DYEk3ec UQdgbwulJIOzWNqwVGUuJvQ8K2YgSPJLo/xG6GnBJJ7/poxarU2Hn4YkfmRrpebC5Hc+ y916et1JSExata7ER1hp+anPEwNXQj9sDI7wcjqNcuHc+mH1D/Wgt33Ml6EjQJCeF9Xm 7xarHNEU2SmCDhMUHqcdzPnllKDv22SGRMmGBxjG5H3yTtUqnS0UHERJjLPovZ95EG4V SqRCJF1eHoo9DiCFdI4pmZzCtVn6A0zo5ld2MaJRhZHsMShrfGoHBetyL2/5Mlybmpj5 /qSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1780648533; x=1781253333; h=content-transfer-encoding:mime-version:user-agent:message-id:date :in-reply-to:cc:to:from:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=G2QbVMMAjVZgPuV1Q0/veKQfSmVHwoFIoMdSdS/WIZg=; b=Q4sYg6f0jwNhunxxsV8br/Z8nlb7492q6DdnJOJP2draCVfXsZ5BhxM6ioXDkFfUy4 rl5QWJ28lTeMELeqrle32d5E0pTutBJbBZeYBjECrCD4ZaQywtV9dwhaarcf4oEOat9U GbRcefCFK2l+gBNRQIsYkzJRbpBV3mpuYKeAQdhgBT28WCTlLa46YQ7duu0B5aS2/ZDC e/UJSyPvptmlZjbm5G8THx/E7UywYweqMfX9nXvi5/YDFyTIHgwAXDIlsi41zFBBG1ev TzNXQXzBlSCXKGzcQJTZCTIdCFaUZW531qPUwJ+w5/ID6seB4/S1CNTA2YwPW+L8aEkf 30uw== X-Forwarded-Encrypted: i=1; AFNElJ9vklIUmbjuNs9rfam67iwwLl6qmot2+HHxv+QrmqT2h4wenZ3vjvtWbdwiWMuVeXMmSoIp6wM09vQ=@vger.kernel.org X-Gm-Message-State: AOJu0Yzx8qgTq2rxv1unPz6e5FEMKOIaaGe0wZstZOpLi8atsRzF8YRl aP340Zle0JrunzG+EQquMx2D5WULkzCAgcN2eAH+BryLKH/qd/YAyGgY X-Gm-Gg: Acq92OE8OKlD8quhLddE3YQqk81yAWIIelrtBjraYuMJ67NJHxWAPWqsuElNIxD5pE/ C+50Zr+dhs+WSUI9z4E3PXzIbjN7D3BRC6RKRVU5FWOhok1AKhepsBpSJEZqEVnfbFtQhMfKFP6 6KdSM+R/UEklKBx3rgqKGWQRrFBzyTu6Z7HS1YK7qg6GwwI0JYWzEjDanfg3m23bgammNMRxOob hB4W0iOvjd2y+VGf7fchGaEiLi/OPrj+RgUw/0h8YU6BYRDhVYH4xvyO5oIRb9xSiU9ynv3dpkK eUNlFPxRja1Xfe2jaNol6zoP41j9fzL1CLCdclOxXuPYZf6OHBwFRpV8z2u0ynJBeQFgWecrQSI jPXESWgKdhtX8e3PEwI68USHW1NiHQ6BbyszlPj10JW9O/KlgxJIkvUCrNjHiqQaLNuj3vMPVDh KerTyqnPshOrcGEEP6UxiWW8jziCBq9rxwlQ== X-Received: by 2002:a05:7300:72c9:b0:2ea:5057:a304 with SMTP id 5a478bee46e88-3077aeed2fbmr1184583eec.2.1780648532644; Fri, 05 Jun 2026 01:35:32 -0700 (PDT) Received: from fedora ([2601:646:8081:3770:10ff:fc71:c346:9948]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-3074dba046esm6534100eec.9.2026.06.05.01.35.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jun 2026 01:35:32 -0700 (PDT) From: Collin Funk To: brauner@kernel.org Cc: =?utf-8?Q?P=C3=A1draig?= Brady , akpm@linux-foundation.org, axboe@kernel.dk, david@kernel.org, dhowells@redhat.com, hch@infradead.org, jack@suse.cz, linux-api@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, miklos@szeredi.hu, netdev@vger.kernel.org, patches@lists.linux.dev, pfalcato@suse.de, safinaskar@gmail.com, torvalds@linux-foundation.org, viro@zeniv.linux.org.uk, willy@infradead.org In-reply-to: <20260601-enthusiasmus-canceln-anlehnen-0e62317a9784@brauner> Date: Fri, 05 Jun 2026 01:35:29 -0700 Message-ID: <87tsrh8jvy.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Precedence: bulk X-Mailing-List: linux-api@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi all, Christian Brauner wrote: > On Sun, 31 May 2026 01:01:04 +0000, Askar Safin wrote: > > This patchset is for VFS. > >=20 > > Recently we got a lot of vulnerabilities in splice/vmsplice. > >=20 > > Also vmsplice already was source of vulnerabilities in the past: > > CVE-2020-29374 (see https://lwn.net/Articles/849638/ ). > >=20 > > [...] >=20 > Applied to the vfs-7.2.vmsplice branch of the vfs/vfs.git tree. > Patches in the vfs-7.2.vmsplice branch should appear in linux-next soon. >=20 > Please report any outstanding bugs that were missed during review in a > new review to the original patch series allowing us to drop it. >=20 > It's encouraged to provide Acked-bys and Reviewed-bys even though the > patch has now been applied. If possible patch trailers will be updated. >=20 > Note that commit hashes shown below are subject to change due to rebase, > trailer updates or similar. If in doubt, please check the listed branch. >=20 > tree: https://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs.git > branch: vfs-7.2.vmsplice >=20 > [1/3] tee: fs/splice.c: remove unused parameter "flags" from "link_pipe" > https://git.kernel.org/vfs/vfs/c/a9f7db50ed2f > [2/3] vmsplice: make vmsplice a trivial wrapper for preadv2/pwritev2 > https://git.kernel.org/vfs/vfs/c/e2c0b2368081 > [3/3] splice: remove PIPE_BUF_FLAG_GIFT > https://git.kernel.org/vfs/vfs/c/7d75aa8edfce In GNU coreutils-9.11, released 2026-04-20, P=C3=A1draig Brady added the use of splice and vmsplice to the 'yes' command [1]. Afterward, I added the use of splice to the 'cat' command, which is now used if copy_file_range fails or cannot be used [2]. There were some minor adjustments that had to be made to those patches pre-release. However, as far as I am aware, they have not had any issues yet which was a bit surprising to me at least. Now it seems we are a bit unlucky with our timing... Anyways, I figured you may be interested in seeing how these changes affect some applications. I built a kernel from the vfs-7.2.vmsplice branch and used a config based on my recent Fedora kernel. Here is the throughput on my Fedora kernel: $ uname -r 7.0.10-201.fc44.x86_64 $ yes --version | head -n 1 yes (GNU coreutils) 9.11.50-157bd $ timeout 1m taskset 1 yes | taskset 2 pv -r > /dev/null [36.9GiB/s] $ cat --version | head -n 1 cat (GNU coreutils) 9.11.50-157bd $ timeout 1m taskset 1 cat /dev/zero | taskset 2 pv -r > /dev/null [9.34GiB/s] Here is the throughput on the vfs-7.2.vmsplice kernel: $ uname -r 7.1.0-rc1+ $ yes --version | head -n 1 yes (GNU coreutils) 9.11.50-157bd $ timeout 1m taskset 1 yes | taskset 2 pv -r > /dev/null [3.41GiB/s] $ cat --version | head -n 1 cat (GNU coreutils) 9.11.50-157bd $ timeout 1m taskset 1 cat /dev/zero | taskset 2 pv -r > /dev/null [9.50GiB/s] Unsurprisingly, 'cat' is not affected since it does not use vmsplice. On the other hand 'yes' is 10x slower. I dislike this, obviously. However, of course I realize that the average person uses the 'yes' command much less frequently than I do, if they use it at all. To them security is a far greater concern. Just want to make it clear that this message isn't an attempt at getting this change reverted or anything like that. Anyways, hope the testing was at least somewhat useful. Collin [1] https://github.com/coreutils/coreutils/commit/2b1c059e6a06eebbb721d010b= 1221ec54200cc33 [2] https://github.com/coreutils/coreutils/commit/457f88513a128ce91160c4a60= f821cc1612204be P.S. It would be fun to test this branch on the machine where we got 'yes' to output at 175GiB/s. Sadly we do not have root access on it to install a new kernel, though.