HomeFreeBSD

vt(4): Skip vt_flush() for nested panics

Description

vt(4): Skip vt_flush() for nested panics

[Why]
If there is a problem with DRM drivers or in their integration with
vt(4) and displaying something on the console triggers a panic, there is
a high chance that displaying that panic will trigger another one,
recursively.

[How]
If vt_flush() is called and it detects is is called resursively from
another panic, it return immediately, doing nothing, to avoid the risk
of triggering another panic.

Reviewed by: manu
Approved by: manu
Differential Revision: https://reviews.freebsd.org/D42056

(cherry picked from commit 049e3fba04e82f840cc43080edade0ed415fee72)

Details

Provenance
dumbbellAuthored on Nov 24 2023, 5:30 PM
wulfCommitted on Feb 17 2024, 8:58 PM
Reviewer
manu
Differential Revision
D42056: vt(4): Skip vt_flush() for nested panics
Parents
rGbb01efa6f87a: linuxkpi: Fix uses of `pmap_change_attr()`
Branches
Unknown
Tags
Unknown