lkml.org 
[lkml]   [2014]   [Feb]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH] ARM64: unwind: Fix PC calculation
On 14 Feb 2014, at 19:35, Olof Johansson <olof@lixom.net> 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@lixom.net>
> Cc: stable@vger.kernel.org

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 linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2014-02-15 12:21    [W:0.037 / U:1.628 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site