2024-04-30 05:40:32

by Edward Adam Davis

[permalink] [raw]
Subject: Re: [syzbot] [ext4?] KMSAN: uninit-value in ext4_inlinedir_to_tree

please test uv in ext4_inlinedir_to_tree

#syz test https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master

diff --git a/fs/ext4/namei.c b/fs/ext4/namei.c
index 5e4f65c14dfb..3611952570a7 100644
--- a/fs/ext4/namei.c
+++ b/fs/ext4/namei.c
@@ -1182,7 +1182,7 @@ static int htree_dirblock_to_tree(struct file *dir_file,
int ext4_htree_fill_tree(struct file *dir_file, __u32 start_hash,
__u32 start_minor_hash, __u32 *next_hash)
{
- struct dx_hash_info hinfo;
+ struct dx_hash_info hinfo = {};
struct ext4_dir_entry_2 *de;
struct dx_frame frames[EXT4_HTREE_LEVEL], *frame;
struct inode *dir;



2024-04-30 07:35:19

by syzbot

[permalink] [raw]
Subject: Re: [syzbot] [ext4?] KMSAN: uninit-value in ext4_inlinedir_to_tree

Hello,

syzbot has tested the proposed patch and the reproducer did not trigger any issue:

Reported-and-tested-by: [email protected]

Tested on:

commit: 98369dcc Merge tag 'wq-for-6.9-rc6-fixes' of git://git..
git tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
console output: https://syzkaller.appspot.com/x/log.txt?x=12ca42f8980000
kernel config: https://syzkaller.appspot.com/x/.config?x=bbf567496022057b
dashboard link: https://syzkaller.appspot.com/bug?extid=eaba5abe296837a640c0
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40
patch: https://syzkaller.appspot.com/x/patch.diff?x=100abe7f180000

Note: testing is done by a robot and is best-effort only.