Re: [PATCH v4 1/2] kallsyms: Always initialize modbuildid on ftrace address

From: Steven Rostedt
Date: Wed Jan 07 2026 - 17:11:27 EST


On Sat, 20 Dec 2025 19:18:37 +0100
Maurice Hieronymus <mhi@xxxxxxxxxxx> wrote:

> modbuildid is never set when kallsyms_lookup_buildid is returning via
> successful ftrace_mod_address_lookup.
>
> This leads to an uninitialized pointer dereference on x86 when
> CONFIG_STACKTRACE_BUILD_ID=y inside __sprint_symbol.
>

Nothing should be getting a buildid from the ftrace kallsyms lookup.

This code is used to find the names of init functions of modules after
those init functions have been freed. Nothing but ftrace should be looking
for these addresses, and ftrace doesn't care about buildids.

-- Steve