mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:27:45 +00:00
Kernel: Print KUBSAN backtrace to screen if KUBSAN is deadly
This commit is contained in:
parent
8eb01c0b11
commit
c4f60844c5
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ static void print_location(const SourceLocation& location)
|
|||
critical_dmesgln("KUBSAN: in unknown file");
|
||||
else
|
||||
critical_dmesgln("KUBSAN: at {}, line {}, column: {}", location.filename(), location.line(), location.column());
|
||||
dump_backtrace();
|
||||
dump_backtrace(g_ubsan_is_deadly ? PrintToScreen::Yes : PrintToScreen::No);
|
||||
if (g_ubsan_is_deadly) {
|
||||
critical_dmesgln("UB is configured to be deadly, halting the system.");
|
||||
Processor::halt();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue