[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id:
<171096783930.6804.853209401745501176.git-patchwork-notify@kernel.org>
Date: Wed, 20 Mar 2024 20:50:39 +0000
From: patchwork-bot+linux-riscv@...nel.org
To: Erick Archer <erick.archer@....com>
Cc: linux-riscv@...ts.infradead.org, paul.walmsley@...ive.com,
palmer@...belt.com, aou@...s.berkeley.edu, conor.dooley@...rochip.com,
ajones@...tanamicro.com, evan@...osinc.com, cleger@...osinc.com,
jszhang@...nel.org, charlie@...osinc.com, gustavoars@...nel.org,
linux-kernel@...r.kernel.org, linux-hardening@...r.kernel.org
Subject: Re: [PATCH] riscv: Use kcalloc() instead of kzalloc()
Hello:
This patch was applied to riscv/linux.git (for-next)
by Palmer Dabbelt <palmer@...osinc.com>:
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
Powered by blists - more mailing lists