<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/fs/ntfs3/super.c, branch linux-rolling-lts</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-rolling-lts</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-rolling-lts'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2026-01-02T11:56:40Z</updated>
<entry>
<title>ntfs: set dummy blocksize to read boot_block when mounting</title>
<updated>2026-01-02T11:56:40Z</updated>
<author>
<name>Pedro Demarchi Gomes</name>
</author>
<published>2025-10-03T15:38:50Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b3c151fe8f543f1a0b8b5df16ce5d97afa5ec85a'/>
<id>urn:sha1:b3c151fe8f543f1a0b8b5df16ce5d97afa5ec85a</id>
<content type='text'>
[ Upstream commit d1693a7d5a38acf6424235a6070bcf5b186a360d ]

When mounting, sb-&gt;s_blocksize is used to read the boot_block without
being defined or validated. Set a dummy blocksize before attempting to
read the boot_block.

The issue can be triggered with the following syz reproducer:

  mkdirat(0xffffffffffffff9c, &amp;(0x7f0000000080)='./file1\x00', 0x0)
  r4 = openat$nullb(0xffffffffffffff9c, &amp;(0x7f0000000040), 0x121403, 0x0)
  ioctl$FS_IOC_SETFLAGS(r4, 0x40081271, &amp;(0x7f0000000980)=0x4000)
  mount(&amp;(0x7f0000000140)=@nullb, &amp;(0x7f0000000040)='./cgroup\x00',
        &amp;(0x7f0000000000)='ntfs3\x00', 0x2208004, 0x0)
  syz_clone(0x88200200, 0x0, 0x0, 0x0, 0x0, 0x0)

Here, the ioctl sets the bdev block size to 16384. During mount,
get_tree_bdev_flags() calls sb_set_blocksize(sb, block_size(bdev)),
but since block_size(bdev) &gt; PAGE_SIZE, sb_set_blocksize() leaves
sb-&gt;s_blocksize at zero.

Later, ntfs_init_from_boot() attempts to read the boot_block while
sb-&gt;s_blocksize is still zero, which triggers the bug.

Reported-by: syzbot+f4f84b57a01d6b8364ad@syzkaller.appspotmail.com
Closes: https://syzkaller.appspot.com/bug?extid=f4f84b57a01d6b8364ad
Signed-off-by: Pedro Demarchi Gomes &lt;pedrodemargomes@gmail.com&gt;
[almaz.alexandrovich@paragon-software.com: changed comment style, added
return value handling]
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>new helper: set_default_d_op()</title>
<updated>2025-06-11T02:21:16Z</updated>
<author>
<name>Al Viro</name>
</author>
<published>2025-02-24T00:39:47Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=05fb0e666495cda068c068a681ecbbf8e57324d0'/>
<id>urn:sha1:05fb0e666495cda068c068a681ecbbf8e57324d0</id>
<content type='text'>
... to be used instead of manually assigning to -&gt;s_d_op.
All in-tree filesystem converted (and field itself is renamed,
so any out-of-tree ones in need of conversion will be caught
by compiler).

Reviewed-by: Christian Brauner &lt;brauner@kernel.org&gt;
Signed-off-by: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
</content>
</entry>
<entry>
<title>fs/ntfs3: Fix 'proc_info_root' leak when init ntfs failed</title>
<updated>2025-02-05T14:48:40Z</updated>
<author>
<name>Ye Bin</name>
</author>
<published>2024-10-11T07:40:25Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=1d1a7e2525491f56901f5f63370a0775768044b8'/>
<id>urn:sha1:1d1a7e2525491f56901f5f63370a0775768044b8</id>
<content type='text'>
There's a issue as follows:
  proc_dir_entry 'fs/ntfs3' already registered
  WARNING: CPU: 3 PID: 9788 at fs/proc/generic.c:375 proc_register+0x418/0x590
  Modules linked in: ntfs3(E+)
  Call Trace:
   &lt;TASK&gt;
   _proc_mkdir+0x165/0x200
   init_ntfs_fs+0x36/0xf90 [ntfs3]
   do_one_initcall+0x115/0x6c0
   do_init_module+0x253/0x760
   load_module+0x55f2/0x6c80
   init_module_from_file+0xd2/0x130
   __x64_sys_finit_module+0xbf/0x130
   do_syscall_64+0x72/0x1c0

Above issue happens as missing destroy 'proc_info_root' when error
happens after create 'proc_info_root' in init_ntfs_fs().
So destroy 'proc_info_root' in error path in init_ntfs_fs().

Fixes: 7832e123490a ("fs/ntfs3: Add support /proc/fs/ntfs3/&lt;dev&gt;/volinfo and /proc/fs/ntfs3/&lt;dev&gt;/label")
Signed-off-by: Ye Bin &lt;yebin10@huawei.com&gt;
Signed-off-by: Konstantin Komarov &lt;almaz.alexandrovich@paragon-software.com&gt;
</content>
</entry>
<entry>
<title>fs/ntfs3: Factor out ntfs_{create/remove}_proc_root()</title>
<updated>2025-02-05T14:48:39Z</updated>
<author>
<name>Ye Bin</name>
</author>
<published>2024-10-11T07:40:24Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c5a396295370fa99ddc0c4c4d25f8a3ee4f013d8'/>
<id>urn:sha1:c5a396295370fa99ddc0c4c4d25f8a3ee4f013d8</id>
<content type='text'>
Introduce ntfs_create_proc_root()/ntfs_remove_proc_root() for
create/remove "/proc/fs/ntfs3".

