<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/fs/ntfs3/dir.c, branch linux-6.15.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-6.15.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-6.15.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2025-08-20T16:35:52Z</updated>
<entry>
<title>fs/ntfs3: Add sanity check for file name</title>
<updated>2025-08-20T16:35:52Z</updated>
<author>
<name>Lizhi Xu</name>
</author>
<published>2025-06-06T05:16:16Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b51642fc52d1c7243a9361555d5c4b24d7569d7e'/>
<id>urn:sha1:b51642fc52d1c7243a9361555d5c4b24d7569d7e</id>
<content type='text'>
[ Upstream commit e841ecb139339602bc1853f5f09daa5d1ea920a2 ]

The length of the file name should be smaller than the directory entry size.

Reported-by: syzbot+598057afa0f49e62bd23@syzkaller.appspotmail.com
Closes: https://syzkaller.appspot.com/bug?extid=598057afa0f49e62bd23
Signed-off-by: Lizhi Xu &lt;lizhi.xu@windriver.com&gt;
Signed-off-by: Konstantin Komarov &lt;almaz.alexandrovich@paragon-software.com&gt;
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>fs/ntfs3: Unify inode corruption marking with _ntfs_bad_inode()</title>
<updated>2024-12-30T08:37:40Z</updated>
<author>
<name>Konstantin Komarov</name>
</author>
<published>2024-12-30T07:34:08Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=55ad333de0f80bc0caee10c6c27196cdcf8891bb'/>
<id>urn:sha1:55ad333de0f80bc0caee10c6c27196cdcf8891bb</id>
<content type='text'>
Also reworked error handling in a couple of places.

Signed-off-by: Konstantin Komarov &lt;almaz.alexandrovich@paragon-software.com&gt;
</content>
</entry>
<entry>
<title>fs/ntfs3: Redesign legacy ntfs support</title>
<updated>2024-07-11T09:19:45Z</updated>
<author>
<name>Konstantin Komarov</name>
</author>
<published>2024-06-17T12:03:21Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=1ff2e956608c12a069faded7a01799d3206e8b1e'/>
<id>urn:sha1:1ff2e956608c12a069faded7a01799d3206e8b1e</id>
<content type='text'>
1) Make is_legacy_ntfs static inline.
2) Put legacy file_operations under #if IS_ENABLED(CONFIG_NTFS_FS).

Cc: Matthew Wilcox (Oracle) &lt;willy@infradead.org&gt;
Cc: Christian Brauner &lt;brauner@kernel.org&gt;
Signed-off-by: Konstantin Komarov &lt;almaz.alexandrovich@paragon-software.com&gt;
</content>
</entry>
<entry>
<title>fs/ntfs3: Check more cases when directory is corrupted</title>
<updated>2024-07-11T09:19:44Z</updated>
<author>
<name>Konstantin Komarov</name>
</author>
<published>2024-06-17T11:53:57Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=744375343662058cbfda96d871786e5a5cbe1947'/>
<id>urn:sha1:744375343662058cbfda96d871786e5a5cbe1947</id>
<content type='text'>
Mark ntfs dirty in this case.
Rename ntfs_filldir to ntfs_dir_emit.

Signed-off-by: Konstantin Komarov &lt;almaz.alexandrovich@paragon-software.com&gt;
</content>
</entry>
<entry>
<title>fs/ntfs3: Fix getting file type</title>
<updated>2024-06-07T11:31:08Z</updated>
<author>
<name>Konstantin Komarov</name>
</author>
<published>2024-06-04T07:41:39Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=24c5100aceedcd47af89aaa404d4c96cd2837523'/>
<id>urn:sha1:24c5100aceedcd47af89aaa404d4c96cd2837523</id>
<content type='text'>
An additional condition causes the mft record to be read from disk
and get the file type dt_type.

Fixes: 22457c047ed97 ("fs/ntfs3: Modified fix directory element type detection")
Signed-off-by: Konstantin Komarov &lt;almaz.alexandrovich@paragon-software.com&gt;
</content>
</entry>
<entry>
<title>Merge tag 'ntfs3_for_6.10' of https://github.com/Paragon-Software-Group/linux-ntfs3</title>
<updated>2024-05-25T21:19:01Z</updated>
<author>
<name>Linus Torvalds</name>
</author>
<published>2024-05-25T21:19:01Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=89b61ca478dcb66625fb36f3b47ef4e0eae2e461'/>
<id>urn:sha1:89b61ca478dcb66625fb36f3b47ef4e0eae2e461</id>
<content type='text'>
Pull ntfs3 updates from Konstantin Komarov:
 "Fixes:
   - reusing of the file index (could cause the file to be trimmed)
   - infinite dir enumeration
   - taking DOS names into account during link counting
   - le32_to_cpu conversion, 32 bit overflow, NULL check
   - some code was refactored

  Changes:
   - removed max link count info display during driver init

  Remove:
   - atomic_open has been removed for lack of use"

