mirror of
https://github.com/SerenityOS/serenity
synced 2024-09-06 08:56:40 +00:00
![]() To allow for easy mapping between the kernel virtual addresses and KASAN shadow memory, we map shadow memory at the very end of the virtual range, so that we can index into it using just an offset. To ensure this range is free when needed, we restrict the possible KASLR range when KASAN is enabled to make sure we don't use the end of the virtual range. This fixes the random kernel panics that could occur when KASAN is enabled, if the kernel was randomly placed at the very end of the virtual range. |
||
---|---|---|
.. | ||
boot.S | ||
CMakeLists.txt | ||
init.cpp | ||
linker.ld | ||
multiboot.S | ||
Prekernel.h | ||
UBSanitizer.cpp |