Signed-off-by: Ye Bin &lt;yebin10@huawei.com&gt;
Signed-off-by: Konstantin Komarov &lt;almaz.alexandrovich@paragon-software.com&gt;
</content>
</entry>
<entry>
<title>fs/ntfs3: Factor out ntfs_{create/remove}_procdir()</title>
<updated>2025-02-05T14:48:39Z</updated>
<author>
<name>Ye Bin</name>
</author>
<published>2024-10-11T07:40:23Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e2d74c47a3d3d84a5fa444f380c126328b44f4db'/>
<id>urn:sha1:e2d74c47a3d3d84a5fa444f380c126328b44f4db</id>
<content type='text'>
Introduce ntfs_create_procdir() and ntfs_remove_procdir() to
create/remove "/proc/fs/ntfs3/.."

Signed-off-by: Ye Bin &lt;yebin10@huawei.com&gt;
Signed-off-by: Konstantin Komarov &lt;almaz.alexandrovich@paragon-software.com&gt;
</content>
</entry>
<entry>
<title>fs/ntfs3: Format output messages like others fs in kernel</title>
<updated>2024-10-01T09:19:09Z</updated>
<author>
<name>Konstantin Komarov</name>
</author>
<published>2024-09-05T11:44:50Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=48dbc127836a6f311414bc03eae386023d05ed30'/>
<id>urn:sha1:48dbc127836a6f311414bc03eae386023d05ed30</id>
<content type='text'>
Signed-off-by: Konstantin Komarov &lt;almaz.alexandrovich@paragon-software.com&gt;
</content>
</entry>
<entry>
<title>fs/ntfs3: Replace fsparam_flag_no -&gt; fsparam_flag</title>
<updated>2024-09-03T13:58:45Z</updated>
<author>
<name>Konstantin Komarov</name>
</author>
<published>2024-07-01T11:28:01Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=568f1140b9ca92def4ac581846c244294112bd42'/>
<id>urn:sha1:568f1140b9ca92def4ac581846c244294112bd42</id>
<content type='text'>
Based on the experience with an error related to incorrect parsing of the
'nocase' option, I decided to simplify the list and type of parameters.

Signed-off-by: Konstantin Komarov &lt;almaz.alexandrovich@paragon-software.com&gt;
</content>
</entry>
<entry>
<title>fs/ntfs3: Fix sparse warning for bigendian</title>
<updated>2024-09-03T13:58:40Z</updated>
<author>
<name>Konstantin Komarov</name>
</author>
<published>2024-08-19T13:24:59Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ffe718c9924eb7e4ce062dd383cf5fea7f02f180'/>
<id>urn:sha1:ffe718c9924eb7e4ce062dd383cf5fea7f02f180</id>
<content type='text'>
Fixes: 220cf0498bbf ("fs/ntfs3: Simplify initialization of $AttrDef and $UpCase")
Reported-by: kernel test robot &lt;lkp@intel.com&gt;
Closes: https://lore.kernel.org/oe-kbuild-all/202404181111.Wz8a1qX6-lkp@intel.com/
Signed-off-by: Konstantin Komarov &lt;almaz.alexandrovich@paragon-software.com&gt;
</content>
</entry>
<entry>
<title>Merge tag 'ntfs3_for_6.11' of https://github.com/Paragon-Software-Group/linux-ntfs3</title>
<updated>2024-07-22T17:50:18Z</updated>
<author>
<name>Linus Torvalds</name>
</author>
<published>2024-07-22T17:50:18Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=5ea6d72489a4a937fb9e9f9e81474cdf3483196e'/>
<id>urn:sha1:5ea6d72489a4a937fb9e9f9e81474cdf3483196e</id>
<content type='text'>
Pull ntfs3 updates from Konstantin Komarov:
 "New code:
   - simple fileattr support

  Fixes:
   - transform resident to nonresident for compressed files
   - the format of the "nocase" mount option
   - getting file type
   - many other internal bugs

  Refactoring:
   - remove unused functions and macros
   - partial transition from page to folio (suggested by Matthew Wilcox)
   - legacy ntfs support"

* tag 'ntfs3_for_6.11' of https://github.com/Paragon-Software-Group/linux-ntfs3: (42 commits)
  fs/ntfs3: Fix formatting, change comments, renaming
  fs/ntfs3: Update log-&gt;page_{mask,bits} if log-&gt;page_size changed
  fs/ntfs3: Implement simple fileattr
  fs/ntfs3: Redesign legacy ntfs support
  fs/ntfs3: Use function file_inode to get inode from file
  fs/ntfs3: Minor ntfs_list_ea refactoring
  fs/ntfs3: Check more cases when directory is corrupted
  fs/ntfs3: Do copy_to_user out of run_lock
  fs/ntfs3: Keep runs for $MFT::$ATTR_DATA and $MFT::$ATTR_BITMAP
  fs/ntfs3: Missed error return
  fs/ntfs3: Fix the format of the "nocase" mount option
  fs/ntfs3: Fix field-spanning write in INDEX_HDR
  ntfs3: Convert attr_wof_frame_info() to use a folio
  ntfs3: Convert ni_readpage_cmpr() to take a folio
  ntfs3: Convert ntfs_get_frame_pages() to use a folio
  ntfs3: Remove calls to set/clear the error flag
  ntfs3: Convert attr_make_nonresident to use a folio
  ntfs3: Convert attr_data_write_resident to use a folio
  ntfs3: Convert ntfs_write_end() to work on a folio
  ntfs3: Convert attr_data_read_resident() to take a folio
  ...
</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>
</feed>
