linux-stable/fs/exfat
Yuezhang Mo 17244f7176 exfat: fix overflow for large capacity partition
commit 2e9ceb6728 upstream.

Using int type for sector index, there will be overflow in a large
capacity partition.

For example, if storage with sector size of 512 bytes and partition
capacity is larger than 2TB, there will be overflow.

Fixes: 1b61383854 ("exfat: reduce block requests when zeroing a cluster")
Cc: stable@vger.kernel.org # v5.19+
Signed-off-by: Yuezhang Mo <Yuezhang.Mo@sony.com>
Reviewed-by: Andy Wu <Andy.Wu@sony.com>
Reviewed-by: Aoyama Wataru <wataru.aoyama@sony.com>
Acked-by: Sungjong Seo <sj1557.seo@samsung.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-09-28 11:32:04 +02: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
balloc.c exfat: check if cluster num is valid 2022-05-23 11:17:30 +09:00
cache.c exfat: fix use of uninitialized spinlock on error path 2020-10-07 14:27:13 +09:00
dir.c exfat: remove argument 'sector' from exfat_get_dentry() 2022-01-10 11:00:03 +09:00
exfat_fs.h exfat: check if cluster num is valid 2022-05-23 11:17:30 +09: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: fix overflow for large capacity partition 2022-09-28 11:32:04 +02:00
file.c block: add a bdev_discard_granularity helper 2022-04-17 19:49:59 -06:00
inode.c fs: Convert mpage_readpage to mpage_read_folio 2022-05-09 16:21:44 -04:00
misc.c exfat: introduce mount option 'sys_tz' 2022-05-23 11:17:29 +09:00
namei.c exfat: use updated exfat_chain directly during renaming 2022-06-09 21:26:32 +09:00
nls.c exfat: remove argument 'sector' from exfat_get_dentry() 2022-01-10 11:00:03 +09:00
super.c Description for this pull request: 2022-05-24 18:30:27 -07:00