diff options
| author | Alexander Potapenko <glider@google.com> | 2024-07-30 17:58:38 +0200 |
|---|---|---|
| committer | Alexander Potapenko <glider@google.com> | 2024-08-05 14:51:16 +0000 |
| commit | f72939012d67da448cb74de9670541c0d0e09547 (patch) | |
| tree | 48cf8dabd2179073612ea34d23d27fdd62fcc454 /executor/common_kvm_arm64_syzos.h | |
| parent | 8bd1b2a10a73fcf6fcc384cb9caf19123952a54c (diff) | |
executor: arm64: kvm: exit from guest_main() using guest_uexit()
Call guest_uexit(-1) to break from ioctl(KVM_RUN), otherwise the VM
will be running infinitely until it is killed.
Diffstat (limited to 'executor/common_kvm_arm64_syzos.h')
| -rw-r--r-- | executor/common_kvm_arm64_syzos.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/executor/common_kvm_arm64_syzos.h b/executor/common_kvm_arm64_syzos.h index 3df3a7d75..a5a7a1a0c 100644 --- a/executor/common_kvm_arm64_syzos.h +++ b/executor/common_kvm_arm64_syzos.h @@ -62,6 +62,7 @@ GUEST_CODE static void guest_main(uint64 size) addr += cmd->size; size -= cmd->size; }; + guest_uexit((uint64)-1); } GUEST_CODE static void guest_execute_code(uint32* insns, uint64 size) |
