Reject zero depth and framebuffer geometry exceeding its stride or allocated buffer. Avoid replacing the active console with a framebuffer that can panic during VT rendering.
Details
Details
Tested on one Raspberry Pi 5 Model B 8GB (BCM2712 D0, revision code 0xd04171), with firmware configuration D61534, release image change D61535, SDHCI support D61541, clock fix D61378, and the companion vcbus change.
Built arm64 GENERIC kernel/modules. Without the guard, the driver reported 1920x1080 at 32bpp with stride 3840 and size 4147200, then panicked in vt_fb_setpixel. With the geometry guard alone, the driver rejected the inconsistent framebuffer and preserved the EFI framebuffer.
FreeBSD booted through interactive UART login, and console output on an HDMI monitor was confirmed.
Hardware validation was limited to this board.
Related reviews:
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Skipped - Unit
Tests Skipped