]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ntfs3: pretend $Extend records as regular files
authorTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Tue, 2 Sep 2025 10:43:24 +0000 (19:43 +0900)
committerKonstantin Komarov <almaz.alexandrovich@paragon-software.com>
Wed, 10 Sep 2025 09:01:38 +0000 (11:01 +0200)
commit4e8011ffec79717e5fdac43a7e79faf811a384b7
treed93a5104d0f627307f439a4a37e2d7eddbf65381
parent21dc07ac9c25f01ab2023e3e8605861d8fd6e00c
ntfs3: pretend $Extend records as regular files

Since commit af153bb63a33 ("vfs: catch invalid modes in may_open()")
requires any inode be one of S_IFDIR/S_IFLNK/S_IFREG/S_IFCHR/S_IFBLK/
S_IFIFO/S_IFSOCK type, use S_IFREG for $Extend records.

Reported-by: syzbot <syzbot+895c23f6917da440ed0d@syzkaller.appspotmail.com>
Closes: https://syzkaller.appspot.com/bug?extid=895c23f6917da440ed0d
Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
fs/ntfs3/inode.c