Description for this pull request:
 - fix integer overflow on large partition.
exfat: fix overflow for large capacity partition

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: 1b6138385499 ("exfat: reduce block requests when zeroing a cluster")
Cc: # v5.19+
Signed-off-by: Yuezhang Mo <>
Reviewed-by: Andy Wu <>
Reviewed-by: Aoyama Wataru <>
Acked-by: Sungjong Seo <>
Signed-off-by: Namjae Jeon <>
1 file changed