Skip to contentSkip to conversation

vfs fixes

GIT PULL Merged Christian Brauner 3 participants 3 messages Sep 8, 2025 VFS

lore
Share & tools
lore

Christian Brauner

author maintainer
#0 lore raw

Hey Linus,

the fixes tree was filled before Link: tags were ousted. Only one of the patches in the series carries a Link: tag and that one actually has a useful discussion attached to it.

Please also be aware that patches in the various branches for the v6.18 merge window will have Link: tags applied and I don't want to rebase them all just to drop them. I'll mention that during the merge window once more as a reminder.

Going forward no tags are applied to individual commits. But I will continue adding tags to the cover letter in the merge message for patch series as I often modify the merge message so they point back to the original cover letter.

/* Summary */

This contains a few fixes for this cycle:

# fuse

- Prevent opening of non-regular backing files.
Fuse doesn't support non-regular files anyway.

- Check whether copy_file_range() returns a larger size than requested.

- Prevent overflow in copy_file_range() as fuse currently only supports 32-bit sized copies.

- Cache the blocksize value if the server returned a new value as inode->i_blkbits isn't modified directly anymore.

- Fix i_blkbits handling for iomap partial writes.
By default i_blkbits is set to PAGE_SIZE which causes iomap to mark the whole folio as uptodate even on a partial write. But fuseblk filesystems support choosing a blocksize smaller than PAGE_SIZE risking data corruption. Simply enforce PAGE_SIZE as blocksize for fuseblk's internal inode for now.

- Prevent out-of-bounds acces in fuse_dev_write() when the number of bytes to be retrieved is truncated to the fc->max_pages limit.

# virtiofs

- Fix page faults for DAX page addresses.

# Misc

- Tighten file handle decoding from userns.
Check that the decoded dentry itself has a valid idmapping in the user namespace.

- Fix mount-notify selftests.

- Fix some indentation errors.

- Add an FMODE_ flag to indicate IOCB_HAS_METADATA availability. This will be moved to an FOP_* flag with a bit more rework needed for that to happen not suitable for a fix.

- Don't silently ignore metadata for sync read/write.

- Don't pointlessly log warning when reading coredump sysctls.

/* Testing */

gcc (Debian 14.2.0-19) 14.2.0
Debian clang version 19.1.7 (3)

No build failures or warnings were observed.

/* Conflicts */

Merge conflicts with mainline
=============================

No known conflicts.

Merge conflicts with other trees
================================

No known conflicts.

The following changes since commit 1b237f190eb3d36f52dffe07a40b5eb210280e00:

Linux 6.17-rc3 (2025-08-24 12:04:12 -0400)

are available in the Git repository at:

[email protected]:pub/scm/linux/kernel/git/vfs/vfs tags/vfs-6.17-rc6.fixes

for you to fetch changes up to e1bf212d0604d2cbb5514e47ccec252b656071fb:

fuse: virtio_fs: fix page fault for DAX page address (2025-09-05 15:56:30 +0200)

Please consider pulling these changes from the signed vfs-6.17-rc6.fixes tag.

Thanks!
Christian

----------------------------------------------------------------
vfs-6.17-rc6.fixes

----------------------------------------------------------------
Amir Goldstein (2):
fuse: do not allow mapping a non-regular backing file
fhandle: use more consistent rules for decoding file handle from userns

Christian Brauner (3):
Merge patch series "io_uring / dio metadata fixes"
coredump: don't pointlessly check and spew warnings
Merge tag 'fuse-fixes-6.17-rc5' of ssh://gitolite.kernel.org/pub/scm/linux/kernel/git/mszeredi/fuse into vfs.fixes

Christoph Hellwig (2):
fs: add a FMODE_ flag to indicate IOCB_HAS_METADATA availability
block: don't silently ignore metadata for sync read/write

Edward Adam Davis (1):
fuse: Block access to folio overlimit

Guopeng Zhang (1):
fs: fix indentation style

Haiyue Wang (1):
fuse: virtio_fs: fix page fault for DAX page address

Joanne Koong (2):
fuse: reflect cached blocksize if blocksize was changed
fuse: fix fuseblk i_blkbits for iomap partial writes

Miklos Szeredi (2):
fuse: check if copy_file_range() returns larger than requested size
fuse: prevent overflow in copy_file_range return value

Xing Guo (1):
selftests/fs/mount-notify: Fix compilation failure.

 block/fops.c                                           | 13 ++++++++-----
 fs/coredump.c                                          |  4 ++++
 fs/exec.c                                              |  2 +-
 fs/fhandle.c                                           |  8 ++++++++
 fs/fuse/dev.c                                          |  2 +-
 fs/fuse/dir.c                                          |  3 ++-
 fs/fuse/file.c                                         |  5 ++++-
 fs/fuse/fuse_i.h                                       | 14 ++++++++++++++
 fs/fuse/inode.c                                        | 16 ++++++++++++++++
 fs/fuse/passthrough.c                                  |  5 +++++
 fs/fuse/virtio_fs.c                                    |  2 +-
 fs/namespace.c                                         |  2 +-
 include/linux/fs.h                                     |  3 ++-
 io_uring/rw.c                                          |  3 +++
 .../filesystems/mount-notify/mount-notify_test.c       | 17 ++++++++---------
 .../filesystems/mount-notify/mount-notify_test_ns.c    | 18 ++++++++----------
 16 files changed, 86 insertions(+), 31 deletions(-)
#1 lore raw
Quoted 2 lines · Christian Brauner

the fixes tree was filled before Link: tags were ousted.

LoL. Considering that I've been complaining to people in private for years, don't worry about it.

Nothing in kernel development needs to be _that_ black-and-white (ok, the "no regressions" rule comes close, but that's it).

Linus

merge bot Merged
#2 lore raw
In reply to Christian Brauner
The pull request you sent on Mon, 8 Sep 2025 11:45:58 +0200:

The pull request you sent on Mon, 8 Sep 2025 11:45:58 +0200:

Quoted 1 line

[email protected]:pub/scm/linux/kernel/git/vfs/vfs tags/vfs-6.17-rc6.fixes

has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/f777d1112ee597d7f7dd3ca232220873a34ad0c8

Thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/prtracker.html