linux/fs/ntfs3
Linus Torvalds 0ff8f40110 Changes for 7.4-rc1
The bulk of this cycle is hardening against corrupted or maliciously
 crafted volumes. Most of these fixes come from fuzzing and KASAN
 reports. The main areas are:
 
 - $LogFile replay, where several unchecked on-disk sizes could make
   mount write past the MFT record buffer;
 - MFT record and index parsing;
 - extended attributes, where a bad $EA entry could leak up to 64K of
   kernel heap to userspace through getxattr().
 
 Reading a damaged compressed file could also return uninitialized
 page cache contents to userspace; that is fixed too.
 
 A few fixes affect healthy volumes as well: a heap overflow in
 fallocate(INSERT_RANGE) on small files, a use-after-free when a
 WOF-compressed file is opened for writing during a concurrent read,
 a lock-order deadlock in readdir, and stale disk data showing up in
 newly allocated clusters of compressed files.
 
 On the feature side there are new tracepoints covering mount, log
 replay, lookup, directory index, allocation, iomap and file I/O.
 There is also a new 'ugm' mount option (on by default): with ugm=0,
 newly created files don't get the WSL uid/gid/mode extended
 attributes, which Windows doesn't use.
 
 The rest is smaller correctness fixes and cleanups.
 -----BEGIN PGP SIGNATURE-----
 
 iQIzBAABCgAdFiEEh0DEKNP0I9IjwfWEqbAzH4MkB7YFAmrhpBYACgkQqbAzH4Mk
 B7btoBAAoCzDYPS9wsEsO/6NKqzEe37jChs8G5cLKOKqqinZwm3Fvj12D1sartiX
 SA8zJDU/lvzGrqhNz6/ofL3f7NZXw/GTfr8ShQxK019VDJzzacH5wqGPcyJkOsIJ
 Rw5O1GqdMArKaSXFBczWqb7ukR0UYugarbMtcQBiW3hVqGVRLiRyAtHNBFJ/vFJ+
 ec6hjbhspH++CXRBXOONFcem95Nzj3IQTxUzkVycf+0QjbAT28RkOwNrywPqZaD7
 LmMPK4QlLeCzV37D16BXnHrBVg9uCiLmy/OThh1V1YyIX57Tjdj2p+V6SOX4HtXs
 HBfhFeWweeAWLex/J2qH9MiOPr7z5cKDBmWtj4MALqpy79JL/0lj7nRtqP0Ucud8
 P3a+sLdKd7bDdHgs6jpxR2IX6JRsOgmJwcutU4R3yAApZTgIOArF1vrn5qyqj1OC
 s9szxfRUEaJu4ulYXJCx2lWwbg7Yy0oK8RseLDUGNxxX8v6aWiE98MSwFYIoo3tv
 50V/yxPqEeHwXWZH7AlaKHCuJHGr9erFuSlau+uRnqk0D1MuSFrNxMUO58j2P9W0
 py9vqMd8mIB3Ym6ZNQgkHzz8lNnYwgw82CSnfH5Tma5jfw7g3rS+/tM9vnSOFFHT
 OVyo9ViYWciSQ/oR2WzzPUZT4yspBZ1VaZGvWhIJ1vhgK/apgf4=
 =aRkz
 -----END PGP SIGNATURE-----

Merge tag 'ntfs3_for_7.4' of https://github.com/Paragon-Software-Group/linux-ntfs3

Pull ntfs3 updates from Konstantin Komarov:
 "The bulk of this cycle is hardening against corrupted or maliciously
  crafted volumes. Most of these fixes come from fuzzing and KASAN
  reports. The main areas are:

   - $LogFile replay, where several unchecked on-disk sizes could make
     mount write past the MFT record buffer
   - MFT record and index parsing
   - extended attributes, where a bad $EA entry could leak up to 64K of
     kernel heap to userspace through getxattr()

  Reading a damaged compressed file could also return uninitialized page
  cache contents to userspace; that is fixed too.

  A few fixes affect healthy volumes as well: a heap overflow in
  fallocate(INSERT_RANGE) on small files, a use-after-free when a
  WOF-compressed file is opened for writing during a concurrent read, a
  lock-order deadlock in readdir, and stale disk data showing up in
  newly allocated clusters of compressed files.

  On the feature side there are new tracepoints covering mount, log
  replay, lookup, directory index, allocation, iomap and file I/O. There
  is also a new 'ugm' mount option (on by default): with ugm=0, newly
  created files don't get the WSL uid/gid/mode extended attributes,
  which Windows doesn't use.

  The rest is smaller correctness fixes and cleanups"

