From e11f716666bf4dbd826b5639c485b4090095f3d5 Mon Sep 17 00:00:00 2001 From: Alexander Potapenko Date: Thu, 7 Aug 2025 14:59:55 +0200 Subject: executor: arm64: syzos: fix the constraints in gicv3_cpu_init() Somehow we were using an input constraint instead of an output one in the assembly code performing a read of ICC_SRE_EL1 into a GP register. --- executor/common_kvm_arm64_syzos.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'executor') diff --git a/executor/common_kvm_arm64_syzos.h b/executor/common_kvm_arm64_syzos.h index 54d6665f0..0253b6b96 100644 --- a/executor/common_kvm_arm64_syzos.h +++ b/executor/common_kvm_arm64_syzos.h @@ -571,8 +571,7 @@ GUEST_CODE static void gicv3_cpu_init(uint32 cpu) // Enable the GIC system register (ICC_*) access. uint64 icc_sre_el1 = 0; asm volatile("mrs %0, " ICC_SRE_EL1 - : - : "r"(icc_sre_el1)); + : "=r"(icc_sre_el1)); icc_sre_el1 |= ICC_SRE_EL1_SRE; asm volatile("msr " ICC_SRE_EL1 ", %0" : -- cgit mrf-deployment