Commit 4c22b859 authored by Yuezhang Mo's avatar Yuezhang Mo Committed by Lee Jones
Browse files

BACKPORT: 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.

Bug: 254441685
Fixes: 1b613838 ("exfat: reduce block requests when zeroing a cluster")
Cc: stable@vger.kernel.org # v5.19+
Signed-off-by: default avatarYuezhang Mo <Yuezhang.Mo@sony.com>
Reviewed-by: default avatarAndy Wu <Andy.Wu@sony.com>
Reviewed-by: default avatarAoyama Wataru <wataru.aoyama@sony.com>
Acked-by: default avatarSungjong Seo <sj1557.seo@samsung.com>
Signed-off-by: default avatarNamjae Jeon <linkinjeon@kernel.org>
(cherry picked from commit 2e9ceb67)
[Lee: Fixed trivial surrounding diff conflict - no functional changes intended]
Signed-off-by: default avatarLee Jones <joneslee@google.com>
Change-Id: Ie3d1357020cac831ada221e0c734dbaa22767131
parent dea08dbb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment