Page MenuHomeFreeBSD

loader.efi: Be cautious about using GOPs
ClosedPublic

Authored by imp on Sat, Sep 19, 3:47 AM.
Tags
None
Referenced Files
F173564484: D59830.id187194.diff
Sat, Sep 26, 9:14 PM
F173557776: D59830.diff
Sat, Sep 26, 8:23 PM
F173553497: D59830.diff
Sat, Sep 26, 7:42 PM
Unknown Object (File)
Thu, Sep 24, 8:12 PM
Unknown Object (File)
Thu, Sep 24, 5:31 PM
Unknown Object (File)
Thu, Sep 24, 6:45 AM
Unknown Object (File)
Thu, Sep 24, 6:34 AM
Unknown Object (File)
Thu, Sep 24, 4:28 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.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.