1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 12:47:35 +00:00

Kernel: Expose sysctl 'ubsan_is_deadly' to panic the Kernel on UB

This makes it easier to find UB, for example when fuzzing the Kernel.

This can be enabled by default, thanks to @boricj's work in
32e1354b9b.
This commit is contained in:
Ben Wiederhake 2021-03-04 22:07:23 +01:00 committed by Andreas Kling
parent a0362d827c
commit 00131d244e
3 changed files with 14 additions and 1 deletions

View file

@ -30,6 +30,8 @@
namespace Kernel::UBSanitizer {
extern bool g_ubsan_is_deadly;
typedef void* ValueHandle;
class SourceLocation {