aboutsummaryrefslogtreecommitdiffstats
path: root/sys/linux/test
diff options
context:
space:
mode:
authorAlexander Potapenko <glider@google.com>2024-08-07 16:57:43 +0200
committerAlexander Potapenko <glider@google.com>2024-08-07 16:00:37 +0000
commit58a20e60bf226392db3d88eb36503b9cc711a153 (patch)
tree48c68ef9c28f81ca14e717b11899faba571deb57 /sys/linux/test
parentb92bfae57e0bcabedd26d3382121a2754c9af3c0 (diff)
executor: arm64: add SYZOS_API_HVC
Make the necessary changes to support HVC in addition to SMC. These two may subtly differ, so they are handled separately.
Diffstat (limited to 'sys/linux/test')
-rw-r--r--sys/linux/test/syz_kvm_setup_cpu_arm64-smc7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/linux/test/syz_kvm_setup_cpu_arm64-smc b/sys/linux/test/syz_kvm_setup_cpu_arm64-smc
index 1d319494d..cb577a07a 100644
--- a/sys/linux/test/syz_kvm_setup_cpu_arm64-smc
+++ b/sys/linux/test/syz_kvm_setup_cpu_arm64-smc
@@ -11,5 +11,10 @@ r1 = ioctl$KVM_CREATE_VM(r0, AUTO, 0x0)
ioctl$KVM_SET_DEVICE_ATTR_vm(r1, AUTO, &AUTO=@attr_arm64={0x0, 0x0, 0x0, &AUTO={0xef000000, 0x1000, 0x2, ""}})
r2 = ioctl$KVM_CREATE_VCPU(r1, AUTO, 0x0)
-syz_kvm_setup_cpu$arm64(r1, r2, &(0x7f0000e8a000/0x18000)=nil, &AUTO=[{0x0, &AUTO=[@smc={AUTO, AUTO, {0xef000000, [0x0, 0x1, 0x2, 0x3, 0x4]}}], AUTO}], 0x1, 0x0, 0x0, 0x0)
+syz_kvm_setup_cpu$arm64(r1, r2, &(0x7f0000e8a000/0x18000)=nil, &AUTO=[{0x0, &AUTO=[@smc={AUTO, AUTO, {0xef000000, [0x0, 0x1, 0x2, 0x3, 0x4]}}, @hvc={AUTO, AUTO, {0xef000000, [0x0, 0x1, 0x2, 0x3, 0x4]}}], AUTO}], 0x1, 0x0, 0x0, 0x0)
+
+#
+# Run twice, because both SMC and HVC will exit.
+#
+ioctl$KVM_RUN(r2, AUTO, 0x0)
ioctl$KVM_RUN(r2, AUTO, 0x0)