All of lore.kernel.org
 help / color / mirror / Atom feed
* mm: Use phys_addr_t for reserve_bootmem_region arguments
@ 2016-05-17 13:20 ` Stefan Bader
  0 siblings, 0 replies; 3+ messages in thread
From: Stefan Bader @ 2016-05-17 13:20 UTC (permalink / raw)
  To: linux-mm, linux-kernel
  Cc: kernel-team, Mel Gorman, Ingo Molnar, Andrew Morton

Re-posting to a hopefully better suited audience. I hit this problem
when trying to boot a i386 dom0 (PAE enabled) on a 64bit Xen host using
a config which would result in a reserved memory range starting at 4MB.
Due to the usage of unsigned long as arguments for start address and
length, this would wrap and actually mark the lower memory range staring
from 0 as reserved. Between kernel version 4.2 and 4.4 this somehow boots
but starting with 4.4 the result is a panic and reboot.

Not sure this special Xen case is the only one affected, but in general
it seems more correct to use phys_addr_t as the type for start and end
as that is the type used in the memblock region definitions and those
are 64bit (at least with PAE enabled).

-Stefan

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

end of thread, other threads:[~2016-05-17 14:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-17 13:20 mm: Use phys_addr_t for reserve_bootmem_region arguments Stefan Bader
2016-05-17 13:20 ` Stefan Bader
2016-05-17 14:14 ` Stefan Bader

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.