<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/fs/ntfs3/record.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>2024-12-30T08:37:39Z</updated>
<entry>
<title>fs/ntfs3: Mark inode as bad as soon as error detected in mi_enum_attr()</title>
<updated>2024-12-30T08:37:39Z</updated>
<author>
<name>Konstantin Komarov</name>
</author>
<published>2024-12-30T07:33:34Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=2afd4d267e6dbaec8d3ccd4f5396cb84bc67aa2e'/>
<id>urn:sha1:2afd4d267e6dbaec8d3ccd4f5396cb84bc67aa2e</id>
<content type='text'>
Extended the `mi_enum_attr()` function interface with an additional
parameter, `struct ntfs_inode *ni`, to allow marking the inode
as bad as soon as an error is detected.

Reported-by: syzbot+73d8fc29ec7cba8286fa@syzkaller.appspotmail.com
Signed-off-by: Konstantin Komarov &lt;almaz.alexandrovich@paragon-software.com&gt;
</content>
</entry>
<entry>
<title>fs/ntfs3: Add more checks in mi_enum_attr (part 2)</title>
<updated>2024-11-01T08:19:51Z</updated>
<author>
<name>Konstantin Komarov</name>
</author>
<published>2024-10-21T11:49:01Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a8f659ce14f8f734894227ba2c5ca78c8451501e'/>
<id>urn:sha1:a8f659ce14f8f734894227ba2c5ca78c8451501e</id>
<content type='text'>
Add offset check before access to attr-&gt;non_res field as mentioned in [1].

[1] https://lore.kernel.org/ntfs3/20241010110005.42792-1-llfamsec@gmail.com/

Suggested-by: lei lu &lt;llfamsec@gmail.com&gt;
Signed-off-by: Konstantin Komarov &lt;almaz.alexandrovich@paragon-software.com&gt;
</content>
</entry>
<entry>
<title>fs/ntfs3: Sequential field availability check in mi_enum_attr()</title>
<updated>2024-10-01T09:19:07Z</updated>
<author>
<name>Konstantin Komarov</name>
</author>
<published>2024-09-05T12:03:48Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=090f612756a9720ec18b0b130e28be49839d7cb5'/>
<id>urn:sha1:090f612756a9720ec18b0b130e28be49839d7cb5</id>
<content type='text'>
The code is slightly reformatted to consistently check field availability
without duplication.

Fixes: 556bdf27c2dd ("ntfs3: Add bounds checking to mi_enum_attr()")
Signed-off-by: Konstantin Komarov &lt;almaz.alexandrovich@paragon-software.com&gt;
</content>
</entry>
<entry>
<title>fs/ntfs3: Add rough attr alloc_size check</title>
<updated>2024-09-03T13:58:43Z</updated>
<author>
<name>Konstantin Komarov</name>
</author>
<published>2024-08-19T13:26:59Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c4a8ba334262e9a5c158d618a4820e1b9c12495c'/>
<id>urn:sha1:c4a8ba334262e9a5c158d618a4820e1b9c12495c</id>
<content type='text'>
Reported-by: syzbot+c6d94bedd910a8216d25@syzkaller.appspotmail.com
Signed-off-by: Konstantin Komarov &lt;almaz.alexandrovich@paragon-software.com&gt;
</content>
</entry>
<entry>
<title>ntfs3: Add bounds checking to mi_enum_attr()</title>
<updated>2024-09-03T13:58:38Z</updated>
<author>
<name>lei lu</name>
</author>
<published>2024-08-23T13:39:44Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=556bdf27c2dd5c74a9caacbe524b943a6cd42d99'/>
<id>urn:sha1:556bdf27c2dd5c74a9caacbe524b943a6cd42d99</id>
<content type='text'>
Added bounds checking to make sure that every attr don't stray beyond
valid memory region.

