| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
Otherwise, reports might go by unnoticed.
Prodded by and ok visa@
|
|
|
|
|
|
|
| |
instead of task(9). Undefined behavior can potentially be present in any
context and calling task_add() isn't always safe.
ok visa@
|
| |
|
|
|
|
| |
sys/dev/pci/drm/amd/display/dc/calcs/dcn_calc_auto.c
|
|
|
|
|
|
|
|
|
|
|
|
| |
kernel. kubsan reports findings using printf() and assuming that calling
printf() is safe in all contexts can be problematic. Instead, defer
reporting of findings to the systq task queue.
Storage for findings is allocated early in the boot process in order to
catch potential UB during boot. The same findings are reported once the
task queue subsystem has been initialized.
Feedback from kettenis@ and ok mpi@
|
| |
|
| |
|
| |
|
|
|
|
| |
long. Instead, use everything after the first /sys/ segment as the path.
|
|
|
|
|
|
|
|
| |
__attribute__((nonnull)); which the undefined behavior sanitizer in
clang is aware of. A new handler is therefore needed in order to compile
a kernel with kubsan enabled.
ok visa@
|
| |
|
|
capable of detecting undefined behavior at runtime and all findings are
printed to the system console, including the offending line in the
source code.
kubsan is limited to architectures using Clang as their default compiler
and is not enabled by default.
Derived from the NetBSD implementation.
ok kettenis@ visa@
|