kernel-fxtec-pro1x/arch/s390/mm
Christian Borntraeger a2fd64d6aa [S390] vmemmap: allocate struct pages before 1:1 mapping
We have seen an oops in an OOM situation, where show_mem tried to
access the struct page of a dcss segment. The vmemmap code has
already created the 1:1 mapping but failed allocating the struct
pages. In the OOM case, show_mem now walks the memory. It uses
pfn_valid to detect if it may access the struct page. In the case
described above, the mapping was established and pfn_valid returned
true. As the struct pages were not allocated, the kernel oopsed.

We have to ensure that we have created the struct pages, before we
add a mapping pointing to the pages.

Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
2008-01-26 14:11:23 +01:00
..
cmm.c [S390] cmm: remove unused binary sysctls. 2007-11-20 11:13:45 +01:00
extmem.c [S390] use LIST_HEAD instead of LIST_HEAD_INIT 2008-01-26 14:11:21 +01:00
fault.c pid namespaces: define is_global_init() and is_container_init() 2007-10-19 11:53:37 -07:00
init.c [S390] 4level-fixup cleanup 2007-10-22 12:52:49 +02:00
Makefile [S390] Cleanup page table definitions. 2007-10-22 12:52:49 +02:00
mmap.c [PATCH] s390: cleanup Kconfig 2006-01-06 08:33:53 -08:00
pgtable.c [S390] Cleanup page table definitions. 2007-10-22 12:52:49 +02:00
vmem.c [S390] vmemmap: allocate struct pages before 1:1 mapping 2008-01-26 14:11:23 +01:00