[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH 2/2] xen/arm: support compressed kernels
On 12/08/15 17:35, Andrew Cooper wrote: >> + >> +static int kernel_zimage64_compressed_probe(struct kernel_info *info, >> + paddr_t addr, paddr_t size) >> +{ >> + char *output, *input; >> + unsigned char magic[2]; >> + int rc; >> + unsigned kernel_order_in; >> + unsigned kernel_order_out; >> + paddr_t output_size; >> + >> + copy_from_paddr(magic, addr, sizeof(magic)); > > Need a size check before assuming sufficient length. (All of the arm > probe functions suffer in a similar way.) Are you sure? kernel_zimage{32,64}_probe as long as kernel_uboot_probe are checking the size before copying the magic... Regards, -- Julien Grall _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |