diff options
author | Mark Rutland <[email protected]> | 2022-09-13 11:17:30 +0100 |
---|---|---|
committer | Catalin Marinas <[email protected]> | 2022-09-16 12:17:03 +0100 |
commit | 0f2cb928a1547ae8f89e80a4b8df2c6c02ae5f96 (patch) | |
tree | 771bd30715de015374d8111cfc9e3eb5cfe7c1d2 /scripts/gdb/linux/utils.py | |
parent | 18906ff9af6517c20763ed63dab602a4150794f7 (diff) |
arm64: consistently pass ESR_ELx to die()
Currently, bug_handler() and kasan_handler() call die() with '0' as the
'err' value, whereas die_kernel_fault() passes the ESR_ELx value.
For consistency, this patch ensures we always pass the ESR_ELx value to
die(). As this is only called for exceptions taken from kernel mode,
there should be no user-visible change as a result of this patch.
For UNDEFINED exceptions, I've had to modify do_undefinstr() and its
callers to pass the ESR_ELx value. In all cases the ESR_ELx value had
already been read and was available.
Signed-off-by: Mark Rutland <[email protected]>
Cc: Mark Brown <[email protected]>
Cc: Alexandru Elisei <[email protected]>
Cc: Amit Daniel Kachhap <[email protected]>
Cc: James Morse <[email protected]>
Cc: Will Deacon <[email protected]>
Reviewed-by: Anshuman Khandual <[email protected]>
Reviewed-by: Mark Brown <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Catalin Marinas <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions