]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ntfs3: Fix uninit buffer allocated by __getname()
authorSidharth Seela <sidharthseela@gmail.com>
Tue, 23 Sep 2025 06:40:16 +0000 (12:10 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Dec 2025 13:02:31 +0000 (14:02 +0100)
commitb40a4eb4a0543d49686a6e693745009dac3b86a9
treea04f548368f2f90fc3f033a9400a829f4d523f59
parent81ffe9a265df3e41534726b852ab08792e3d374d
ntfs3: Fix uninit buffer allocated by __getname()

[ Upstream commit 9948dcb2f7b5a1bf8e8710eafaf6016e00be3ad6 ]

Fix uninit errors caused after buffer allocation given to 'de'; by
initializing the buffer with zeroes. The fix was found by using KMSAN.

Reported-by: syzbot+332bd4e9d148f11a87dc@syzkaller.appspotmail.com
Fixes: 78ab59fee07f2 ("fs/ntfs3: Rework file operations")
Signed-off-by: Sidharth Seela <sidharthseela@gmail.com>
Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/ntfs3/inode.c