[Bug 210244] Logic bug in EFI GetMemoryMap usage

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Jun 13 03:12:52 UTC 2016


            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: freebsd-bugs at FreeBSD.org
          Reporter: bruce.cran at gmail.com

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

You are receiving this mail because:
You are the assignee for the bug.

More information about the freebsd-bugs mailing list