[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH] efi/boot: Avoid memory corruption when freeing ebmalloc area
>>> On 28.02.17 at 12:44, <andrew.cooper3@xxxxxxxxxx> wrote: > --- a/xen/common/efi/boot.c > +++ b/xen/common/efi/boot.c > @@ -148,7 +148,7 @@ static void __init __maybe_unused > free_ebmalloc_unused_mem(void) > { > unsigned long start, end; > > - start = (unsigned long)ebmalloc_mem + PAGE_ALIGN(ebmalloc_allocated); > + start = (unsigned long)ebmalloc_mem + ROUNDUP(ebmalloc_allocated, > PAGE_SIZE); With #define PAGE_ALIGN(x) (((x) + PAGE_SIZE - 1) & PAGE_MASK) I don't see any behavioral change with your adjustment. Jan _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx https://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |