News: 0001629744

  ARM Give a man a fire and he's warm for a day, but set fire to him and he's warm for the rest of his life (Terry Pratchett, Jingo)

New NTFS Driver Sees A Number Of Fixes Ahead Of Linux 7.1-rc1

([Linux Storage] 5 Hours Ago NTFS Improvements)


With the Linux 7.1-rc1 kernel release due out tomorrow to cap off the Linux 7.1 merge window, one of the most notable additions this cycle is [1]the introduction of the new NTFS driver that aims to provide better performance and more modern features than the existing NTFS3 in-kernel driver that was originally contributed by Paragon Software.

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/



'Twas midnight on the ocean, Her children all were orphans,
Not a streetcar was in sight, Except one a tiny tot,
So I stepped into a cigar store Who had a home across the way
To ask them for a light. Above a vacant lot.

The man behind the counter As I gazed through the oaken door
Was a woman, old and gray, A whale went drifting by,
Who used to peddle doughnuts Its six legs hanging in the air,
On the road to Mandalay. So I kissed her goodbye.

She said "Good morning, stranger", This story has a morale
Her eyes were dry with tears, As you can plainly see,
As she put her head between her feet Don't mix your gin with whiskey
And stood that way for years. On the deep and dark blue sea.
-- Midnight On The Ocean