linux/fs/exfat
Yongpeng Yang f2e52a9d10 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-07 06:09:30 +09:00
..
balloc.c exfat: fix soft lockup in exfat_clear_bitmap 2025-03-13 12:51:07 +01:00
cache.c exfat: fix use of uninitialized spinlock on error path 2020-10-07 14:27:13 +09:00
dir.c exfat: fix the infinite loop in exfat_readdir() 2025-01-23 17:15:48 +01:00
exfat_fs.h exfat: fix soft lockup in exfat_clear_bitmap 2025-03-13 12:51:07 +01:00
exfat_raw.h exfat: fix shift-out-of-bounds in exfat_fill_super() 2021-02-22 09:55:13 +09:00
fatent.c exfat: limit log print for IO error 2025-12-07 06:09:24 +09:00
file.c exfat: fix inode->i_blocks for non-512 byte sector size device 2023-03-10 09:39:58 +01:00
inode.c exfat: fix inode->i_blocks for non-512 byte sector size device 2023-03-10 09:39:58 +01:00
Kconfig exfat: Improve wording of EXFAT_DEFAULT_IOCHARSET config option 2020-06-09 16:48:39 +09:00
Makefile exfat: add Kconfig and Makefile 2020-03-05 21:00:40 -05:00
misc.c exfat: write multiple sectors at once 2020-08-12 08:31:11 +09:00
namei.c exfat: fix uninit-value in __exfat_get_dentry_set 2024-12-14 19:51:14 +01:00
nls.c exfat: fix double free in delayed_free 2025-06-27 11:05:28 +01:00
super.c exfat: check return value of sb_min_blocksize in exfat_read_boot_sector 2025-12-07 06:09:30 +09:00