summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPetr Tesarik <ptesarik@suse.cz>2014-02-01 13:30:19 +0100
committerH. Peter Anvin <hpa@zytor.com>2014-02-01 22:15:51 -0800
commit85fc73a2cdf10cf42bc36fb3bca3896b2095a1c2 (patch)
tree2b550d2c20d88c55fc23e77fab306a645953927d /lib
parent39424e89d64661faa0a2e00c5ad1e6dbeebfa972 (diff)
downloadlinux-stable-85fc73a2cdf10cf42bc36fb3bca3896b2095a1c2.tar.gz
linux-stable-85fc73a2cdf10cf42bc36fb3bca3896b2095a1c2.tar.bz2
linux-stable-85fc73a2cdf10cf42bc36fb3bca3896b2095a1c2.zip
x86: Fix the initialization of physnode_map
With DISCONTIGMEM, the mapping between a pfn and its owning node is initialized using data provided by the BIOS. However, the initialization may fail if the extents are not aligned to section boundary (64M). The symptom of this bug is an early boot failure in pfn_to_page(), as it tries to access NODE_DATA(__nid) using index from an unitialized element of the physnode_map[] array. While the bug is always present, it is more likely to be hit in kdump kernels on large machines, because: 1. The memory map for a kdump kernel is specified as exactmap, and exactmap is more likely to be unaligned. 2. Large reservations are more likely to span across a 64M boundary. [ hpa: fixed incorrect use of "pfn" instead of "start" ] Signed-off-by: Petr Tesarik <ptesarik@suse.cz> Link: http://lkml.kernel.org/r/20140201133019.32e56f86@hananiah.suse.cz Acked-by: David Rientjes <rientjes@google.com> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions