mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 03:07:43 +00:00
Kernel: Add initial basic support for KASAN
This commit adds minimal support for compiler-instrumentation based memory access sanitization. Currently we only support detection of kmalloc redzone accesses, and kmalloc use-after-free accesses. Support for inline checks (for improved performance), and for stack use-after-return and use-after-return detection is left for future PRs.
This commit is contained in:
parent
7ad7ae7000
commit
f7a1f28d7f
10 changed files with 538 additions and 63 deletions
|
@ -243,6 +243,10 @@ private:
|
|||
void initialize_physical_pages();
|
||||
void register_reserved_ranges();
|
||||
|
||||
#ifdef HAS_ADDRESS_SANITIZER
|
||||
void initialize_kasan_shadow_memory();
|
||||
#endif
|
||||
|
||||
void unregister_kernel_region(Region&);
|
||||
|
||||
void protect_kernel_image();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue