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

Re: [Xen-devel] Bug in smpboot.c?


  • To: "John McDermott (U.S. Navy Employee)" <john.mcdermott@xxxxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: Keir Fraser <keir.xen@xxxxxxxxx>
  • Date: Thu, 09 Jun 2011 23:09:32 +0100
  • Cc:
  • Delivery-date: Thu, 09 Jun 2011 15:11:35 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=user-agent:date:subject:from:to:message-id:thread-topic :thread-index:in-reply-to:mime-version:content-type :content-transfer-encoding; b=BRVSrbf72gKkrX93F2L6SrvTogKxVyUxHWK3mih7kQ/6qMpK50Jna08l4zt8FGjKTw u/W5zvIUbbJBPkU4C2AgqIougOnBBew8NEzAZ85tlHLxCSZJwg7tJg9oVUVCjKeQA0IN mtHzi11MhP6BxdIFfkQi6zDKqdAlTHum60iVU=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • Thread-index: Acwm8ei0Bw+DOsTeG0qq3AI37qSa+Q==
  • Thread-topic: [Xen-devel] Bug in smpboot.c?

On 09/06/2011 16:49, "John McDermott (U.S. Navy Employee)"
<john.mcdermott@xxxxxxxxxxxx> wrote:

> Xen Developers,
> 
> In C function cpu_add(), in xen/arch/x86/smpboot.c, if acpi_id ==
> MAX_MADT_ENTRIES, won't this write past the end of array
> x86_acpiid_toapicid[MAX_MADT_ENTRIES]? I am looking at xen-unstable. It looks
> like the guard is not catching this 1 case?

Looks like it.  Also the check against MAX_APICS, and the pxm value against
256, are all similarly off by one. Thanks for spotting it!

 -- Keir

> Sincerely,
> 
> John McDermott
> ----
> What is the formal meaning of the one-line program
> #include "/dev/tty"
> 
> J.P. McDermott   building 12
> Code 5542   mcdermott@xxxxxxxxxxxxxxxx
> Naval Research Laboratory voice: +1 202.404.8301
> Washington, DC 20375, US fax:   +1 202.404.7942
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-devel



_______________________________________________
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®.