Page MenuHomeFreeBSD

loader.efi: Be cautious about using GOPs
ClosedPublic

Authored by imp on Sat, Sep 19, 3:47 AM.
Tags
None
Referenced Files
F174402411: D59830.id.diff
Fri, Oct 2, 10:57 PM
Unknown Object (File)
Fri, Oct 2, 5:59 AM
Unknown Object (File)
Thu, Oct 1, 8:19 PM
Unknown Object (File)
Thu, Oct 1, 10:07 AM
Unknown Object (File)
Thu, Oct 1, 8:01 AM
Unknown Object (File)
Thu, Oct 1, 7:38 AM
Unknown Object (File)
Wed, Sep 30, 8:18 AM
Unknown Object (File)
Wed, Sep 30, 1:46 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 77077
Build 73960: arc lint + arc unit

Event Timeline

imp requested review of this revision.Sat, Sep 19, 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.