CVSROOT: /cvs Module name: src Changes by: an...@cvs.openbsd.org 2019/06/20 08:55:22
Modified files: sys/kern : init_main.c subr_kubsan.c Log message: Undefined behavior (UB) can potentially be present anywhere in the 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@