[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH 7/8] libelf: loop safety cleanup: Remove superseded image size copy check



>>> On 09.12.16 at 16:44, <ian.jackson@xxxxxxxxxxxxx> wrote:
> Now, elf_load_image eventually calls elf_memcpy_safe, which calls
> elf_iter_ok_counted.
> 
> So there is a work limit of 4x the image size.  This is larger than
> the previous limit of 2x the image size, but it includes a lot of
> other processing too.  And the purpose is to reject bad images without
> a significant risk of rejecting sane ones.  A 4x limit is tight
> enough.
> 
> So this ad-hoc remain_allow_copy check has been entirely superseded
> and can be removed.
> 
> Signed-off-by: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>

Acked-by: Jan Beulich <jbeulich@xxxxxxxx>


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
https://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.