[GIT PULL] ntfs3: bugfixes for 6.8

From: Konstantin Komarov
Date: Fri Feb 09 2024 - 08:31:07 EST


Hi Linus,

Please pull this branch containing ntfs3 code for 6.8.

Fixed:
- size update for compressed file;
- some logic errors, overflows;
- memory leak;
- some code was refactored.

Added:
- implement super_operations::shutdown.

Improved:
- alternative boot processing;
- reduced stack usage.

All changed code was in linux-next branch for at least week.

Regards,

Konstantin

----------------------------------------------------------------

The following changes since commit 33cc938e65a98f1d29d0a18403dbbee050dcad9a:

   Linux 6.7-rc4 (Sun Dec 3 18:52:56 2023 +0900)

are available in the Git repository at:

   https://github.com/Paragon-Software-Group/linux-ntfs3.git ntfs3_for_6.8

for you to fetch changes up to 622cd3daa8eae37359a6fd3c07c36d19f66606b5:

   fs/ntfs3: Slightly simplify ntfs_inode_printk() (Fri Nov 10 20:59:22 2023 +0100)

----------------------------------------------------------------

Christophe JAILLET (1):
  fs/ntfs3: Slightly simplify ntfs_inode_printk()

Dan Carpenter (1):
  fs/ntfs3: Fix an NULL dereference bug

Edward Adam Davis (1):
  fs/ntfs3: Fix oob in ntfs_listxattr

Ism Hong (1):
  fs/ntfs3: use non-movable memory for ntfs3 MFT buffer cache

Konstantin Komarov (23):
  fs/ntfs3: Improve alternative boot processing
  fs/ntfs3: Modified fix directory element type detection
  fs/ntfs3: Improve ntfs_dir_count
  fs/ntfs3: Correct hard links updating when dealing with DOS names
  fs/ntfs3: Print warning while fixing hard links count
  fs/ntfs3: Reduce stack usage
  fs/ntfs3: Fix multithreaded stress test
  fs/ntfs3: Fix detected field-spanning write (size 8) of single field "le->name"
  fs/ntfs3: Correct use bh_read
  fs/ntfs3: Add file_modified
  fs/ntfs3: Drop suid and sgid bits as a part of fpunch
  fs/ntfs3: Implement super_operations::shutdown
  fs/ntfs3: ntfs3_forced_shutdown use int instead of bool
  fs/ntfs3: Add and fix comments
  fs/ntfs3: Add NULL ptr dereference checking at the end of attr_allocate_frame()
  fs/ntfs3: Fix c/mtime typo
  fs/ntfs3: Disable ATTR_LIST_ENTRY size check
  fs/ntfs3: Use kvfree to free memory allocated by kvmalloc
  fs/ntfs3: Prevent generic message "attempt to access beyond end of device"
  fs/ntfs3: Use i_size_read and i_size_write
  fs/ntfs3: Correct function is_rst_area_valid
  fs/ntfs3: Fixed overflow check in mi_enum_attr()
  fs/ntfs3: Update inode->i_size after success write into compressed file

Nekun (1):
  fs/ntfs3: Add ioctl operation for directories (FITRIM)

 fs/ntfs3/attrib.c   |  45 +++++----
 fs/ntfs3/attrlist.c |  12 +--
 fs/ntfs3/bitmap.c   |   4 +-
 fs/ntfs3/dir.c      |  48 ++++++---
 fs/ntfs3/file.c     |  76 +++++++++++----
 fs/ntfs3/frecord.c  |  19 ++--
 fs/ntfs3/fslog.c    | 232 ++++++++++++++++++++------------------------
 fs/ntfs3/fsntfs.c   |  29 +++++-
 fs/ntfs3/index.c    |   8 +-
 fs/ntfs3/inode.c    |  32 ++++--
 fs/ntfs3/namei.c    |  12 +++
 fs/ntfs3/ntfs.h     |   4 +-
 fs/ntfs3/ntfs_fs.h  |  29 +++---
 fs/ntfs3/record.c   |  18 +++-
 fs/ntfs3/super.c    |  54 ++++++-----
 fs/ntfs3/xattr.c    |   6 ++
 16 files changed, 381 insertions(+), 247 deletions(-)