* tag 'ntfs3_for_7.4' of https://github.com/Paragon-Software-Group/linux-ntfs3: (52 commits)
  ntfs3: add file I/O tracepoints
  ntfs3: add iomap tracepoints
  ntfs3: add allocation tracepoints
  ntfs3: add directory index tracepoints
  ntfs3: add create inode tracepoint
  ntfs3: add namei tracepoints
  ntfs3: add mount and log replay tracepoints
  fs/ntfs3: validate the EA value length in ntfs_read_ea()
  fs/ntfs3: handle partial allocation in attr_data_get_block_locked()
  ntfs3: fix mapping pairs bounds check for alignment
  fs/ntfs3: bound DeleteAttribute asize against rec->used in do_action
  ntfs3: release ni_lock before dir_emit in ntfs_readdir to fix deadlocks
  fs/ntfs3: bound CreateAttribute asize against record_size in do_action
  fs/ntfs3: do not mark frame pages uptodate on read error
  fs/ntfs3: prevent positive E_NTFS_NONRESIDENT from reaching writeback error handling
  fs/ntfs3: fix ntfs_fnd leak when compare function is missing
  fs/ntfs3: fix stale attr_b in attr_allocate_frame()
  fs/ntfs3: reject unaligned hole punching on compressed files
  fs/ntfs3: take ni_lock() once in ntfs_readdir()
  fs/ntfs3: reserve a compression unit in maxbytes_sparse
  ...
2026-10-29 13:31:48 -10:00
..
lib treewide: Replace kmalloc with kmalloc_obj for non-scalar types 2026-02-21 01:02:28 -08:00
attrib.c ntfs3: add allocation tracepoints 2026-10-28 08:09:19 +01:00
attrlist.c fs/ntfs3: Add basic support for alternative data streams 2026-07-30 10:50:00 +02:00
bitfunc.c fs/ntfs3: Add ntfs_bitmap_weight_le function and refactoring 2022-11-14 19:50:42 +03:00
bitmap.c treewide: Replace kmalloc with kmalloc_obj for non-scalar types 2026-02-21 01:02:28 -08:00
debug.h
dir.c Changes for 7.4-rc1 2026-10-29 13:31:48 -10:00
file.c Changes for 7.4-rc1 2026-10-29 13:31:48 -10:00
frecord.c fs/ntfs3: do not mark frame pages uptodate on read error 2026-10-13 15:44:59 +02:00
fslog.c ntfs3: add mount and log replay tracepoints 2026-10-28 08:09:17 +01:00
fsntfs.c fs/ntfs3: validate $SDH entry size in ntfs_insert_security 2026-09-21 12:42:27 +02:00
index.c ntfs3: add directory index tracepoints 2026-10-28 08:09:19 +01:00
inode.c Changes for 7.4-rc1 2026-10-29 13:31:48 -10:00
Kconfig ntfs: add Kconfig and Makefile 2026-02-19 21:51:00 +09:00
lznt.c fs/ntfs3: cosmetic fixes and improvements 2026-07-14 18:41:16 +02:00
Makefile fs/ntfs3: add a subset of W=1 warnings for stricter checks 2026-03-04 10:28:25 +01:00
namei.c Changes for 7.4-rc1 2026-10-29 13:31:48 -10:00
ntfs_fs.h Changes for 7.4-rc1 2026-10-29 13:31:48 -10:00
ntfs.h fs/ntfs3: Add basic support for alternative data streams 2026-07-30 10:50:00 +02:00
record.c fs/ntfs3: Fix heap overflow after ALIGN in mi_pack_runs() 2026-09-24 17:32:31 +02:00
run.c fs/ntfs3: cosmetic fixes and improvements 2026-07-14 18:41:16 +02:00
super.c Changes for 7.4-rc1 2026-10-29 13:31:48 -10:00
upcase.c
xattr.c Changes for 7.4-rc1 2026-10-29 13:31:48 -10:00