From 06919d189b4216f7476620fbbb862b85d5330278 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Tue, 23 Feb 2021 19:32:23 +0100 Subject: [PATCH] Kernel: Enable three missing KUBSAN options :^) With the kernel command line issue fixed, we can now enable these KUBSAN options without getting triple faults on startup: * alignment * null * pointer-overflow --- Kernel/CMakeLists.txt | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Kernel/CMakeLists.txt b/Kernel/CMakeLists.txt index 84e4830979..cd8bcf5dd7 100644 --- a/Kernel/CMakeLists.txt +++ b/Kernel/CMakeLists.txt @@ -291,10 +291,9 @@ set(KERNEL_FSANITIZE_FLAGS "enum" "vptr" "builtin" - # following flags will cause triple faults: - # "alignment" - # "null" - # "pointer-overflow" + "alignment" + "null" + "pointer-overflow" ) if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")