summaryrefslogtreecommitdiff
path: root/Kernel/UBSanitizer.h
diff options
context:
space:
mode:
authorBen Wiederhake <BenWiederhake.GitHub@gmx.de>2021-03-04 22:07:23 +0100
committerAndreas Kling <kling@serenityos.org>2021-03-07 17:31:25 +0100
commit00131d244ed4fb7302a4c9277ba0be04e705fc64 (patch)
treeacf41b82ec4987647a9ece982a4c00c8673ecfe2 /Kernel/UBSanitizer.h
parenta0362d827cd5c1bbda5c19335063d9d9bd6adb8e (diff)
downloadserenity-00131d244ed4fb7302a4c9277ba0be04e705fc64.zip
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 32e1354b9b0050dd2920c8506cef2841789e14df.
Diffstat (limited to 'Kernel/UBSanitizer.h')
-rw-r--r--Kernel/UBSanitizer.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Kernel/UBSanitizer.h b/Kernel/UBSanitizer.h
index 4031139b63..d91231f8b8 100644
--- a/Kernel/UBSanitizer.h
+++ b/Kernel/UBSanitizer.h
@@ -30,6 +30,8 @@
namespace Kernel::UBSanitizer {
+extern bool g_ubsan_is_deadly;
+
typedef void* ValueHandle;
class SourceLocation {