Skip to content
Snippets Groups Projects
Commit 1a8f7801 authored by Jan Kara's avatar Jan Kara Committed by Frieder Schrempf
Browse files

udf: Avoid directory type conversion failure due to ENOMEM


commit df97f64d upstream.

When converting directory from in-ICB to normal format, the last
iteration through the directory fixing up directory enteries can fail
due to ENOMEM. We do not expect this iteration to fail since the
directory is already verified to be correct and it is difficult to undo
the conversion at this point. So just use GFP_NOFAIL to make sure the
small allocation cannot fail.

Reported-by: default avatar <syzbot+111eaa994ff74f8d440f@syzkaller.appspotmail.com>
Fixes: 0aba4860 ("udf: Allocate name buffer in directory iterator on heap")
Signed-off-by: default avatarJan Kara <jack@suse.cz>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent dd9953a0
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment