x86-32: Make sure we can map all of lowmem if we need to
authorH. Peter Anvin <hpa@linux.intel.com>
Fri, 17 Dec 2010 03:11:09 +0000 (19:11 -0800)
committerH. Peter Anvin <hpa@linux.intel.com>
Fri, 17 Dec 2010 03:11:09 +0000 (19:11 -0800)
commit147dd5610c8d1bacb88a6c1dfdaceaf257946ed0
tree7c803d44985e61879018dd76db52f77922e1b772
parent7f99d946e71e71d484b7543b49e990508e70d0c0
x86-32: Make sure we can map all of lowmem if we need to

A relocatable kernel can be anywhere in lowmem -- and in the case of a
kdump kernel, is likely to be fairly high.  Since the early page
tables map everything from address zero up we need to make sure we
allocate enough brk that we can map all of lowmem if we need to.

Reported-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Tested-by: Yinghai Lu <yinghai@kernel.org>
LKML-Reference: <4D0AD3ED.8070607@kernel.org>
arch/x86/boot/compressed/misc.c
arch/x86/kernel/head_32.S