linux/fs/ext4
Linus Torvalds 69eac84817 fsverity fixes for v7.4-rc1
Fixes for several bugs found by LLMs:
 
 - Fix bypass of IPE's fsverity support, and a use-after-free in
   certain cases, when FS_IOC_ENABLE_VERITY fails when almost done.
 
 - Fix FS_IOC_MEASURE_VERITY and FS_IOC_READ_VERITY_METADATA to no
   longer bypass Landlock and AppArmor's read permission checks.
 
 - Be robust against the filesystem returning different values for a
   file's verity descriptor length in two successive queries.
 -----BEGIN PGP SIGNATURE-----
 
 iIoEABYIADIWIQSacvsUNc7UX4ntmEPzXCl4vpKOKwUCauT6bBQcZWJpZ2dlcnNA
 a2VybmVsLm9yZwAKCRDzXCl4vpKOKx+mAQDtKnEhfYUNakR8GkWqM7CKuJuuMFlT
 RcEWTNLqHAoxSgD+KxVHvsgrLwBs4ketJQnj1E/1QRQBPbfbLRqCKzCPhwQ=
 =eqSl
 -----END PGP SIGNATURE-----

Merge tag 'fsverity-for-linus' of git://git.kernel.org/pub/scm/fs/fsverity/linux

Pull fsverity fixes from Eric Biggers:
 "Fixes for several bugs found by LLMs:

   - Fix bypass of IPE's fsverity support, and a use-after-free in
     certain cases, when FS_IOC_ENABLE_VERITY fails when almost done

   - Fix FS_IOC_MEASURE_VERITY and FS_IOC_READ_VERITY_METADATA to no
     longer bypass Landlock and AppArmor's read permission checks

   - Be robust against the filesystem returning different values for a
     file's verity descriptor length in two successive queries"

* tag 'fsverity-for-linus' of git://git.kernel.org/pub/scm/fs/fsverity/linux:
  fsverity: Set S_VERITY only after rollback is no longer possible
  fsverity: Tell LSMs about signature only after verity is enabled
  fsverity: Be more careful with return value of ->get_verity_descriptor()
  fsverity: Explicitly require FMODE_READ to retrieve hashes
