diff options
author | Raghavendra Rao Ananta <[email protected]> | 2021-08-23 22:39:40 +0000 |
---|---|---|
committer | Marc Zyngier <[email protected]> | 2021-08-26 11:33:32 +0100 |
commit | 8ce8a6fce9bfd3fcabe230ad104e2caf08b2e58d (patch) | |
tree | 65c58566b453c6b2a6e3a72d7fa34ffe8bc41294 /lib/test_overflow.c | |
parent | 6e73bc90ec447b8fcec5fd22fa49e100f3b4f909 (diff) |
KVM: arm64: Trim guest debug exception handling
The switch-case for handling guest debug exception covers
all the debug exception classes, but functionally, doesn't
do anything with them other than ESR_ELx_EC_WATCHPT_LOW.
Moreover, even though handled well, the 'default' case
could be confusing from a security point of view, stating
that the guests' actions can potentially flood the syslog.
But in reality, the code is unreachable.
Hence, trim down the function to only handle the case with
ESR_ELx_EC_WATCHPT_LOW with a simple 'if' check.
Suggested-by: Marc Zyngier <[email protected]>
Signed-off-by: Raghavendra Rao Ananta <[email protected]>
Signed-off-by: Marc Zyngier <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions