mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 04:57:45 +00:00
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:
parent
179cb7b2d0
commit
8fe3c50b30
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ class Heap {
|
||||||
|
|
||||||
struct AllocationHeader {
|
struct AllocationHeader {
|
||||||
size_t allocation_size_in_chunks;
|
size_t allocation_size_in_chunks;
|
||||||
#if ARCH(X86_64)
|
#if ARCH(X86_64) || ARCH(AARCH64)
|
||||||
// FIXME: Get rid of this somehow
|
// FIXME: Get rid of this somehow
|
||||||
size_t alignment_dummy;
|
size_t alignment_dummy;
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue