diff options
author | Ilya Leoshkevich <[email protected]> | 2023-07-25 16:37:17 +0200 |
---|---|---|
committer | Janosch Frank <[email protected]> | 2023-08-28 09:24:19 +0000 |
commit | 74a439ef7b67d89d29ec7485c3aeca20a64449c5 (patch) | |
tree | aaade94674733cd89121d0fc19e05d22123b3b73 /lib/test_fortify/write_overflow-strncpy-src.c | |
parent | 16631c42e6ff4f5acf30998fda6c2ea09d1adbfe (diff) |
KVM: s390: interrupt: Fix single-stepping into program interrupt handlers
Currently, after single-stepping an instruction that generates a
specification exception, GDB ends up on the instruction immediately
following it.
The reason is that vcpu_post_run() injects the interrupt and sets
KVM_GUESTDBG_EXIT_PENDING, causing a KVM_SINGLESTEP exit. The
interrupt is not delivered, however, therefore userspace sees the
address of the next instruction.
Fix by letting the __vcpu_run() loop go into the next iteration,
where vcpu_pre_run() delivers the interrupt and sets
KVM_GUESTDBG_EXIT_PENDING.
Reviewed-by: David Hildenbrand <[email protected]>
Signed-off-by: Ilya Leoshkevich <[email protected]>
Reviewed-by: Claudio Imbrenda <[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