diff options
author | Mark Rutland <[email protected]> | 2020-03-13 14:34:59 +0530 |
---|---|---|
committer | Catalin Marinas <[email protected]> | 2020-03-18 09:50:20 +0000 |
commit | 04ad99a0b160450ae615e41b839e444eccb5c99b (patch) | |
tree | d3fc69c95fc694a21c510f69de2a482df68a02cb /scripts/gdb/linux/timerlist.py | |
parent | 689eae42afd7a916634146edca38463769969184 (diff) |
arm64: unwind: strip PAC from kernel addresses
When we enable pointer authentication in the kernel, LR values saved to
the stack will have a PAC which we must strip in order to retrieve the
real return address.
Strip PACs when unwinding the stack in order to account for this.
When function graph tracer is used with patchable-function-entry then
return_to_handler will also have pac bits so strip it too.
Reviewed-by: Kees Cook <[email protected]>
Acked-by: Catalin Marinas <[email protected]>
Reviewed-by: James Morse <[email protected]>
Signed-off-by: Mark Rutland <[email protected]>
Signed-off-by: Kristina Martsenko <[email protected]>
[Amit: Re-position ptrauth_strip_insn_pac, comment]
Signed-off-by: Amit Daniel Kachhap <[email protected]>
Signed-off-by: Catalin Marinas <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/timerlist.py')
0 files changed, 0 insertions, 0 deletions