Re: [f2fs-dev] [PATCH] f2fs: prevent possible int overflow in dir_block_index()

2024-08-05 Thread patchwork-bot+f2fs
Hello: This patch was applied to jaegeuk/f2fs.git (dev) by Jaegeuk Kim : On Wed, 24 Jul 2024 10:05:44 -0700 you wrote: > The result of multiplication between values derived from functions > dir_buckets() and bucket_blocks() *could* technically reach > 2^30 * 2^2 = 2^32. > > While unlikely to hap

Re: [f2fs-dev] [PATCH] f2fs: prevent possible int overflow in dir_block_index()

2024-07-24 Thread Chao Yu
On 2024/7/25 1:05, Nikita Zhandarovich wrote: The result of multiplication between values derived from functions dir_buckets() and bucket_blocks() *could* technically reach 2^30 * 2^2 = 2^32. While unlikely to happen, it is prudent to ensure that it will not lead to integer overflow. Thus, use m

[f2fs-dev] [PATCH] f2fs: prevent possible int overflow in dir_block_index()

2024-07-24 Thread Nikita Zhandarovich
The result of multiplication between values derived from functions dir_buckets() and bucket_blocks() *could* technically reach 2^30 * 2^2 = 2^32. While unlikely to happen, it is prudent to ensure that it will not lead to integer overflow. Thus, use mul_u32_u32() as it's more appropriate to mitigat