linux-yocto/fs/exfat
Yongpeng Yang e65f1a2807 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>
2025-12-01 11:41:39 +01:00
..
balloc.c exfat: fix soft lockup in exfat_clear_bitmap 2025-03-13 12:58:32 +01:00
cache.c
dir.c exfat: add cluster chain loop check for dir 2025-08-28 16:28:28 +02:00
exfat_fs.h exfat: fix soft lockup in exfat_clear_bitmap 2025-03-13 12:58:32 +01:00
exfat_raw.h
fatent.c exfat: limit log print for IO error 2025-11-24 10:29:45 +01:00
file.c
inode.c
Kconfig
Makefile
misc.c
namei.c exfat: add cluster chain loop check for dir 2025-08-28 16:28:28 +02:00
nls.c
super.c exfat: check return value of sb_min_blocksize in exfat_read_boot_sector 2025-12-01 11:41:39 +01:00