All of lore.kernel.org
 help / color / mirror / Atom feed
* calculation overflow in grub_mm_init_region
@ 2013-08-29 17:26 Leif Lindholm
  2013-09-10 12:13 ` calculation overflow in grub_mm_init_region (patch) Leif Lindholm
  0 siblings, 1 reply; 8+ messages in thread
From: Leif Lindholm @ 2013-08-29 17:26 UTC (permalink / raw)
  To: grub-devel

When allocating memory for the heap on ARMv7 UEFI, the init code
pretty much just allocates a chunk from the top of available RAM.

This means that when grub_mm_init_region is called for a region
extending to the top of the 32-bit address space, addr + size == 0.
However, this is not taken into account by arithmetic in this
function, causing Grub to fail on one of my platforms[1] before
"Welcome to GRUB".

Having some trouble getting my head around the grub_mm_init_region
code right now (where is grub_mm_base initialised?), so don't have
a patch.

/
    Leif

[1] Versatile Express V2P-CA15_A7, also known as TC2, has 2GB of RAM
    starting at 0x80000000.  


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2013-09-11 17:02 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-29 17:26 calculation overflow in grub_mm_init_region Leif Lindholm
2013-09-10 12:13 ` calculation overflow in grub_mm_init_region (patch) Leif Lindholm
2013-09-10 21:46   ` Seth Goldberg
2013-09-10 22:36     ` Leif Lindholm
2013-09-10 22:39       ` Leif Lindholm
2013-09-11 17:01       ` Seth Goldberg
2013-09-11  1:00   ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-09-11  6:43     ` Leif Lindholm

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.