[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAADnVQ+tbHC25R_qwJsZL2G9VM1kseOviQ8mAsaTNg68-2nWBw@mail.gmail.com>
Date: Fri, 7 Nov 2025 09:40:58 -0800
From: Alexei Starovoitov <alexei.starovoitov@...il.com>
To: Petr Mladek <pmladek@...e.com>
Cc: bot+bpf-ci@...nel.org, Petr Pavlu <petr.pavlu@...e.com>,
Steven Rostedt <rostedt@...dmis.org>, Alexei Starovoitov <ast@...nel.org>,
Andrew Morton <akpm@...ux-foundation.org>, Kees Cook <kees@...nel.org>,
Daniel Borkmann <daniel@...earbox.net>, John Fastabend <john.fastabend@...il.com>,
Masami Hiramatsu <mhiramat@...nel.org>, Mark Rutland <mark.rutland@....com>,
"Luis R. Rodriguez" <mcgrof@...nel.org>, Daniel Gomez <da.gomez@...nel.org>,
Sami Tolvanen <samitolvanen@...gle.com>, LKML <linux-kernel@...r.kernel.org>,
bpf <bpf@...r.kernel.org>, linux-modules@...r.kernel.org,
linux-trace-kernel <linux-trace-kernel@...r.kernel.org>, Andrii Nakryiko <andrii@...nel.org>,
Martin KaFai Lau <martin.lau@...nel.org>, Eduard <eddyz87@...il.com>,
Yonghong Song <yonghong.song@...ux.dev>, Chris Mason <clm@...a.com>,
Ihor Solodrai <ihor.solodrai@...ux.dev>
Subject: Re: [PATCH 2/6] kallsyms: Cleanup code for appending the module buildid
On Fri, Nov 7, 2025 at 5:15 AM Petr Mladek <pmladek@...e.com> wrote:
>
> On Wed 2025-11-05 14:59:53, bot+bpf-ci@...nel.org wrote:
> > > diff --git a/kernel/kallsyms.c b/kernel/kallsyms.c
> > > index 1e7635864..9455e3bb0 100644
> > > --- a/kernel/kallsyms.c
> > > +++ b/kernel/kallsyms.c
> > > @@ -423,6 +423,37 @@ int lookup_symbol_name(unsigned long addr, char *symname)
> > > return lookup_module_symbol_name(addr, symname);
> > > }
> > >
> > > +#ifdef CONFIG_STACKTRACE_BUILD_ID
> > > +
> > > +static int append_buildid(char *buffer, const char *modname,
> > > + const unsigned char *buildid)
> > > +{
> > > + if (!modname)
> > > + return 0;
> > > +
> > > + if (!buildid) {
> > > + pr_warn_once("Undefined buildid for the module %s\n", modname);
> > > + return 0;
> > > + }
> >
> > When ftrace_mod_address_lookup() succeeds in kallsyms_lookup_buildid(),
> > it sets *modname but doesn't initialize *modbuildid. This leaves the
> > buildid variable uninitialized when __sprint_symbol() calls
> > append_buildid().
>
> Just for record. This is a great analyze. This patchset is fixing
> this bug in a later patch. ;-)
Currently AI analyses one patch at a time and comments on what it
understands the way humans would do if they read and comment
as they go.
Teaching AI to understand the whole series is on todo list.
Chris may comment on how feasible that is.
Powered by blists - more mailing lists