Re: [PATCH next] modpost: Initialize builtin_modname to stop SIGSEGVs
From: Nathan Chancellor
Date: Sun Sep 28 2025 - 08:11:55 EST
On Sat, 27 Sep 2025 21:28:06 -0700, Hugh Dickins wrote:
> Segmentation fault ./scripts/mod/modpost -o vmlinux.symvers vmlinux.o
> stops the kernel build. It comes when write_vmlinux_export_c_file()
> tries to buf_printf alias->builtin_modname. malloc'ed memory is not
> necessarily zeroed. NULL new->builtin_modname before adding to aliases.
>
>
Applied, thanks!
[1/1] modpost: Initialize builtin_modname to stop SIGSEGVs
https://git.kernel.org/kbuild/c/2ea77fca84f07
Best regards,
--
Nathan Chancellor <nathan@xxxxxxxxxx>