Re: [PATCH] ARM64: unwind: Fix PC calculation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 14 Feb 2014, at 19:35, Olof Johansson <olof@xxxxxxxxx> wrote:
> The frame PC value in the unwind code used to just take the saved LR
> value and use that.  That's incorrect as a stack trace, since it shows
> the return path stack, not the call path stack.
>
> In particular, it shows faulty information in case the bl is done as
> the very last instruction of one label, since the return point will be
> in the next label. That can easily be seen with tail calls to panic(),
> which is marked __noreturn and thus doesn't have anything useful after it.
>
> Easiest here is to just correct the unwind code and do a -4, to get the
> actual call site for the backtrace instead of the return site.
>
> Signed-off-by: Olof Johansson <olof@xxxxxxxxx>
> Cc: stable@xxxxxxxxxxxxxxx

Looks fine. I’ll push it sometime next week. Thanks.

Catalin

-- IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium.  Thank you.

ARM Limited, Registered office 110 Fulbourn Road, Cambridge CB1 9NJ, Registered in England & Wales, Company No:  2557590
ARM Holdings plc, Registered office 110 Fulbourn Road, Cambridge CB1 9NJ, Registered in England & Wales, Company No:  2548782

--
To unsubscribe from this list: send the line "unsubscribe stable" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]