mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 17:10:23 +00:00
bbceb155ce
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 |