]> git.baikalelectronics.ru Git - kernel.git/commit
lguest: allow booting guest with CONFIG_RELOCATABLE=y
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 15 Aug 2011 00:45:10 +0000 (10:15 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 15 Aug 2011 00:45:10 +0000 (10:15 +0930)
commite5c24663ff5e3f7401ba952e4eb22609e68d04df
tree39d68ab2ad811abc19a1fc1595fd71a37df43aae
parent62df67f51fd67c4bdd24a52bf65ae1d7b4eb0a0e
lguest: allow booting guest with CONFIG_RELOCATABLE=y

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 <sgerag@cslab.ece.ntua.gr>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Cc: stable@kernel.org
Documentation/virtual/lguest/lguest.c