Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Jun 2016 03:12:52 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 210244] Logic bug in EFI GetMemoryMap usage
Message-ID:  <bug-210244-8@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D210244

            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@FreeBSD.org
          Reporter: bruce.cran@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 c=
ause
the map to become fragmented; this means a _second_ call to `BS->GetMemoryM=
ap`
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 does=
n't
change.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-210244-8>