[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id:
<176161267924.1638595.1882870898016863299.git-patchwork-notify@kernel.org>
Date: Tue, 28 Oct 2025 00:51:19 +0000
From: patchwork-bot+linux-riscv@...nel.org
To: Miaoqian Lin <linmq006@...il.com>
Cc: linux-riscv@...ts.infradead.org, pjw@...nel.org, palmer@...belt.com,
aou@...s.berkeley.edu, alex@...ti.fr, samuel.holland@...ive.com,
ajones@...tanamicro.com, linux-kernel@...r.kernel.org, bpf@...r.kernel.org,
stable@...r.kernel.org
Subject: Re: [PATCH] riscv: Fix memory leak in module_frob_arch_sections()
Hello:
This patch was applied to riscv/linux.git (fixes)
by Paul Walmsley <pjw@...nel.org>:
On Sun, 26 Oct 2025 17:19:08 +0800 you wrote:
> The current code directly overwrites the scratch pointer with the
> return value of kvrealloc(). If kvrealloc() fails and returns NULL,
> the original buffer becomes unreachable, causing a memory leak.
>
> Fix this by using a temporary variable to store kvrealloc()'s return
> value and only update the scratch pointer on success.
>
> [...]
Here is the summary with links:
- riscv: Fix memory leak in module_frob_arch_sections()
https://git.kernel.org/riscv/c/c42458fcf54b
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