linux/arch/parisc/include/asm
Helge Deller ae249b5fa2 parisc: fix kernel BUG at arch/parisc/include/asm/mmzone.h:50
With CONFIG_DISCONTIGMEM=y and multiple physical memory areas,
cat /proc/kpageflags triggers this kernel bug:

kernel BUG at arch/parisc/include/asm/mmzone.h:50!
CPU: 2 PID: 7848 Comm: cat Tainted: G      D W 3.10.0-rc3-64bit #44
 IAOQ[0]: kpageflags_read0x128/0x238
 IAOQ[1]: kpageflags_read0x12c/0x238
 RP(r2): proc_reg_read0xbc/0x130
Backtrace:
 [<00000000402ca2d4>] proc_reg_read0xbc/0x130
 [<0000000040235bcc>] vfs_read0xc4/0x1d0
 [<0000000040235f0c>] SyS_read0x94/0xf0
 [<0000000040105fc0>] syscall_exit0x0/0x14

kpageflags_read() walks through the whole memory, even if some memory
areas are physically not available. So, we should better not BUG on an
unavailable pfn in pfn_to_nid() but just return the expected value -1 or
0.

Signed-off-by: Helge Deller <deller@gmx.de>
2013-06-01 14:28:35 +02:00
..
Kbuild
agp.h
asm-offsets.h
asmregs.h
assembly.h parisc: make interrupt and interruption stack allocation reentrant 2013-05-24 22:35:36 +02:00
atomic.h parisc: implement atomic64_dec_if_positive() 2013-05-06 23:10:04 +02:00
barrier.h
bitops.h
bug.h
bugs.h
cache.h
cacheflush.h
checksum.h
cmpxchg.h
compat.h
compat_ucontext.h
current.h
delay.h
dma-mapping.h
dma.h
eisa_bus.h
eisa_eeprom.h
elf.h
fb.h
fixmap.h
floppy.h
ftrace.h
futex.h
grfioctl.h
hardirq.h parisc: fix irq stack on UP and SMP 2013-05-24 23:29:01 +02:00
hardware.h
ide.h
io.h
irq.h
irqflags.h
kbdleds.h
kmap_types.h
ldcw.h
led.h
linkage.h
machdep.h
mc146818rtc.h
mckinley.h
mmu.h
mmu_context.h
mmzone.h parisc: fix kernel BUG at arch/parisc/include/asm/mmzone.h:50 2013-06-01 14:28:35 +02:00
module.h
page.h
parisc-device.h
parport.h
pci.h
pdc.h
pdc_chassis.h
pdcpat.h
perf.h
perf_event.h
pgalloc.h
pgtable.h
prefetch.h
processor.h parisc: fix irq stack on UP and SMP 2013-05-24 23:29:01 +02:00
psw.h
ptrace.h
ropes.h
rt_sigframe.h
rtc.h
runway.h
scatterlist.h
sections.h
serial.h
shmparam.h
signal.h
smp.h
special_insns.h
spinlock.h
spinlock_types.h
string.h
superio.h
switch_to.h
syscall.h
termios.h
thread_info.h parisc: add kernel stack overflow check 2013-05-07 21:34:07 +02:00
timex.h
tlb.h
tlbflush.h parisc: tlb flush counting fix for SMP and UP 2013-05-07 23:44:04 +02:00
traps.h
uaccess.h
ucontext.h
unaligned.h
unistd.h
unwind.h