diff options
author | Mark Rutland <[email protected]> | 2021-06-07 10:46:19 +0100 |
---|---|---|
committer | Will Deacon <[email protected]> | 2021-06-07 11:35:55 +0100 |
commit | afd05e28c9115d01f01d934962634789d069d3fe (patch) | |
tree | 8639534eec2519492aeede06ca7b7dba3537e9af /tools/perf/scripts/python/failed-syscalls-by-pid.py | |
parent | ec841aab8d3cdd23decdcf0c47292e14627446c1 (diff) |
arm64: entry: fold el1_inv() into el1h_64_sync_handler()
An unexpected synchronous exception from EL1h could happen at any time,
and for robustness we should treat this as an NMI, making minimal
assumptions about the context the exception was taken from.
Currently el1_inv() assumes we can use enter_from_kernel_mode(), and
also assumes that we should inherit the original DAIF value. Neither of
these are desireable when we take an unexpected exception. Further,
after el1_inv() calls __panic_unhandled(), the remainder of the function
is unreachable, and therefore superfluous.
Let's address this and simplify things by having el1h_64_sync_handler()
call __panic_unhandled() directly, without any of the redundant logic.
Signed-off-by: Mark Rutland <[email protected]>
Acked-by: Catalin Marinas <[email protected]>
Acked-by: Marc Zyngier <[email protected]>
Reported-by: Joey Gouly <[email protected]>
Cc: James Morse <[email protected]>
Cc: Will Deacon <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Will Deacon <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/failed-syscalls-by-pid.py')
0 files changed, 0 insertions, 0 deletions