mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-11-01 15:08:21 +00:00
kcov: initial implementation
Implement a device (/dev/kcov) that exposes coverage info for the kernel. This will be especially useful for coverage-based fuzzing (e.g. syzkaller). Exclude a lot of functions which would crash/otherwise interfere in the coverage, including only processing coverage callbacks when not handling an irq.
This commit is contained in:
@@ -116,7 +116,7 @@ void arch_extracontext_save(extracontext_t *context) {
|
||||
}
|
||||
}
|
||||
|
||||
void arch_extracontext_load(extracontext_t *context) {
|
||||
KCOV_DISABLED void arch_extracontext_load(extracontext_t *context) {
|
||||
if (current_thread()->proc && current_thread()->proc->ldt)
|
||||
arch_gdt_set_ldt(current_thread()->proc->ldt, 0xffff);
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user