From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796547320; b=K1Vn/DWW2iF9McdemvnGO6p/bUnRNE8A6tVyGzt99MprgiTmNHpk5in7l1K6jhxTovnG LKmSZhQmSIn0WT5JJgpIfkjE7LtmQoNnY3r4hKS3m5qk/f4R+EqOLeozxvoKOxfcyEclg z9lwNooPI4dV9PC0M/08TYqZYOGsup9ehVyBuMjGFgyIaR4btcqMheyEGLWrB/Y5sDMyc c1exKA8KyPZPIcEydsreM+Qzls7hpuZRD9nuXk4N7UeM4D4n53P/p3duvY66p0ul0r+8t Ybjfsrb4o2Tjfd8rqS4w04NLntI8b9bFnZg1SYgXpgOlniPwOmV3MJfCl1YStMQCnYw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796547320; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: MIME-Version:X-Developer-Signature:X-Developer-Key: Content-Transfer-Encoding; bh=LlaDtUEFP60DDaHT/vuH52YiOhx18bzfBQ0bohU6sHE=; b=DM6gHZMf85d4FZ3LV8noIDhBiVyfkALue7EX9d1yOetotbCiReX3en54FawCAISaqcXt EeaFdjQrJzQkBD6vZxl5fYTPrBBJD68/ThdEZAyHCAITImJYi/gXRSVG084VkeYG+R9no kPGPeolGWWAfGbchu4gzmdxQexbZRskBiHH0FlF2enbaXXQ6bsPnS/A8JiFu8kphiS/WK tbbCBtecfZVkXtI2GS4L+ox50+0RsDJEwzZBQswePsNYGx/hVv3EvwqYPv5XuZzNDoXEi c6UNVQfW6oBy2Whl/NirKQZkihtgwJSd1PlBbxDpyrLrhAB+BjQGK0WNFhTAAPXacOQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=lUgh0BTA; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 27EC0606A33F; Sun, 6 Dec 2026 08:55:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=lUgh0BTA Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8C0B51F00A07; Sun, 6 Dec 2026 08:55:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796547319; bh=LlaDtUEFP60DDaHT/vuH52YiOhx18bzfBQ0bohU6sHE=; h=From:To:Cc:Subject:Date; b=lUgh0BTARhNQTHKru+NliKzNxyAKONRcOZde8PrG0+rMlkkJ2RxnXSg6Y50XDQ74z S7yhj9EUrlHnIm+Sq3U+7pWkUghUzang0BIbKmPoC56yF/o3+b74bv4/BOSAEIJ0f0 PU7TPXa0af7C9OZOXfyDlRLcPs0yKh2XX5njtLtUzkHE/QjRNiJpTk8DV3aJUm8D1V PQHMF/sXibKgmXEsuBGAsrP2JXm7p++9BVIETV0pBxBTJAvdMvVtKTj5qti7Wh13yp mcZviLNFssKwUk3agXBCA7NyvlFMFspIrF3BgyTV+E2D4uzSPv74xUYp9c6TqgE194 XV5zX2oOmq6hQ== From: Christian Brauner To: Linus Torvalds Cc: Christian Brauner , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [GIT PULL for v7.4] vfs fixes Date: Sun, 6 Dec 2026 09:55:08 +0100 Message-ID: <20261202-vfs-7.4-rc6.fixes-5f0db9782d69@brauner> X-Mailer: git-send-email 2.53.0 X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=10091; i=brauner@kernel.org; h=from:subject:message-id; bh=9URIf8A/EAiLcNiGvHQQG1Uwl4ZlnZupkhGeHb/NkyE=; b=owEBbQKS/ZANAwAKAY6wVtU+7LEtAcsmYgBrFSLvSkvk0idFGly23j5Gu4Fm2taJEvkODmkGZ KUsiBYs7COJAjMEAAEKAB0WIQTtu2ty45EtvVdSETCOsFbVPuyxLQUCaxUi7wAKCRCOsFbVPuyx LYhzD/9d4jY14b20KqJ3gWZsYhlVxb9VT/u8fSf4zZduSo71cPyoxh7BMAIHgTeNsK6tO7adChW aCid7gSVlP4Vq+yhBBvKEd4Lnrtr9PGcNOsZ4ffvk8iO719Gh8ficM+SFgkeEiBsZMxAFvQXDTg cvGCfeWN5yUTH/bdKzs/v4U+2QMOKsJ491DHuwDMwYx0IK+pdM3X+NlIBLXZ9PbkOp7rHZ5gV/k 1H/B7nbOEAnH0ONfRA5NZX1oHcf1KMtWaTL2za8F3oHRrXX6gULy5Fuu1bCHW46YDpIiDFADZLk 5RtNRz50ozK0Ki8TVB+Z7zWOg/MlEEpw+cke5fEgnFzYtWALg8Usxf3Ta9FKBMeWzNvdK4I9fIM J7eaqa+ttIS6PTB9ZH3LZXj/Fzasz8rtkrs3lXPKm3RU8SjdSPvtguvn2D2nZmwt5VR7WvvfqtU Dhmint/nFsQFUduXjkSiZtj9X5kfTazeGP+kzvRxIT4Hh8iLYKfnWQk4Q/5n+GmuoWy0yPVLGgW muxzmGN03oS3/AJefh2vIyBu6/nPqBe4hBjApngI2gctVf+qxVTzdF0O2Nu9lAOGXuIfxaecCsI ygRfux3w98dIdEtsre8UnRIlRtj/eRdfhtksmvRdhKcgsWFLJPEeJNQKGZPIjuV/LZM0qn4Sk7G JTmURsBIJ CF2KJw== X-Developer-Key: i=brauner@kernel.org; a=openpgp; fpr=4880B8C9BD0E5106FC070F4F7B3C391EFEA93624 Content-Transfer-Encoding: 8bit Hey Linus, /* Summary */ This contains fixes for the current development cycle. Note that I signed the tag with the 0x8EB056D53EECB12D signing subkey of my main key. You already know it from my tags up to v5.2. As you suggested the procfs fixes from the -rc4 pull are queued for the merge window now. A few of the smaller fixes from that pull went there as well. The rest is in here together with some new fixes: - namespaces: Close two ways out of a chroot. * Refuse setns() into a user namespace from inside a chroot unless the caller has CAP_SYS_CHROOT in its current user namespace. * Require CAP_SYS_CHROOT for CLONE_EMPTY_MNTNS from inside a chroot like setns() into a mount namespace does. - mount: Allow bind mounts of the files in /proc//{fd,fdinfo,map_files} and below /proc//net again. A late v7.3 fix that went to stable as well made bind-mounting them fail with ENOENT because procfs calls dont_mount() on them. Now they are only refused as the root of a mount that would go beneath another mount. They still can't be mounted on. - fs: Stop resetting userspace_init_fs to nullfs when PID 1 stops sharing it. Two threads of Android's init still use it after PID 1 switches to a private copy through unshare(CLONE_NEWNS). - ns: Mark the private mount namespace that mount_subtree() allocates as kernel-internal and don't call the namespace LSM hooks for it. - cachefiles: Size the buffer in cachefiles_preset_object_xattr() with max() instead of min(). - nfs: Reintroduce SB_I_MULTIROOT and raise it again on the superblocks nfs may share between mounts of disjoint subtrees. The flag was lost in the conversion to the new mount api in v5.6 and removed as unused in v5.10. So ".." could walk out of an NFSv2/NFSv3 mount and out of a chroot again once a directory was moved into the other mount's subtree. - fhandle: Only warn in vfs_dentry_acceptable() when the walk up from a decoded directory ends at a disconnected dentry. nfs, nilfs2 and ceph can have more than one root per superblock and an unprivileged user could trigger the warning through open_by_handle_at(). - iomap: * Cast the page index to loff_t before shifting it in iomap_fill_dirty_folios(). * Don't update i_size of block devices on buffered writes. The block layer owns that size. * Clear IOCB_HIPRI before submitting any bio when direct I/O waits for completion itself. With IOMAP_DIO_FORCE_WAIT a bio could already have gone out polled and was then waited on without polling. - xattr: Require the inode owner or CAP_FOWNER to write user.* xattrs on sockets. Daemon sockets in /run and /dev are routinely 0666 so anyone who could connect to them could also overwrite or remove the daemon's user.* xattrs. - kernfs: Recheck of->released after taking the active reference in kernfs_get_active_of(). - ext4: Remember the file before submitting a direct read instead of taking it from the kiocb afterwards. - signal: Walk the threads in complete_signal() with list_next_entry_circular() instead of next_thread(). kill() racing with an exec from a non-leader thread could make the walk loop forever with siglock held and interrupts off. - fork: Call copy_exec_state() right before copy_creds() again so it can't fail before rt_mutex_init_task() reset the PI state copied from the parent. - fuse: Add IOP_SET_ACL_OWNER_CHECK so fuse_set_acl() can do the ACL owner check itself and skip it without default_permissions. - bdev: Report the block size as st_blksize when it is larger than the minimum I/O size. - statmount: Check for an overflowed seq buffer first in statmount_string() so the string is regenerated in a larger buffer. - stat: Reject unsupported flags such as AT_RECURSIVE in the AT_EMPTY_PATH fast paths of fstatat() and statx(). - file_attr: Set fsx_valid instead of flags_valid as the hint in file_getattr(). /* Conflicts */ Merge conflicts with mainline ============================= No known conflicts. Merge conflicts with other trees ================================ No known conflicts. The following changes since commit b6a9fa34ce4187cb69d3c588a4bbffc31ce5db8f: Linux 7.4-rc4 (2026-11-22 14:57:40 -0800) are available in the Git repository at: git@gitolite.kernel.org:pub/scm/linux/kernel/git/vfs/vfs tags/vfs-7.4-rc6.fixes for you to fetch changes up to b8e026b973764a52b92c0cdc1d3cf96f2abc1058: Merge patch series "namespace: allow bind mounts of ephemeral procfs files again" (2026-12-01 18:14:07 +0100) ---------------------------------------------------------------- vfs-7.4-rc6.fixes Please consider pulling these changes from the signed vfs-7.4-rc6.fixes tag. Thanks! Christian ---------------------------------------------------------------- Avi Weiss (1): fs/stat: reject invalid flags for empty paths Breno Leitao (1): iomap: don't update i_size of block devices on buffered write Christian Aurich Zanettini Martins (1): fork: Don't let copy_exec_state() fail before rt_mutex_init_task() Christian Brauner (19): cachefiles: fix buffer size in cachefiles_preset_object_xattr() fs: reintroduce SB_I_MULTIROOT fhandle: only warn about disconnected directories Merge patch series "fs: reintroduce SB_I_MULTIROOT" fs: let pivot_root() move userspace_init_fs when nobody shares it fs: don't reset userspace_init_fs when PID 1 stops sharing it Merge patch series "fs: don't reset userspace_init_fs when PID 1 stops sharing it" mount: pass flags to alloc_mnt_ns() ns: don't call the namespace LSM hooks for kernel-internal namespaces Merge patch series "ns: don't call the namespace LSM hooks for kernel-internal namespaces" ext4: don't use the kiocb after a direct read was queued user: don't let a chrooted task join a user namespace mount: don't let an empty mount namespace undo a chroot selftests/namespaces: test joining a user namespace from a chroot selftests/filesystems: test empty mount namespaces from a chroot Merge patch series "namespaces: close two ways out of a chroot" namespace: allow bind mounts of ephemeral procfs files again selftests/filesystems: check that ephemeral procfs files can be bind-mounted Merge patch series "namespace: allow bind mounts of ephemeral procfs files again" Ding Feng (1): statmount: retry an overflowed seq buffer before any other check Dominik Maier (1): xattr: require inode owner or CAP_FOWNER to write user.* xattrs on sockets Fan Wu (1): kernfs: recheck of->released after acquiring the active reference Fengnan Chang (1): iomap: disable I/O polling when direct I/O must wait Hengyu Liang (1): bdev: do not report a statx block size below the block size Hristos Nenkov (1): fuse: preserve daemon-owned ACL permission decisions Oleg Nesterov (1): signal: fix lockup in complete_signal() racing with mt exec Shashank Mohan Jain (1): iomap: fix offset truncation in iomap_fill_dirty_folios() on 32-bit koraynilay (1): vfs: fix file_getattr hint to request xflags block/bdev.c | 6 +- fs/cachefiles/xattr.c | 2 +- fs/dcache.c | 5 +- fs/ext4/file.c | 6 +- fs/fhandle.c | 5 +- fs/file_attr.c | 2 +- fs/fs_struct.c | 72 +++--- fs/fuse/acl.c | 9 + fs/fuse/inode.c | 6 + fs/iomap/buffered-io.c | 9 +- fs/iomap/direct-io.c | 3 + fs/kernfs/file.c | 10 +- fs/namei.c | 4 +- fs/namespace.c | 73 +++++- fs/nfs/super.c | 2 + fs/pnode.c | 6 + fs/pnode.h | 2 + fs/posix_acl.c | 3 +- fs/stat.c | 11 +- fs/xattr.c | 10 +- include/linux/fs.h | 2 + include/linux/fs/super_types.h | 1 + include/linux/kernfs.h | 2 +- include/linux/ns/ns_common_types.h | 2 + include/linux/ns_common.h | 20 +- kernel/fork.c | 10 +- kernel/nscommon.c | 9 +- kernel/signal.c | 3 +- kernel/user_namespace.c | 9 + .../empty_mntns/clone3_empty_mntns_test.c | 36 +++ .../filesystems/empty_mntns/empty_mntns_test.c | 85 +++++++ .../selftests/filesystems/failfs/failfs_test.c | 38 +++ .../selftests/filesystems/mount_cycle/.gitignore | 1 + .../selftests/filesystems/mount_cycle/Makefile | 2 +- .../filesystems/mount_cycle/procfs_source_test.c | 283 +++++++++++++++++++++ tools/testing/selftests/filesystems/utils.c | 15 ++ tools/testing/selftests/filesystems/utils.h | 1 + tools/testing/selftests/namespaces/.gitignore | 1 + tools/testing/selftests/namespaces/Makefile | 4 +- .../selftests/namespaces/userns_chroot_test.c | 105 ++++++++ 40 files changed, 777 insertions(+), 98 deletions(-) create mode 100644 tools/testing/selftests/filesystems/mount_cycle/procfs_source_test.c create mode 100644 tools/testing/selftests/namespaces/userns_chroot_test.c