mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-04 05:20:30 +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
Notes:
sideshowbarker
2024-07-17 05:15:52 +09:00
Author: https://github.com/FireFox317 Commit: https://github.com/SerenityOS/serenity/commit/8fe3c50b30 Pull-request: https://github.com/SerenityOS/serenity/pull/15714 Reviewed-by: https://github.com/gunnarbeutner
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue