Page MenuHomeFreeBSD

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

Authored by dumbbell on Oct 2 2023, 10:18 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, May 4, 2:43 PM
Unknown Object (File)
Wed, May 1, 12:47 AM
Unknown Object (File)
Wed, May 1, 12:47 AM
Unknown Object (File)
Mon, Apr 29, 3:01 AM
Unknown Object (File)
Mon, Apr 29, 12:14 AM
Unknown Object (File)
Thu, Apr 25, 10:29 PM
Unknown Object (File)
Thu, Apr 25, 12:43 AM
Unknown Object (File)
Thu, Apr 25, 12:42 AM
Subscribers

Details

Summary

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.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

sys/dev/vt/vt_core.c
1489

Extra blank line.

3117

Is this supposed to be part of this patch ?

dumbbell added inline comments.
sys/dev/vt/vt_core.c
1489

Removed extra blank line.

3117

Removed lines that were not supposed to be in the patch.

This revision is now accepted and ready to land.Nov 24 2023, 4:21 PM
This revision was automatically updated to reflect the committed changes.