Kernel/aarch64: Force kmalloc to return 16 byte aligned pointers

KUBSAN complained about a misaligned address when trying to construct
the Thread class.
This commit is contained in:
Timon Kruiper 2022-10-20 12:18:24 +02:00 committed by Gunnar Beutner
parent 179cb7b2d0
commit 8fe3c50b30
Notes: sideshowbarker 2024-07-17 05:15:52 +09:00

View file

@ -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