From: Christian Brauner <brauner@kernel.org>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Christian Brauner <brauner@kernel.org>,
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 [thread overview]
Message-ID: <20261202-vfs-7.4-rc6.fixes-5f0db9782d69@brauner> (raw)
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/<pid>/{fd,fdinfo,map_files} and below /proc/<pid>/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
next reply other threads:[~2026-12-06 8:55 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-06 8:55 Christian Brauner [this message]
-- strict thread matches above, loose matches on Subject: below --
2026-11-22 14:41 Christian Brauner
2026-11-22 18:26 ` Linus Torvalds
2026-11-11 22:36 Christian Brauner
2026-11-12 2:57 ` pr-tracker-bot
2026-11-10 10:47 Christian Brauner
2026-11-10 17:50 ` pr-tracker-bot
2026-10-30 17:20 Christian Brauner
2026-10-30 23:10 ` pr-tracker-bot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261202-vfs-7.4-rc6.fixes-5f0db9782d69@brauner \
--to=brauner@kernel.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@linux-foundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®