Re: [PATCH] riscv: Use kcalloc() instead of kzalloc()

From: patchwork-bot+linux-riscv
Date: Wed Mar 20 2024 - 16:51:59 EST


Hello:

This patch was applied to riscv/linux.git (for-next)
by Palmer Dabbelt <palmer@xxxxxxxxxxxx>:

On Sat, 20 Jan 2024 14:54:00 +0100 you wrote:
> As noted in the "Deprecated Interfaces, Language Features, Attributes,
> and Conventions" documentation [1], size calculations (especially
> multiplication) should not be performed in memory allocator (or similar)
> function arguments due to the risk of them overflowing. This could lead
> to values wrapping around and a smaller allocation being made than the
> caller was expecting. Using those allocations could lead to linear
> overflows of heap memory and other misbehaviors.
>
> [...]

Here is the summary with links:
- riscv: Use kcalloc() instead of kzalloc()
https://git.kernel.org/riscv/c/28e4748e5e3d

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html