https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=210244

            Bug ID: 210244
           Summary: Logic bug in EFI GetMemoryMap usage
           Product: Base System
           Version: 10.3-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: [email protected]
          Reporter: [email protected]

There are a couple of places in the sys/boot/efi tree that calls
`BS->GetMemoryMap`. There appears to be a problem with the way it's called
though, due to a corner case.

In some cases, allocating the memory requires to store the memory map can cause
the map to become fragmented; this means a _second_ call to `BS->GetMemoryMap`
can also return EFI_BUFFER_TOO_SMALL. One workaround is to call it in a loop
(with a max of, say 10 times) until the memory needed to store the map doesn't
change.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[email protected]"

Reply via email to