Re: [GIT PULL] objtool fixes and updates

From: Ingo Molnar
Date: Mon Mar 31 2025 - 07:55:36 EST



* Borislav Petkov <bp@xxxxxxxxx> wrote:

> On Fri, Mar 28, 2025 at 10:18:57PM +0100, Ingo Molnar wrote:
> > Linus,
> >
> > Please pull the latest objtool/urgent Git tree from:
> >
> > git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git objtool-urgent-2025-03-28
> >
> > # HEAD: ae958b12940bcd4ffa32c44684e4f2878bc5e140 objtool, drm/vmwgfx: Don't ignore vmw_send_msg() for ORC
> >
> > [ Merge note: not all driver fixes below have maintainer acks. ]
>
> Btw, test bot complains:
>
> https://lore.kernel.org/r/202503292202.Sge7ZEUc-lkp@xxxxxxxxx

AFAICS that particular report is not a new regression, but essentially
a test-bot false positive due to a reporting change, because the
objtool warning output changed.

This can be seen in the full report:

https://lore.kernel.org/oe-kbuild-all/202503280703.OARM8SrY-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

arch/loongarch/kernel/traps.o: warning: objtool: show_stack+0xe0: stack state mismatch: reg1[22]=-1+0 reg2[22]=-2-160
arch/loongarch/kernel/traps.o: warning: objtool: show_stack+0xe0: stack state mismatch: reg1[23]=-1+0 reg2[23]=-2-152
>> arch/loongarch/kernel/traps.o: warning: objtool: show_stack+0xe0: skipping duplicate warning(s)

Note how '>>' is the new warning - the summary line added recently that
suggests that there's more warnings. It appears to me the test-bot
considers the other warnings old regressions, but I couldn't find any
trace of them being reported before. Maybe they weren't Cc:-ed to lkml.

Or maybe these *are* all new warnings. I've Cc:-ed the LKP folks.

To add confusion to confusion, the test bot also incorrectly attributed
ae958b1294 for that new warning line, and incorrectly categorized it as
a 'recent_error':

recent_errors
`-- loongarch-randconfig-001-20250328
`-- arch-loongarch-kernel-traps.o:warning:objtool:show_stack:skipping-duplicate-warning(s)

While the commit that added this new reporting line is:

0a7fb6f07e3a ("objtool: Increase per-function WARN_FUNC() rate limit")

... which is a few weeks old and already upstream. We didn't get a
loongson related test-bot regression report for that commit or any
other commits, other than the weeks-late & self-contradictory report
against ae958b1294.

So something's wonky with the test-bot reporting in this particular
case for loongson, or my parsing thereof.

Thanks,

Ingo