New NTFS Driver Sees A Number Of Fixes Ahead Of Linux 7.1-rc1
- Reference: 0001629744
- News link: https://www.phoronix.com/news/New-NTFS-Driver-Fixes-Linux-7.1
- Source link:
Namjae Jeon spearheaded the work on this new NTFS driver that began as overhauling the Linux kernel's original NTFS (pre-NTFS3) driver with adding write support and a lot of other features and functionality not available in any of the other Linux NTFS file-system driver implementations.
Since it's merge last week it has seen more early user testing and in helping to ensure good first impressions, some additional fixes to this new NTFS driver have already been merged ahead of Linux 7.1-rc1.
Namjae Jeon on Friday sent out an initial batch of NTFS driver fixes that are now present in Linux Git. The fixes aren't too dramatic but do address some possible data leakage and other items:
" - Fix potential data leakage by zeroing the portion of the straddle block beyond initialized_size when reading non-resident attributes.
- Remove unnecessary zeroing in ntfs_punch_hole() for ranges beyond initialized_size, as they are already returned as zeros on read.
- Fix writable check in ntfs_file_mmap_prepare() to correctly handle shared mappings using VMA_SHARED_BIT | VMA_MAYWRITE_BIT.
- Use page allocation instead of kmemdup() for IOMAP_INLINE data to ensure page-aligned address and avoid BUG trap in iomap_inline_data_valid() caused by the page boundary check.
- Add a size check before memory allocation in ntfs_attr_readall() and reject overly large attributes.
- Remove unneeded noop_direct_IO from ntfs_aops as it is no longer required following the FMODE_CAN_ODIRECT flag.
- Fix seven static analysis warnings reported by Smatch."
[2]This pull request outlines all of the initial fixes in full.
[1] https://www.phoronix.com/news/Linux-7.1-New-NTFS-Driver
[2] https://lore.kernel.org/lkml/CAKYAXd-REEE1HxoR6=tg6i6rKfZp8oAGpiZ6-k4KruL6r4Qx5Q@mail.gmail.com/