On Wed, 27 May 2026 02:01:06 +0200, Thorsten Blum wrote:
> Replace the manual string length accounting, memcpy(), and NUL
> termination with a single snprintf() call to prepend the elfcorehdr=
> address and to detect string truncation at the same time.
>
> Use kmalloc() to avoid unnecessarily zeroing the memory. While at it,
> also use "prepending" instead of "appending" in the error message.
>
> [...]
Applied to powerpc/next.
[1/1] powerpc/kexec_file: use snprintf to simplify setup_kdump_cmdline
https://git.kernel.org/powerpc/c/dd6c80abf46a966f839fead7659bda05f80e462b
cheers