ARM64: Fixed invalid pt_regs address #1
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This fix follow the commit 19bfb92
arm64: Fix miscalculation of the starting address of the pt_regs
structure on the kernel stack
The machdep->machspec->user_eframe_offset value comes from crash
which already taken the size of pt_regs in to account.
Core was generated by `/init'.
#0 0x0000000000000015 in ?? ()
(gdb) info registers
x0 0xffffff80080e1d3c -549620671172
...
x26 0xc79ecaf 209317039
x27 0xef412c356afbd300 -1206634617218804992
x28 0x7 7
x29 0xef412c356afbd300 -1206634617218804992
x30 0x16 22
sp 0x124 0x124
pc 0x15 0x15
cpsr 0x40000000 [ EL=0 Z ]
fpsr 0x10 16
fpcr 0x0 0
Signed-off-by: Hong YANG hong.yang3@nio.com