diff options
| author | Alexander Potapenko <glider@google.com> | 2024-11-18 11:19:14 +0100 |
|---|---|---|
| committer | Alexander Potapenko <glider@google.com> | 2024-11-26 11:12:47 +0000 |
| commit | 26cf63663eb59ad18dd3d635de7698a91ba24f2a (patch) | |
| tree | 19b0d746963c33779e3dfac6eead551b17636747 /executor | |
| parent | ee69c8253b97c2faef05d0d4245cb7aa8155f4c6 (diff) | |
executor: arm64: use KVM_PAGE_SIZE instead of 0x1000
Diffstat (limited to 'executor')
| -rw-r--r-- | executor/common_kvm_arm64.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/executor/common_kvm_arm64.h b/executor/common_kvm_arm64.h index 6729864bd..bb47c88f4 100644 --- a/executor/common_kvm_arm64.h +++ b/executor/common_kvm_arm64.h @@ -212,7 +212,7 @@ struct kvm_syz_vm { // This page will be leaked, its address will be used as an opaque resource ID. static void* leaky_alloc_page() { - return mmap(NULL, 0x1000, PROT_READ | PROT_WRITE, MAP_ANON | MAP_PRIVATE, -1, 0); + return mmap(NULL, KVM_PAGE_SIZE, PROT_READ | PROT_WRITE, MAP_ANON | MAP_PRIVATE, -1, 0); } static long syz_kvm_setup_syzos_vm(volatile long a0) |
