From 8fe3c50b3044519afeea076e76bac43cffe66bbb Mon Sep 17 00:00:00 2001 From: Timon Kruiper Date: Thu, 20 Oct 2022 12:18:24 +0200 Subject: [PATCH] Kernel/aarch64: Force kmalloc to return 16 byte aligned pointers KUBSAN complained about a misaligned address when trying to construct the Thread class. --- Kernel/Heap/Heap.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Kernel/Heap/Heap.h b/Kernel/Heap/Heap.h index ef50d23636..5724d7e918 100644 --- a/Kernel/Heap/Heap.h +++ b/Kernel/Heap/Heap.h @@ -20,7 +20,7 @@ class Heap { struct AllocationHeader { size_t allocation_size_in_chunks; -#if ARCH(X86_64) +#if ARCH(X86_64) || ARCH(AARCH64) // FIXME: Get rid of this somehow size_t alignment_dummy; #endif