linux/fs/exfat
Yongpeng Yang 93c8a03a10 exfat: check return value of sb_min_blocksize in exfat_read_boot_sector
commit f2c1f63163 upstream.

sb_min_blocksize() may return 0. Check its return value to avoid
accessing the filesystem super block when sb->s_blocksize is 0.

Cc: stable@vger.kernel.org # v6.15
Fixes: 719c1e1829 ("exfat: add super block operations")
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Yongpeng Yang <yangyongpeng@xiaomi.com>
Link: https://patch.msgid.link/20251104125009.2111925-3-yangyongpeng.storage@gmail.com
Signed-off-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2025-12-01 11:43:21 +01:00
..
balloc.c exfat: validate cluster allocation bits of the allocation bitmap 2025-11-13 15:34:31 -05:00
cache.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
dir.c exfat: add cluster chain loop check for dir 2025-08-20 18:30:47 +02:00
exfat_fs.h exfat: fix soft lockup in exfat_clear_bitmap 2025-03-13 13:02:08 +01:00
exfat_raw.h exfat: add ioctls for accessing attributes 2023-10-31 10:00:51 +09:00
fatent.c exfat: limit log print for IO error 2025-11-13 15:34:31 -05:00
file.c exfat: fdatasync flag should be same like generic_write_sync() 2025-08-15 12:14:02 +02:00
inode.c exfat: call bh_read in get_block only when necessary 2025-05-29 11:02:03 +02:00
Kconfig fs: add CONFIG_BUFFER_HEAD 2023-08-02 09:13:09 -06:00
Makefile exfat: add Kconfig and Makefile 2020-03-05 21:00:40 -05:00
misc.c exfat: convert to new timestamp accessors 2023-10-18 13:26:21 +02:00
namei.c exfat: fix improper check of dentry.stream.valid_size 2025-11-24 10:35:48 +01:00
nls.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
super.c exfat: check return value of sb_min_blocksize in exfat_read_boot_sector 2025-12-01 11:43:21 +01:00