x86: avoid remapping data in parse_setup_data()
authorLinn Crosetto <linn@hp.com>
Tue, 13 Aug 2013 21:46:41 +0000 (15:46 -0600)
committerH. Peter Anvin <hpa@linux.intel.com>
Wed, 14 Aug 2013 06:29:19 +0000 (23:29 -0700)
commit30e46b574a1db7d14404e52dca8e1aa5f5155fd2
tree830c013b0e1bc37b77590df2998e664c89974571
parent2449f343e4adc778de1c3d45b5aa14fe788663f5
x86: avoid remapping data in parse_setup_data()

Type SETUP_PCI, added by setup_efi_pci(), may advertise a ROM size
larger than early_memremap() is able to handle, which is currently
limited to 256kB. If this occurs it leads to a NULL dereference in
parse_setup_data().

To avoid this, remap the setup_data header and allow parsing functions
for individual types to handle their own data remapping.

Signed-off-by: Linn Crosetto <linn@hp.com>
Link: http://lkml.kernel.org/r/1376430401-67445-1-git-send-email-linn@hp.com
Acked-by: Yinghai Lu <yinghai@kernel.org>
Reviewed-by: Pekka Enberg <penberg@kernel.org>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
arch/x86/include/asm/e820.h
arch/x86/kernel/e820.c
arch/x86/kernel/setup.c