WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] RE: tboot support broken by c/s 19075

To: "Cihula, Joseph" <joseph.cihula@xxxxxxxxx>, "'xen-devel@xxxxxxxxxxxxxxxxxxx'" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] RE: tboot support broken by c/s 19075
From: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Date: Thu, 29 Jan 2009 00:59:08 +0000
Cc: Ian Campbell <Ian.Campbell@xxxxxxxxxxxxx>
Delivery-date: Wed, 28 Jan 2009 16:59:53 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4F65016F6CB04E49BFFA15D4F7B798D98B1B47B8@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcmBllqgjpPW8FZlTKOQ+Dq/QwLcTwAEVSLgAAFGtbw=
Thread-topic: [Xen-devel] RE: tboot support broken by c/s 19075
User-agent: Microsoft-Entourage/12.10.0.080409
On 29/01/2009 00:31, "Cihula, Joseph" <joseph.cihula@xxxxxxxxx> wrote:

> If this path is taken then bzimage_check() will return -22 (EINVAL is 22),
> which bzimage_headroom() will then return, which gets assigned to
> modules_headroom in __start_xen() and modules_headroom is an unsigned
> long--hence it will get a very large value.  I think that all failure paths in
> bzimage_headroom() should return 0?

I suspect callers of bzimage_headroom() are supposed to check for negative
return values. Seems easier just to return 0 really, as you suggest.

Of course, this isn't your actual bug. :-(

 -- Keir



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

<Prev in Thread] Current Thread [Next in Thread>