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

[Xen-devel] [PATCH] make pygrub cope better with big files in guest

Pygrub can use a lot of memory if the kernel or ramdisk files in a guest are very big as it reads them into memory before writing them out again to temporary files (these can legitimately be big for example the initrd.img file in a Fedora 16 install is around 130MB ).

This patch allows these files to be copied in one megabyte pieces, and if it sees any write problems it delets the files and exits. It also only reads up to the first megabyte of configurations files for grub etc. to avoid problems here as well (as it is a text file it should actually be much smaller).

This issue was reported by Xinli Niu in the Fedora bug report
https://bugzilla.redhat.com/show_bug.cgi?id=818412 who got it a CVE reference CVE-2012-2625 .

        Michael Young

Attachment: pygrub.size.limits.patch
Description: Text document

Xen-devel mailing list



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