]> git.baikalelectronics.ru Git - kernel.git/commit
exfat: fix incorrect loading of i_blocks for large files
authorSungjong Seo <sj1557.seo@samsung.com>
Tue, 19 Oct 2021 06:14:21 +0000 (15:14 +0900)
committerNamjae Jeon <linkinjeon@kernel.org>
Sun, 31 Oct 2021 22:49:21 +0000 (07:49 +0900)
commitf1ea09ab7f7b81db007acafb88c510c94dd867d4
tree853e5d72db3c5a5d55c7e6c91af9cbab93dc4fda
parent87f3aef4e60f5f3a1d1824861822000c0286a90d
exfat: fix incorrect loading of i_blocks for large files

When calculating i_blocks, there was a mistake that was masked with a
32-bit variable. So i_blocks for files larger than 4 GiB had incorrect
values. Mask with a 64-bit variable instead of 32-bit one.

Fixes: e2113e641174 ("exfat: add inode operations")
Cc: stable@vger.kernel.org # v5.7+
Reported-by: Ganapathi Kamath <hgkamath@hotmail.com>
Signed-off-by: Sungjong Seo <sj1557.seo@samsung.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
fs/exfat/inode.c