]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
sparsemem: fix oops in x86_64 show_mem
authorBob Picco <bob.picco@hp.com>
Fri, 8 Jun 2007 01:01:35 +0000 (21:01 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sat, 4 Aug 2007 16:10:23 +0000 (09:10 -0700)
commitb6b364eaa2ec37e9d1108fcbf4a025a3a407b879
treefd4df397b185ab881c75479ad2f60bb00d13a00b
parent50099883039e51de64f84938a3db114b4c0cb12f
sparsemem: fix oops in x86_64 show_mem

We aren't sampling for holes in memory. Thus we encounter a section hole with
empty section map pointer for SPARSEMEM and OOPs for show_mem. This issue
has been seen in 2.6.21, current git and current mm. This patch is for
2.6.21 stable. It was tested against sparsemem.

Previous to commit f0a5a58aa812b31fd9f197c4ba48245942364eae memory_present
was called for node_start_pfn to node_end_pfn. This would cover the hole(s)
with reserved pages and valid sections. Most SPARSEMEM supported arches
do a pfn_valid check in show_mem before computing the page structure address.

This issue was brought to my attention on IRC by Arnaldo Carvalho de Melo at
acme@redhat.com. Thanks to Arnaldo for testing.

Signed-off-by: Bob Picco <bob.picco@hp.com>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/x86_64/mm/init.c