Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
arm64: Fix miscalculation of the starting address of the pt_regs stru…
…cture on the kernel stack Fix miscalculation of the starting address of the pt_regs structure on the kernel stack, causing bt command to display corrupt backtrace. (gdb) bt #0 android::Mutex::lock (this=<optimized out>) at system/core/libutils/include/utils/Mutex.h:183 #1 android::Looper::pollInner (this=0x704ad1c590 <epoll_wait(int, epoll_event*, int, int)>, timeoutMillis=1291145664) at system/core/libutils/Looper.cpp:243 #2 0xbc5e696a00000018 in ?? () Backtrace stopped: previous frame identical to this frame (corrupt stack?) This fix correspnds to the following commit for crash utility: commit c975008e61121ef8785622c3bc26964da8fe0deb Author: Dave Anderson <anderson redhat com> Date: Fri Sep 22 14:59:10 2017 -0400 Fix for the ARM64 "bt" command's display of the user mode exception frame at the top of the stack in Linux 4.7 and later kernels. Without the patch, the contents of the user mode exception frame are invalid due to the miscalculation of the starting address of the pt_regs structure on the kernel stack. (anderson@redhat.com) Signed-off-by: zhaoqianli <zhaoqianli@xiaomi.com> Signed-off-by: HATAYAMA Daisuke <d.hatayama@fujitsu.com>
- Loading branch information