Signed-off-by: lei lu &lt;llfamsec@gmail.com&gt;
Signed-off-by: Konstantin Komarov &lt;almaz.alexandrovich@paragon-software.com&gt;
</content>
</entry>
<entry>
<title>fs/ntfs3: Taking DOS names into account during link counting</title>
<updated>2024-04-23T06:34:20Z</updated>
<author>
<name>Konstantin Komarov</name>
</author>
<published>2024-04-17T07:33:06Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=110b24eb1a749bea3440f3ca2ff890a26179050a'/>
<id>urn:sha1:110b24eb1a749bea3440f3ca2ff890a26179050a</id>
<content type='text'>
When counting and checking hard links in an ntfs file record,

  struct MFT_REC {
    struct NTFS_RECORD_HEADER rhdr; // 'FILE'
    __le16 seq;		    // 0x10: Sequence number for this record.
&gt;&gt;  __le16 hard_links;	// 0x12: The number of hard links to record.
    __le16 attr_off;	// 0x14: Offset to attributes.
  ...

the ntfs3 driver ignored short names (DOS names), causing the link count
to be reduced by 1 and messages to be output to dmesg.

For Windows, such a situation is a minor error, meaning chkdsk does not report
errors on such a volume, and in the case of using the /f switch, it silently
corrects them, reporting that no errors were found. This does not affect
the consistency of the file system.

Nevertheless, the behavior in the ntfs3 driver is incorrect and
changes the content of the file system. This patch should fix that.

PS: most likely, there has been a confusion of concepts
MFT_REC::hard_links and inode::__i_nlink.

Fixes: 82cae269cfa95 ("fs/ntfs3: Add initialization of super block")
Signed-off-by: Konstantin Komarov &lt;almaz.alexandrovich@paragon-software.com&gt;
Cc: stable@vger.kernel.org
</content>
</entry>
<entry>
<title>fs/ntfs3: Fixed overflow check in mi_enum_attr()</title>
<updated>2024-01-29T07:48:34Z</updated>
<author>
<name>Konstantin Komarov</name>
</author>
<published>2024-01-26T08:14:31Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=652cfeb43d6b9aba5c7c4902bed7a7340df131fb'/>
<id>urn:sha1:652cfeb43d6b9aba5c7c4902bed7a7340df131fb</id>
<content type='text'>
Reported-by: Robert Morris &lt;rtm@csail.mit.edu&gt;
Signed-off-by: Konstantin Komarov &lt;almaz.alexandrovich@paragon-software.com&gt;
</content>
</entry>
<entry>
<title>fs/ntfs3: Correct hard links updating when dealing with DOS names</title>
<updated>2023-12-06T14:46:08Z</updated>
<author>
<name>Konstantin Komarov</name>
</author>
<published>2023-11-24T08:26:31Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=1918c10e137eae266b8eb0ab1cc14421dcb0e3e2'/>
<id>urn:sha1:1918c10e137eae266b8eb0ab1cc14421dcb0e3e2</id>
<content type='text'>
Signed-off-by: Konstantin Komarov &lt;almaz.alexandrovich@paragon-software.com&gt;
</content>
</entry>
<entry>
<title>fs/ntfs3: Refactoring and comments</title>
<updated>2023-09-28T12:04:01Z</updated>
<author>
<name>Konstantin Komarov</name>
</author>
<published>2023-09-25T07:47:07Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f684073c09fd4658faa0a75c12b65d89a58b8e83'/>
<id>urn:sha1:f684073c09fd4658faa0a75c12b65d89a58b8e83</id>
<content type='text'>
Signed-off-by: Konstantin Komarov &lt;almaz.alexandrovich@paragon-software.com&gt;
</content>
</entry>
<entry>
<title>fs/ntfs3: Add more attributes checks in mi_enum_attr()</title>
<updated>2023-09-28T12:03:57Z</updated>
<author>
<name>Konstantin Komarov</name>
</author>
<published>2023-06-30T12:17:02Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=013ff63b649475f0ee134e2c8d0c8e65284ede50'/>
<id>urn:sha1:013ff63b649475f0ee134e2c8d0c8e65284ede50</id>
<content type='text'>
Signed-off-by: Konstantin Komarov &lt;almaz.alexandrovich@paragon-software.com&gt;
</content>
</entry>
</feed>
