diff options
author | Ilya Leoshkevich <[email protected]> | 2023-07-25 16:37:19 +0200 |
---|---|---|
committer | Janosch Frank <[email protected]> | 2023-08-28 09:24:20 +0000 |
commit | 1ad1fa820e6424ae75d3d9f59774e40c9c7ec1e5 (patch) | |
tree | 615f046b44d9f358f3452cc4dbaac541c0347280 /lib/test_fortify/write_overflow-strncpy-src.c | |
parent | ba853a4e1c7addc631df55535bf0b04c62dc79d8 (diff) |
KVM: s390: interrupt: Fix single-stepping userspace-emulated instructions
Single-stepping a userspace-emulated instruction that generates an
interrupt causes GDB to land on the instruction following it instead of
the respective interrupt handler.
The reason is that after arranging a KVM_EXIT_S390_SIEIC exit,
kvm_handle_sie_intercept() calls kvm_s390_handle_per_ifetch_icpt(),
which sets KVM_GUESTDBG_EXIT_PENDING. This bit, however, is not
processed immediately, but rather persists until the next ioctl(),
causing a spurious single-step exit.
Fix by clearing this bit in ioctl().
Reviewed-by: David Hildenbrand <[email protected]>
Reviewed-by: Claudio Imbrenda <[email protected]>
Signed-off-by: Ilya Leoshkevich <[email protected]>
Message-ID: <[email protected]>
Signed-off-by: Claudio Imbrenda <[email protected]>
Signed-off-by: Janosch Frank <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions