linux/arch
Bob Picco 12710a56cb fix sysrq-m oops
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.  The patch below
is for mainline and mm.  It was boot tested for SPARSEMEM, current VMEMMAP
of Andy's in mm ml and DISCONTIGMEM.  A slightly different patch will be
posted to stable for 2.6.21.

Previous to commit f0a5a58aa8 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.
Thanks to Arnaldo for testing.

Signed-off-by: Bob Picco <bob.picco@hp.com>
Cc: Chuck Ebbert <cebbert@redhat.com>
Cc: Andi Kleen <ak@suse.de>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Acked-by: Andy Whitcroft <apw@shadowen.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-06-08 17:23:34 -07:00
..
alpha ALPHA: misc fixes 2007-06-01 08:18:29 -07:00
arm [ARM] Solve buggy smp_processor_id() usage 2007-06-02 21:31:49 +01:00
arm26 all-archs: consolidate .data section definition in asm-generic 2007-05-19 09:11:57 +02:00
avr32 all-archs: consolidate .data section definition in asm-generic 2007-05-19 09:11:57 +02:00
blackfin Merge git://git.kernel.org/pub/scm/linux/kernel/git/sam/kbuild-fix 2007-05-21 12:03:04 -07:00
cris Fix trivial typos in Kconfig* files 2007-05-09 07:12:20 +02:00
frv all-archs: consolidate .data section definition in asm-generic 2007-05-19 09:11:57 +02:00
h8300 h8300 trival patches 2007-06-01 08:18:29 -07:00
i386 potential parse error in ifdef part 3 2007-06-08 17:23:33 -07:00
ia64 [IA64] acpi_get_sysname() should be __init 2007-05-24 10:59:44 -07:00
m32r all-archs: consolidate .data section definition in asm-generic 2007-05-19 09:11:57 +02:00
m68k m68k: parenthesis balance 2007-06-01 08:18:27 -07:00
m68knommu m68knommu: fix ColdFire timer off by 1 2007-06-08 17:23:32 -07:00
mips [MIPS] Fix warning by moving do_default_vi into CONFIG_CPU_MIPSR2_SRS 2007-06-06 19:34:33 +01:00
parisc Merge git://git.kernel.org/pub/scm/linux/kernel/git/sam/kbuild-fix 2007-05-21 12:03:04 -07:00
powerpc [POWERPC] Fix building of COFF zImages 2007-06-07 22:21:31 +10:00
ppc potential parse error in ifdef part 3 2007-06-08 17:23:33 -07:00
s390 [S390] Fix section annotations. 2007-05-31 17:38:11 +02:00
sh sh: Fix se73180 platform device registration. 2007-06-04 11:07:23 +09:00
sh64 potential parse error in ifdef part 3 2007-06-08 17:23:33 -07:00
sparc [SPARC32]: Build fix. 2007-05-31 01:52:51 -07:00
sparc64 [SPARC64]: Fix SBUS IRQ regression caused by PCI-E driver. 2007-06-07 16:59:51 -07:00
um uml: get declaration of simple_strtoul 2007-06-08 17:23:33 -07:00
v850 all-archs: consolidate .data section definition in asm-generic 2007-05-19 09:11:57 +02:00
x86_64 fix sysrq-m oops 2007-06-08 17:23:34 -07:00
xtensa [XTENSA] Remove non-rt signal handling 2007-05-31 17:49:32 -07:00