* tag 'ntfs3_for_6.10' of https://github.com/Paragon-Software-Group/linux-ntfs3:
  fs/ntfs3: Break dir enumeration if directory contents error
  fs/ntfs3: Fix case when index is reused during tree transformation
  fs/ntfs3: Mark volume as dirty if xattr is broken
  fs/ntfs3: Always make file nonresident on fallocate call
  fs/ntfs3: Redesign ntfs_create_inode to return error code instead of inode
  fs/ntfs3: Use variable length array instead of fixed size
  fs/ntfs3: Use 64 bit variable to avoid 32 bit overflow
  fs/ntfs3: Check 'folio' pointer for NULL
  fs/ntfs3: Missed le32_to_cpu conversion
  fs/ntfs3: Remove max link count info display during driver init
  fs/ntfs3: Taking DOS names into account during link counting
  fs/ntfs3: remove atomic_open
  fs/ntfs3: use kcalloc() instead of kzalloc()
</content>
</entry>
<entry>
<title>fs/ntfs3: Break dir enumeration if directory contents error</title>
<updated>2024-05-24T09:50:12Z</updated>
<author>
<name>Konstantin Komarov</name>
</author>
<published>2024-04-23T14:21:58Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=302e9dca8428979c9c99f2dbb44dc1783f5011c3'/>
<id>urn:sha1:302e9dca8428979c9c99f2dbb44dc1783f5011c3</id>
<content type='text'>
If we somehow attempt to read beyond the directory size, an error
is supposed to be returned.

However, in some cases, read requests do not stop and instead enter
into a loop.

To avoid this, we set the position in the directory to the end.

Signed-off-by: Konstantin Komarov &lt;almaz.alexandrovich@paragon-software.com&gt;
Cc: stable@vger.kernel.org
</content>
</entry>
<entry>
<title>ntfs3: add legacy ntfs file operations</title>
<updated>2024-04-23T07:39:07Z</updated>
<author>
<name>Christian Brauner</name>
</author>
<published>2024-04-16T10:20:50Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9b872cc50daa7d1cb07d5bfd27ee9fa3f4e7eda9'/>
<id>urn:sha1:9b872cc50daa7d1cb07d5bfd27ee9fa3f4e7eda9</id>
<content type='text'>
To ensure that ioctl()s can't be used to circumvent write restrictions.

Signed-off-by: Christian Brauner &lt;brauner@kernel.org&gt;
</content>
</entry>
<entry>
<title>fs/ntfs3: Add ioctl operation for directories (FITRIM)</title>
<updated>2024-01-29T09:05:09Z</updated>
<author>
<name>Nekun</name>
</author>
<published>2023-10-30T08:33:54Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=1f5fa4b3b85ceb43f1053290f0ade037b50e6297'/>
<id>urn:sha1:1f5fa4b3b85ceb43f1053290f0ade037b50e6297</id>
<content type='text'>
While ntfs3 supports discards, FITRIM ioctl() command has defined
only for regular files. This may confuse users trying to invoke
`fstrim` utility with the directory argument (for example, call
`fstrim &lt;mountpoint&gt;` which is the common practice). In this case,
ioctl() returns -ENOTTY without any error messages in kernel ring
buffer, this may be easily interpreted as no support for discards
in ntfs3 driver.

Currently only FITRIM command implemented in ntfs_ioctl() and
passed inode used only for dereferencing NTFS superblock, so
no need for separate ioctl() handler for directories, just add
existing ntfs_ioctl() handler to ntfs_dir_operations.

Signed-off-by: Nekun &lt;nekokun@firemail.cc&gt;
Signed-off-by: Konstantin Komarov &lt;almaz.alexandrovich@paragon-software.com&gt;
</content>
</entry>
<entry>
<title>fs/ntfs3: Use i_size_read and i_size_write</title>
<updated>2024-01-29T07:48:33Z</updated>
<author>
<name>Konstantin Komarov</name>
</author>
<published>2024-01-26T08:12:38Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=4fd6c08a16d7f1ba10212c9ef7bc73218144b463'/>
<id>urn:sha1:4fd6c08a16d7f1ba10212c9ef7bc73218144b463</id>
<content type='text'>
Signed-off-by: Konstantin Komarov &lt;almaz.alexandrovich@paragon-software.com&gt;
</content>
</entry>
</feed>
