[PATCH v3 08/10] ARM: implement IRQ stacks

Nick Desaulniers ndesaulniers at google.com
Mon Oct 18 14:03:46 PDT 2021


On Mon, Oct 18, 2021 at 2:00 PM Ard Biesheuvel <ardb at kernel.org> wrote:
>
> > > diff --git a/arch/arm/kernel/traps.c b/arch/arm/kernel/traps.c
> > > index cda32385552b..1ba9fc2eb564 100644
> > > --- a/arch/arm/kernel/traps.c
> > > +++ b/arch/arm/kernel/traps.c
> > > @@ -66,6 +66,19 @@ void dump_backtrace_entry(unsigned long where, unsigned long from,
> > >  {
> > >         unsigned long end = frame + 4 + sizeof(struct pt_regs);
> > >
> > > +       if (IS_ENABLED(CONFIG_UNWINDER_FRAME_POINTER) &&
> > > +           IS_ENABLED(CONFIG_CC_IS_GCC) &&
> >
> > Anything that needs to be adjusted here in the case of CONFIG_CC_IS_CLANG?
> >
>
> Not really. Clang simply does not record this information in the frame
> record, so there is no way to recover it.
>
> Note that this only affects whether or not the exception stack is
> dumped for this frame, so it is not the end of the world.

Ok. Thanks for the clarification.
Acked-by: Nick Desaulniers <ndesaulniers at google.com>

-- 
Thanks,
~Nick Desaulniers



More information about the linux-arm-kernel mailing list