Re: [PATCH v2 59/62] livepatch/klp-build: Introduce klp-build script for generating livepatch modules
From: Josh Poimboeuf
Date: Mon Jun 09 2025 - 19:59:51 EST
On Mon, Jun 09, 2025 at 05:20:53PM -0400, Joe Lawrence wrote:
> If you touch sound/soc/sof/intel/, klp-build will error out with:
>
> Building patch module: livepatch-unCVE-2024-58012.ko
> ERROR: modpost: module livepatch-unCVE-2024-58012 uses symbol hda_dai_config from namespace SND_SOC_SOF_INTEL_HDA_COMMON, but does not import it.
> ERROR: modpost: module livepatch-unCVE-2024-58012 uses symbol hdac_bus_eml_sdw_map_stream_ch from namespace SND_SOC_SOF_HDA_MLINK, but does not import it.
> make[2]: *** [scripts/Makefile.modpost:145: /home/jolawren/src/centos-stream-10/klp-tmp/kmod/Module.symvers] Error 1
> make[1]: *** [/home/jolawren/src/centos-stream-10/Makefile:1936: modpost] Error 2
> make: *** [Makefile:236: __sub-make] Error 2
>
> since the diff objects do not necessarily carry forward the namespace
> import.
Nice, thanks for finding that. I completely forgot about export
namespaces.
Can you send me the patch for testing? Is this the default centos10
config?
--
Josh