Re: [GIT PULL] objtool fixes and updates

From: Tiezhu Yang
Date: Tue Apr 01 2025 - 02:12:30 EST


On 04/01/2025 12:15 PM, Josh Poimboeuf wrote:
On Tue, Apr 01, 2025 at 10:05:41AM +0800, Tiezhu Yang wrote:
(2) I did not meet the following objtool warnings before this merge
window:

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

and I did not notice the robot report due to there are many unread mails
in my inbox, I will try to reproduce it and take a deeper look at the
problem, maybe it is related with some special configs.

I actually already have a patch for it, will post soon.

Thanks for the fix, I will test it once you post it.

I can confirm that the objtool warning is not related with
the patches in the branch objtool/urgent of tip.git, it is
related with CONFIG_STACKPROTECTOR which is default y, but
CONFIG_STACKPROTECTOR is not set in the robot randconfig
loongarch-randconfig-001-20250328 [1], there is no objtool
warning if CONFIG_STACKPROTECTOR is set.

I can also reproduce this issue when compiling with v6.14
if CONFIG_STACKPROTECTOR is not set.

[1] https://download.01.org/0day-ci/archive/20250328/202503280703.OARM8SrY-lkp@xxxxxxxxx/config

Thanks,
Tiezhu