summaryrefslogtreecommitdiff
path: root/Kernel/UBSanitizer.cpp
AgeCommit message (Collapse)Author
2021-03-07Kernel: Expose sysctl 'ubsan_is_deadly' to panic the Kernel on UBBen Wiederhake
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.
2021-02-24Kernel: Improve KUBSAN logging for "type mismatch" errorsAndreas Kling
Parse out some more information about the error from the data we get.
2021-02-11KUBSAN: Add nearly all missing -fsanitize handlers (#5254)Hendiadyoin1
2021-02-07Kernel: KUBSAN implementation of returns-nonnull-attributeBrian Gianforcaro
This didn't find anything in the current source.
2021-02-06Kernel: And some more KUBSAN checks :^)Andreas Kling
Here comes a few more: * enum * object-size * vptr
2021-02-06Kernel: Implement some more KUBSAN checks :^)Andreas Kling
This patch enables the following -fsanitize sub-options: * bounds * bounds-strict * integer-divide-by-zero * return * shift * shift-base * shift-exponent
2021-02-05Kenrel: Implement two more KUBSAN checksAndreas Kling
This patch adds the following UndefinedBehaviorSanitizer sub-options: * signed-integer-overflow * vla-bound
2021-02-05Kernel: KUBSAN! (Kernel Undefined Behavior SANitizer) :^)Andreas Kling
We now build the kernel with partial UBSAN support. The following -fsanitize sub-options are enabled: * nonnull-attribute * bool If the kernel detects UB at runtime, it will now print a debug message with a stack trace. This is very cool! I'm leaving it on by default for now, but we'll probably have to re-evaluate this as more options are enabled and slowdown increases.