[lvc-project] [f2fs-dev] [PATCH] f2fs: prevent possible int overflow in dir_block_index()
patchwork-bot+f2fs at kernel.org
patchwork-bot+f2fs at kernel.org
Tue Aug 6 02:30:52 MSK 2024
Hello:
This patch was applied to jaegeuk/f2fs.git (dev)
by Jaegeuk Kim <jaegeuk at kernel.org>:
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 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 mitigate the issue.
>
> [...]
Here is the summary with links:
- [f2fs-dev] f2fs: prevent possible int overflow in dir_block_index()
https://git.kernel.org/jaegeuk/f2fs/c/47f268f33dff
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
More information about the lvc-project
mailing list