Skip to content
Commit 8dc9c3da authored by Xiaxi Shen's avatar Xiaxi Shen Committed by Theodore Ts'o
Browse files

ext4: fix uninitialized variable in ext4_inlinedir_to_tree



Syzbot has found an uninit-value bug in ext4_inlinedir_to_tree

This error happens because ext4_inlinedir_to_tree does not
handle the case when ext4fs_dirhash returns an error

This can be avoided by checking the return value of ext4fs_dirhash
and propagating the error,
similar to how it's done with ext4_htree_store_dirent

Signed-off-by: default avatarXiaxi Shen <shenxiaxi26@gmail.com>
Reported-and-tested-by: default avatar <syzbot+eaba5abe296837a640c0@syzkaller.appspotmail.com>
Closes: https://syzkaller.appspot.com/bug?extid=eaba5abe296837a640c0
Link: https://patch.msgid.link/20240501033017.220000-1-shenxiaxi26@gmail.com


Signed-off-by: default avatarTheodore Ts'o <tytso@mit.edu>
parent be210737
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment