Re: [PATCH v4] riscv: Prevent NULL pointer dereference in machine_kexec_prepare
patchwork-bot+linux-riscv-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org Tue, 07 Jul 2026 02:41:03 +0000
| Newsgroups | gmane.linux.kernel.kexec,gmane.linux.ports.riscv,gmane.linux.kernel,gmane.linux.kernel.janitors,gmane.linux.kernel.stable |
|---|---|
| Message-ID | <178339206389.1302215.10769604011679543705.git-patchwork-notify@kernel.org> |
Hello: This patch was applied to riscv/linux.git (fixes) by Paul Walmsley <[email protected]>: On Fri, 3 Jul 2026 23:15:31 +1200 you wrote: > A NULL pointer dereference issue is noticed in riscv's machine_kexec_prepare(), > where image->segment[i].buf might be NULL and copied unchecked. > > The NULL buf comes from ima_add_kexec_buffer(), where kbuf is added by > kexec_add_buffer(), but kbuf.buffer is NULL, then it is copied without > a check in machine_kexec_prepare(). > > [...] Here is the summary with links: - [v4] riscv: Prevent NULL pointer dereference in machine_kexec_prepare https://git.kernel.org/riscv/c/60d607dc599a You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html