aboutsummaryrefslogtreecommitdiffstats
path: root/executor/common_kvm_386.h
diff options
context:
space:
mode:
authorAlexander Potapenko <glider@google.com>2025-09-17 12:16:39 +0200
committerAlexander Potapenko <glider@google.com>2025-09-19 08:38:14 +0000
commit2a4c6c0dbed891610b6d10f663c797e9e80d1981 (patch)
tree505aabccf61b05e5199a782da517b51852596665 /executor/common_kvm_386.h
parentbc3f649c1cdcc44bee1e351e1326a9072393736a (diff)
executor: sys/linux/: pkg/runtest: pkg/vminfo: add syz_kvm_assert_syzos_kvm_exit
Implement a pseudo-syscall to check the value of kvm_run.exit_reason
Diffstat (limited to 'executor/common_kvm_386.h')
-rw-r--r--executor/common_kvm_386.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/executor/common_kvm_386.h b/executor/common_kvm_386.h
index 77ca4ce0e..f1b634150 100644
--- a/executor/common_kvm_386.h
+++ b/executor/common_kvm_386.h
@@ -24,6 +24,13 @@ static long syz_kvm_assert_syzos_uexit(volatile long a0, volatile long a1)
}
#endif
+#if SYZ_EXECUTOR || __NR_syz_kvm_assert_syzos_uexit
+static long syz_kvm_assert_syzos_kvm_exit(volatile long a0, volatile long a1)
+{
+ return 0;
+}
+#endif
+
#if SYZ_EXECUTOR || __NR_syz_kvm_setup_cpu
static volatile long syz_kvm_setup_cpu(volatile long a0, volatile long a1, volatile long a2, volatile long a3, volatile long a4, volatile long a5, volatile long a6, volatile long a7)
{