aboutsummaryrefslogtreecommitdiffstats
path: root/executor/common_kvm_arm64.h
diff options
context:
space:
mode:
author6eanut <jiakaiPeanut@gmail.com>2026-01-28 03:57:17 +0000
committerAlexander Potapenko <glider@google.com>2026-01-28 13:13:38 +0000
commitbb732b9882d4a11b56b97fcf41ce9625d82171c9 (patch)
tree030bdffdb885cfa98f8e94bb887814cd6c70acc7 /executor/common_kvm_arm64.h
parent7ae915d6b6e1a4283131f8fc61818c88f3ab160e (diff)
executor, tools: rename SyzOS to SYZOS
Diffstat (limited to 'executor/common_kvm_arm64.h')
-rw-r--r--executor/common_kvm_arm64.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/executor/common_kvm_arm64.h b/executor/common_kvm_arm64.h
index 58678a9df..6442cb491 100644
--- a/executor/common_kvm_arm64.h
+++ b/executor/common_kvm_arm64.h
@@ -70,8 +70,8 @@ static void vm_set_user_memory_region(int vmfd, uint32 slot, uint32 flags, uint6
#define ADRP_OPCODE 0x90000000
#define ADRP_OPCODE_MASK 0x9f000000
-// Code loading SyzOS into guest memory does not handle data relocations (see
-// https://github.com/google/syzkaller/issues/5565), so SyzOS will crash soon after encountering an
+// Code loading SYZOS into guest memory does not handle data relocations (see
+// https://github.com/google/syzkaller/issues/5565), so SYZOS will crash soon after encountering an
// ADRP instruction. Detect these instructions to catch regressions early.
// The most common reason for using data relocaions is accessing global variables and constants.
// Sometimes the compiler may choose to emit a read-only constant to zero-initialize a structure
@@ -81,7 +81,7 @@ static void validate_guest_code(void* mem, size_t size)
uint32* insns = (uint32*)mem;
for (size_t i = 0; i < size / 4; i++) {
if ((insns[i] & ADRP_OPCODE_MASK) == ADRP_OPCODE)
- fail("ADRP instruction detected in SyzOS, exiting");
+ fail("ADRP instruction detected in SYZOS, exiting");
}
}
@@ -89,7 +89,7 @@ static void install_syzos_code(void* host_mem, size_t mem_size)
{
size_t size = (char*)&__stop_guest - (char*)&__start_guest;
if (size > mem_size)
- fail("SyzOS size exceeds guest memory");
+ fail("SYZOS size exceeds guest memory");
memcpy(host_mem, &__start_guest, size);
validate_guest_code(host_mem, size);
}