summaryrefslogtreecommitdiff
path: root/Kernel/UBSanitizer.h
AgeCommit message (Collapse)Author
2021-04-22Everything: Move to SPDX license identifiers in all files.Brian Gianforcaro
SPDX License Identifiers are a more compact / standardized way of representing file license information. See: https://spdx.dev/resources/use/#identifiers This was done with the `ambr` search and replace tool. ambr --no-parent-ignore --key-from-file --rep-from-file key.txt rep.txt *
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-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.