[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH] Off-by-one in cpu_gdt_init
I forget what triggered this bug (it was a long time ago), but cpu_gdt_init() is trying to allocate an array, one per frame, based on gdt_descr->size. However, the math currently rounds down instead of up! (I'm pretty sure that when I triggered it, (gdt_descr->size>>PAGE_SHIFT) was 0.) -George +-------------------+----------------------------------------| dunlapg@xxxxxxxxx | http://www-personal.umich.edu/~dunlapg +-------------------+---------------------------------------- | Who could move a mountain, who could love their enemy? | Who could rejoice in pain, and turn the other cheek? | - Rich Mullins, "Surely God is With Us" +------------------------------------------------------------ | Outlaw Junk Email! Support HR 1748 (www.cauce.org) Attachment:
cpu_gdt_init-bug.patch _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |