On Thu, Mar 12, 2026 at 01:35:43PM +0100, Arnd Bergmann wrote:
> From: Arnd Bergmann <[email protected]>
> 
> Randconfig builds show a number of cryptic build errors from
> hitting undefined symbols in simple_ring_buffer.o:
> 
> make[7]: *** [/home/arnd/arm-soc/kernel/trace/Makefile:147: 
> kernel/trace/simple_ring_buffer.o.checked] Error 1
> 
> These happen with CONFIG_TRACE_BRANCH_PROFILING, CONFIG_KASAN_HW_TAGS,
> CONFIG_STACKPROTECTOR, CONFIG_DEBUG_IRQFLAGS and indirectly from WARN_ON().
> 
> Add exceptions for each one that I have hit so far on arm64, x86_64 and arm
> randconfig builds.
> 
> Other architectures likely hit additional ones, so it would be nice
> to produce a little more verbose output that include the name of the
> missing symbols directly.
> 
> Fixes: a717943d8ecc ("tracing: Check for undefined symbols in 
> simple_ring_buffer")
> Signed-off-by: Arnd Bergmann <[email protected]>
> ---
>  kernel/trace/Makefile | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/kernel/trace/Makefile b/kernel/trace/Makefile
> index 3182e1bc1cf7..e3f8d6e619d2 100644
> --- a/kernel/trace/Makefile
> +++ b/kernel/trace/Makefile
> @@ -138,6 +138,8 @@ obj-$(CONFIG_TRACE_REMOTE_TEST) += remote_test.o
>  #
>  UNDEFINED_ALLOWLIST := memset alt_cb_patch_nops __x86 __ubsan __asan __kasan 
> __gcov __aeabi_unwind
>  UNDEFINED_ALLOWLIST += __stack_chk_fail stackleak_track_stack __ref_stack 
> __sanitizer
> +UNDEFINED_ALLOWLIST += ftrace_likely_update __hwasan_load __hwasan_store 
> __hwasan_tag_memory
> +UNDEFINED_ALLOWLIST += warn_bogus_irq_restore warn_slowpath_fmt 
> __stack_chk_guard
>  UNDEFINED_ALLOWLIST := $(addprefix -e , $(UNDEFINED_ALLOWLIST))
>  
>  quiet_cmd_check_undefined = NM      $<
> -- 
> 2.39.5
> 

Thanks for the patch.

Most of those ones are covered here
https://lore.kernel.org/all/[email protected]/.

This should fix allmodconfig.

For the ones not covered, I'm working on a follow-up patch using a different
approach which should fix them. I'll be able to share it today or tomorrow. Not
sure if we want to take this temporarily?

Reply via email to