This is a note to let you know that I've just added the patch titled lguest: allow booting guest with CONFIG_RELOCATABLE=y
to the 3.0-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: lguest-allow-booting-guest-with-config_relocatable-y.patch and it can be found in the queue-3.0 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <sta...@kernel.org> know about it. >From e22a539824e8ddb82c87b4f415165ede82e6ab56 Mon Sep 17 00:00:00 2001 From: Rusty Russell <ru...@rustcorp.com.au> Date: Mon, 15 Aug 2011 10:15:10 +0930 Subject: lguest: allow booting guest with CONFIG_RELOCATABLE=y From: Rusty Russell <ru...@rustcorp.com.au> commit e22a539824e8ddb82c87b4f415165ede82e6ab56 upstream. The CONFIG_RELOCATABLE code tries to align the unpack destination to the value of 'kernel_alignment' in the setup_hdr. If that's 0, it tries to unpack to address 0, which in fact causes the gunzip code to call 'error("Out of memory while allocating output buffer")'. The bootloader (ie. the lguest Launcher in this case) should be doing setting this field; the normal bzImage is 16M, we can use the same. Reported-by: Stefanos Geraggelos <sge...@cslab.ece.ntua.gr> Signed-off-by: Rusty Russell <ru...@rustcorp.com.au> Signed-off-by: Greg Kroah-Hartman <gre...@suse.de> --- Documentation/virtual/lguest/lguest.c | 3 +++ 1 file changed, 3 insertions(+) --- a/Documentation/virtual/lguest/lguest.c +++ b/Documentation/virtual/lguest/lguest.c @@ -2008,6 +2008,9 @@ int main(int argc, char *argv[]) /* We use a simple helper to copy the arguments separated by spaces. */ concat((char *)(boot + 1), argv+optind+2); + /* Set kernel alignment to 16M (CONFIG_PHYSICAL_ALIGN) */ + boot->hdr.kernel_alignment = 0x1000000; + /* Boot protocol version: 2.07 supports the fields for lguest. */ boot->hdr.version = 0x207; Patches currently in stable-queue which might be from ru...@rustcorp.com.au are queue-3.0/lguest-allow-booting-guest-with-config_relocatable-y.patch _______________________________________________ stable mailing list stable@linux.kernel.org http://linux.kernel.org/mailman/listinfo/stable