ARM: 8992/1: Fix unwind_frame for clang-built kernels
Since clang does not push pc and sp in function prologues, the current implementation of unwind_frame does not work. By using the previous frame's lr/fp instead of saved pc/sp we get valid unwinds on clang-built kernels. The bounds check on next frame pointer must be changed as well since there are 8 less bytes between frames. This fixes /proc/<pid>/stack. Link: https://github.com/ClangBuiltLinux/linux/issues/912Reported-by: NMiles Chen <miles.chen@mediatek.com> Tested-by: NMiles Chen <miles.chen@mediatek.com> Cc: stable@vger.kernel.org Reviewed-by: NNick Desaulniers <ndesaulniers@google.com> Signed-off-by: NNathan Huckleberry <nhuck@google.com> Signed-off-by: NRussell King <rmk+kernel@armlinux.org.uk>
Showing
想要评论请 注册 或 登录