[GIT PULL] ntfs3: bugfixes for 6.4

From: Konstantin Komarov
Date: Fri Apr 28 2023 - 03:37:25 EST


Hi Linus,

Please pull this branch containing ntfs3 code for 6.4.

Added:
- add missed "nocase" in ntfs_show_options;
- extend information on fails\errors;
- small optimizations.

Fixed:
- some logic errors;
- some dead code was removed;
- code is refactored and
  reformatted according to the new version of clang-format.

Removed:
- noacsrules option. Currently, this option does not work properly.
  Its use leads to unstable results. If we figure out how to implement it
  without errors, we will add it later;
- writepage.

Regards,

Konstantin

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

The following changes since commit 197b6b60ae7bc51dd0814953c562833143b292aa:

   Linux 6.3-rc4 (Sun Mar 26 14:40:20 2023 -0700)

are available in the Git repository at:

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

for you to fetch changes up to 788ee1605c2e9feed39c3a749fb3e47c6e15c1b9:

   fs/ntfs3: Fix root inode checking (Mon Feb 20 09:39:35 2023 +0400)

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

Abdun Nihaal (1):
  fs/ntfs3: Fix NULL dereference in ni_write_inode

Chen Zhongjin (1):
  fs/ntfs3: Fix memory leak if ntfs_read_mft failed

Daniel Pinto (1):
  fs/ntfs3: Fix wrong cast in xattr.c

Edward Lo (3):
  fs/ntfs3: Enhance the attribute size check
  fs/ntfs3: Validate MFT flags before replaying logs
  fs/ntfs3: Add length check in indx_get_root

Jia-Ju Bai (1):
  fs/ntfs3: Fix a possible null-pointer dereference in ni_clear()

Jiasheng Jiang (1):
  fs/ntfs3: Add check for kmemdup

Konstantin Komarov (17):
  fs/ntfs3: Add null pointer checks
  fs/ntfs3: Improved checking of attribute's name length
  fs/ntfs3: Check for extremely large size of $AttrDef
  fs/ntfs3: Restore overflow checking for attr size in mi_enum_attr
  fs/ntfs3: Refactoring of various minor issues
  fs/ntfs3: Use bh_read to simplify code
  fs/ntfs3: Remove noacsrules
  fs/ntfs3: Fix ntfs_create_inode()
  fs/ntfs3: Optimization in ntfs_set_state()
  fs/ntfs3: Undo endian changes
  fs/ntfs3: Undo critial modificatins to keep directory consistency
  fs/ntfs3: Remove field sbi->used.bitmap.set_tail
  fs/ntfs3: Changed ntfs_get_acl() to use dentry
  fs/ntfs3: Code formatting and refactoring
  fs/ntfs3: Add missed "nocase" in ntfs_show_options
  fs/ntfs3: Print details about mount fails
  fs/ntfs3: Fix root inode checking

Ye Bin (1):
  fs/ntfs3: Fix NULL pointer dereference in 'ni_write_inode'

Yu Zhe (1):
  fs/ntfs3: fix spelling mistake "attibute" -> "attribute"

Zeng Heng (1):
  fs/ntfs3: Fix slab-out-of-bounds read in hdr_delete_de()

ZhangPeng (2):
  fs/ntfs3: Fix null-ptr-deref on inode->i_op in ntfs_lookup()
  fs/ntfs3: Fix OOB read in indx_insert_into_buffer

 Documentation/filesystems/ntfs3.rst |  11 -
 fs/ntfs3/attrib.c                   |  17 +-
 fs/ntfs3/bitmap.c                   |  25 +--
 fs/ntfs3/file.c                     |  50 ++---
 fs/ntfs3/frecord.c                  |  46 ++--
 fs/ntfs3/fslog.c                    |  83 ++++----
 fs/ntfs3/fsntfs.c                   |  84 ++++----
 fs/ntfs3/index.c                    |  81 +++++---
 fs/ntfs3/inode.c                    | 134 ++++++------
 fs/ntfs3/lznt.c                     |  10 +-
 fs/ntfs3/namei.c                    |  19 +-
 fs/ntfs3/ntfs.h                     |   3 -
 fs/ntfs3/ntfs_fs.h                  |  19 +-
 fs/ntfs3/record.c                   |  15 +-
 fs/ntfs3/run.c                      |   6 +-
 fs/ntfs3/super.c                    | 312 ++++++++++++++++------------
 fs/ntfs3/xattr.c                    |  70 +++----
 17 files changed, 528 insertions(+), 457 deletions(-)