Page MenuHomeFreeBSD

loader.efi: Be cautious about using GOPs
ClosedPublic

Authored by imp on Sep 19 2026, 3:47 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Oct 17, 10:52 AM
Unknown Object (File)
Sat, Oct 17, 9:00 AM
Unknown Object (File)
Thu, Oct 15, 4:20 PM
Unknown Object (File)
Tue, Oct 13, 4:01 PM
Unknown Object (File)
Tue, Oct 13, 1:31 AM
Unknown Object (File)
Mon, Oct 5, 5:53 AM
Unknown Object (File)
Fri, Oct 2, 10:57 PM
Unknown Object (File)
Fri, Oct 2, 5:59 AM

Details

Summary

When we're searching for the EFI_GRAPHICS_OUTPUT_PROTOCOL_GUID (GOPs) to
use, skip any whose Mode or Mode->Info pointers are NULL. The spec
requires these to be non-null, however, some firmwares seem to fail to
populate the Info when, for example, a monitor is not present. Work
around these bugs by skipping any GOPs with bad pointers.

PR: 288900
Sponsored by: Netflix

Diff Detail

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

Event Timeline

imp requested review of this revision.Sep 19 2026, 3:47 AM

Seems odd to me that this loader.efi / GOP related change is in the middle of a stack of nmve related updates: it looks completely independent. Did the wrong change show up in the stack?

Seems odd to me that this loader.efi / GOP related change is in the middle of a stack of nmve related updates: it looks completely independent. Did the wrong change show up in the stack?

Too many branches, so I just added to the one I was working on since the alternative was that it would likely get lost.

This revision was not accepted when it landed; it landed in state Needs Review.Thu, Sep 24, 7:24 AM
This revision was automatically updated to reflect the committed changes.