kernel_samsung_a53x/fs/udf
Jan Kara 41c2d4b1fc udf: Avoid using corrupted block bitmap buffer
commit a90d4471146de21745980cba51ce88e7926bcc4f upstream.

When the filesystem block bitmap is corrupted, we detect the corruption
while loading the bitmap and fail the allocation with error. However the
next allocation from the same bitmap will notice the bitmap buffer is
already loaded and tries to allocate from the bitmap with mixed results
(depending on the exact nature of the bitmap corruption). Fix the
problem by using BH_verified bit to indicate whether the bitmap is valid
or not.

Reported-by: syzbot+5f682cd029581f9edfd1@syzkaller.appspotmail.com
CC: stable@vger.kernel.org
Link: https://patch.msgid.link/20240617154201.29512-2-jack@suse.cz
Fixes: 1e0d4adf17e7 ("udf: Check consistency of Space Bitmap Descriptor")
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-11-23 23:20:13 +01:00
..
balloc.c udf: Avoid using corrupted block bitmap buffer 2024-11-23 23:20:13 +01:00
dir.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
directory.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ecma_167.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
file.c Revert "fs: add file and path permissions helpers" 2024-11-19 13:30:21 +01:00
ialloc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
inode.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lowlevel.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
misc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
namei.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
osta_udf.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
partition.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
super.c udf: Avoid using corrupted block bitmap buffer 2024-11-23 23:20:13 +01:00
symlink.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
truncate.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
udf_i.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
udf_sb.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
udfdecl.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
udfend.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
udftime.c udf: udftime: prevent overflow in udf_disk_stamp_to_time() 2024-11-19 14:19:07 +01:00
unicode.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00