Files
freebsd-src/stand
Hayzam Sherif 1cd9aa5cbb loader: Handle unavailable VBE during mode lookup
When VBE is unavailable, vbe_init() frees the controller information
buffer and sets vbe to NULL. Console initialization still calls
vbe_default_mode(), which reaches an unguarded memset() in
vbe_find_mode_xydm(). Under BTX, the null write can overwrite the
loader's own code and cause a later protection fault.

Guard vbe_default_mode() with vbe_check(), as the other public
functions in vbe.c already do, and return 0 to indicate that no
graphics mode is available. This allows console initialization to
continue on headless systems.

Reviewed by:	rmoeller, imp
MFC ater:	2 weeks
Differential Revision:	https://reviews.freebsd.org/D61145
2026-11-04 19:41:16 +00:00
..
2026-09-08 04:05:26 +01:00
2026-01-31 19:27:37 -05:00
2026-10-03 23:17:08 -06:00
2026-09-01 10:26:26 -06:00
2026-10-03 23:17:08 -06:00
2026-10-03 23:17:08 -06:00
2023-11-07 09:57:32 -05:00
2023-08-16 11:55:03 -06:00
2023-08-16 11:55:03 -06:00
2026-04-17 20:41:43 -06:00