[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [Xen-devel] [patch] PFN_PHYS PAE overflow (fixes bug 242)


  • To: "Scott Parish" <srparish@xxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: "Ian Pratt" <m+Ian.Pratt@xxxxxxxxxxxx>
  • Date: Fri, 14 Oct 2005 23:55:03 +0100
  • Delivery-date: Fri, 14 Oct 2005 22:52:26 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • Thread-index: AcXQ7b99TKzImb/fSEe5Yb/7btIKRAAJFiUg
  • Thread-topic: [Xen-devel] [patch] PFN_PHYS PAE overflow (fixes bug 242)

 
> machine_specific_memory_setup() makes the following call to 
> setup e820:
> 
>     add_memory_region(0, PFN_PHYS(max_pfn), E820_RAM);
> 
> Since max_pfn is (rightly) an unsigned long, we overflow for 
> the current definition of PFN_PHYS. Attached is my preferred 
> solution as it will hopefully avoid similar situations that 
> may come up in the future.

Good catch!

Ian

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.