2026-10-30 13:38:02 -10:00
..
.kunitconfig ext4: add .kunitconfig fragment to enable ext4-specific tests 2021-02-11 23:16:30 -05:00
acl.c fs: port ->set_acl() to pass const mnt_idmap 2026-09-23 09:19:49 +02:00
acl.h fs: port ->set_acl() to pass const mnt_idmap 2026-09-23 09:19:49 +02:00
balloc.c ext4: fix out-of-bounds read in ext4_get_group_info() 2026-10-08 11:07:20 -04:00
bitmap.c ext4: remove sbi argument from ext4_chksum() 2025-05-20 10:31:12 -04:00
block_validity.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
crypto.c ext4: refuse encryption when block size > page size 2026-10-24 12:58:37 -07:00
dir.c ext4: validate readdir offset before accessing dirent 2026-07-22 11:49:33 -04:00
ext4_extents.h ext4: fix extents-test.c is not compiled when EXT4_KUNIT_TESTS=M 2026-03-27 23:36:06 -04:00
ext4_jbd2.c Add support for buffered iomap support in ext4. This is not enabled 2026-10-25 16:09:13 -10:00
ext4_jbd2.h ext4: do not use data=ordered mode for inodes using buffered iomap path 2026-10-15 10:53:12 -04:00
ext4.h Add support for buffered iomap support in ext4. This is not enabled 2026-10-25 16:09:13 -10:00
extents_status.c ext4: free the sbi after a grace period 2026-10-14 22:08:02 +02:00
extents_status.h ext4: free the sbi after a grace period 2026-10-14 22:08:02 +02:00
extents-test.c ext4: free the sbi after a grace period 2026-10-14 22:08:02 +02:00
extents.c Add support for buffered iomap support in ext4. This is not enabled 2026-10-25 16:09:13 -10:00
fast_commit.c treewide: refresh kmalloc_obj() conversions 2026-09-04 21:37:00 -07:00
fast_commit.h ext4: mark move extents fast-commit ineligible 2026-01-19 19:26:35 -05:00
file.c ext4: implement buffered write path using iomap 2026-10-15 10:53:12 -04:00
fsmap.c treewide: Replace kmalloc with kmalloc_obj for non-scalar types 2026-02-21 01:02:28 -08:00
fsmap.h ext4: fsmap: fix the block/inode bitmap comment 2021-06-24 09:48:29 -04:00
fsync.c ext4: Fix data integrity writeout issues in nojournal mode 2026-07-27 16:25:33 +02:00
hash-test.c ext4: add Kunit coverage for directory hash computation 2026-06-03 10:30:15 -04:00
hash.c ext4: improve str2hashbuf by processing 4-byte chunks and removing function pointers 2026-06-03 10:30:15 -04:00
ialloc.c Add support for buffered iomap support in ext4. This is not enabled 2026-10-25 16:09:13 -10:00
indirect.c ext4: don't report delalloc data as a hole on indirect-mapped inodes 2026-10-08 11:06:22 -04:00
inline.c ext4: cleanup unused CONVERT_INLINE_DATA flag 2026-07-22 11:49:33 -04:00
inode-test.c ext4: add missing MODULE_DESCRIPTION() 2024-07-05 16:07:24 -04:00
inode.c fscrypt fixes for v7.4-rc1 2026-10-29 14:00:23 -10:00
ioctl.c Add support for buffered iomap support in ext4. This is not enabled 2026-10-25 16:09:13 -10:00
Kconfig ext4: remove obsolete EXT3 config options 2025-09-25 14:47:05 -04:00
Makefile ext4: add Kunit coverage for directory hash computation 2026-06-03 10:30:15 -04:00
mballoc-test.c ext4: use anonymous devices for KUnit test superblocks 2026-06-29 10:31:52 +02:00
mballoc.c ext4: convert group-count barrier protocol to acquire/release 2026-10-08 11:07:33 -04:00
mballoc.h ext4: fix mballoc-test.c is not compiled when EXT4_KUNIT_TESTS=M 2026-03-27 23:36:02 -04:00
migrate.c ext4: partially enable iomap for the buffered I/O path of regular files 2026-10-15 10:53:14 -04:00
mmp.c ext4: check for a metadata write error with buffer_write_io_error() 2026-09-10 09:27:25 +02:00
move_extent.c ext4: disable online defrag when inode using iomap buffered I/O path 2026-10-15 10:53:13 -04:00
namei.c Add support for buffered iomap support in ext4. This is not enabled 2026-10-25 16:09:13 -10:00
orphan.c ext4: fix spurious message about orphan cleanup on RO fs 2026-08-06 10:24:31 -04:00
page-io.c ext4: add tracepoints for EOF block zeroing and disksize-grow I/O 2026-10-15 10:53:14 -04:00
readpage.c ext4: Further de-generalize the bio postprocessing code 2026-07-20 10:39:25 -07:00
resize.c ext4: convert group-count barrier protocol to acquire/release 2026-10-08 11:07:33 -04:00
super.c Add support for buffered iomap support in ext4. This is not enabled 2026-10-25 16:09:13 -10:00
symlink.c fs: port ->getattr() to pass const mnt_idmap 2026-09-23 09:19:51 +02:00
sysfs.c ext4: fix use-after-free in update_super_work when racing with umount 2026-03-27 23:37:39 -04:00
truncate.h ext4: Convert to use mapping->invalidate_lock 2021-07-13 14:29:00 +02:00
verity.c fsverity: Set S_VERITY only after rollback is no longer possible 2026-10-28 10:53:43 -07:00
xattr_hurd.c fs: port xattr to const mnt_idmap 2026-09-23 09:19:49 +02:00
xattr_security.c fs: port xattr to const mnt_idmap 2026-09-23 09:19:49 +02:00
xattr_trusted.c fs: port xattr to const mnt_idmap 2026-09-23 09:19:49 +02:00
xattr_user.c fs: port xattr to const mnt_idmap 2026-09-23 09:19:49 +02:00
xattr.c ext4: stop retrying saturated xattr cache entries 2026-08-06 10:23:48 -04:00
xattr.h ext4: remove ea_inode_array mechanism in favor of ext4_put_ea_inode() 2026-07-22 12:27:43 -04:00