Re: WARNING: can't access registers at asm_common_interrupt
From: Shinichiro Kawasaki
Date: Thu Nov 19 2020 - 07:49:22 EST
On Nov 19, 2020 / 13:01, Peter Zijlstra wrote:
> On Thu, Nov 19, 2020 at 11:51:00AM +0000, Shinichiro Kawasaki wrote:
> > I tried Peter's patch in my test system and result looks good. The warning is
> > still observed with 5.10-rc4. With the patch on top of 5.10-rc4, the warning
> > disappeared.
>
> The patch on its own is not sufficient to fix things; there needs to be
> an accompanying objtool patch to generate the correct unwind
> information.
>
> This patch only ensures objtool has enough information to be able to
> dtrt, but as it stands it shouldn't even compile, it should complain
> about an alternative trying to modify the stack and bail.
Thanks for the clarification. It was too early to try out... When it gets ready
to try and test, please let me know.
--
Best Regards,
Shin'ichiro Kawasaki