diff options
author | Nathan Huckleberry <nhuck@google.com> | 2020-07-10 21:23:37 +0200 |
---|---|---|
committer | Russell King <rmk+kernel@armlinux.org.uk> | 2020-07-21 17:33:40 +0200 |
commit | b4d5ec9b39f8b31d98f65bc5577b5d15d93795d7 (patch) | |
tree | 9636d4f12db602048a3768d27025c8af64115da0 /arch/arm/mm/mmap.c | |
parent | ARM: 8991/1: use VFP assembler mnemonics if available (diff) | |
download | linux-b4d5ec9b39f8b31d98f65bc5577b5d15d93795d7.tar.xz linux-b4d5ec9b39f8b31d98f65bc5577b5d15d93795d7.zip |
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/912
Reported-by: Miles Chen <miles.chen@mediatek.com>
Tested-by: Miles Chen <miles.chen@mediatek.com>
Cc: stable@vger.kernel.org
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: Nathan Huckleberry <nhuck@google.com>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Diffstat (limited to 'arch/arm/mm/mmap.c')
0 files changed, 0 insertions, 0 deletions