Jan Kara 9de7569942 udf: Fix error handling in udf_new_inode()
[ Upstream commit f05f2429eec60851b98bdde213de31dab697c01b ]

When memory allocation of iinfo or block allocation fails, already
allocated struct udf_inode_info gets freed with iput() and
udf_evict_inode() may look at inode fields which are not properly
initialized. Fix it by marking inode bad before dropping reference to it
in udf_new_inode().

Reported-by: syzbot+9ca499bb57a2b9e4c652@syzkaller.appspotmail.com
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-01-27 11:05:02 +01:00
..
2021-11-25 09:48:46 +01:00
2020-05-04 10:13:42 -06:00
2021-11-25 09:48:46 +01:00
2021-08-11 16:54:44 +02:00
2021-11-25 09:48:46 +01:00
2021-01-24 14:27:20 +01:00
2021-08-12 16:07:09 +02:00
2021-08-12 16:07:09 +02:00