udf: Avoid accessing uninitialized data on failed inode read
authorJan Kara <jack@suse.cz>
Fri, 25 Sep 2020 10:14:03 +0000 (12:14 +0200)
committerJan Kara <jack@suse.cz>
Tue, 29 Sep 2020 15:21:46 +0000 (17:21 +0200)
commit044e2e26f214e5ab26af85faffd8d1e4ec066931
tree1451676117a527e6030313e8a2c1b0ef08371cfe
parent3d3dc274ce736227e3197868ff749cff2f175f63
udf: Avoid accessing uninitialized data on failed inode read

When we fail to read inode, some data accessed in udf_evict_inode() may
be uninitialized. Move the accesses to !is_bad_inode() branch.

Reported-by: syzbot+91f02b28f9bb5f5f1341@syzkaller.appspotmail.com
Signed-off-by: Jan Kara <jack@suse.cz>
fs/udf/inode.c