]> git.karo-electronics.de Git - karo-tx-linux.git/commit
lguest: allow booting guest with CONFIG_RELOCATABLE=y
authorRusty Russell <rusty@rustcorp.com.au>
Wed, 17 Aug 2011 00:39:40 +0000 (10:39 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 17 Aug 2011 00:39:40 +0000 (10:39 +1000)
commit9743d516f972761413f4c9d555140cc654465a1e
tree39d68ab2ad811abc19a1fc1595fd71a37df43aae
parentd8203f3e4e21792442504d110cea9aeafb31875c
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