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

[Xen-devel] Mini-OS xmalloc and realloc patch

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] Mini-OS xmalloc and realloc patch
From: "J. Aaron Pendergrass" <James.Pendergrass@xxxxxxxxxx>
Date: Wed, 28 Oct 2009 15:09:37 -0400
Delivery-date: Wed, 28 Oct 2009 12:10:02 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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
Hi,
The attached patch addresses a few bugs in minios' xmalloc and realloc routines
Specifically:
- xmalloc currently faults if xmalloc_new_page fails (presumably due to OOM). - realloc treats xmalloc_hdr.size as the size of just the data region rather than
           the total size of data region + headers + padding.

The patch was tested and applies cleanly against xen-unstable changeset 47136dbb972d

Thanks,
-Aaron

Attachment: xmalloc-fixes.patch
Description: Binary data


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] Mini-OS xmalloc and realloc patch, J. Aaron Pendergrass <=