public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* 2.6.15-rc1-mm2 0x414 Bad page states
@ 2005-11-18 19:15 Hugh Dickins
  2005-11-18 20:12 ` Dominik Brodowski
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Hugh Dickins @ 2005-11-18 19:15 UTC (permalink / raw)
  To: Dominik Brodowski, Benoit Boissinot, Rafael J. Wysocki,
	Michael Krufky
  Cc: Andrew Morton, linux-kernel

Thanks a lot for your PageReserved "Bad page state" reports.

Sorry for being so slow to respond.  I've not worked it out yet.

Would each of you please apply the slightly-more-debug-info patch
below, and mail me the first batch of reports that you get when
you try to reproduce the problem (it does assume only one CPU,
which happens to be the case for each of you).

Thanks,
Hugh

--- 2.6.15-rc1-mm2/mm/memory.c	2005-11-18 15:23:09.000000000 +0000
+++ linux/mm/memory.c	2005-11-18 17:56:23.000000000 +0000
@@ -569,6 +569,7 @@ static unsigned long zap_pte_range(struc
 				unsigned long addr, unsigned long end,
 				long *zap_work, struct zap_details *details)
 {
+	extern struct vm_area_struct *zap_vma;
 	struct mm_struct *mm = tlb->mm;
 	pte_t *pte;
 	spinlock_t *ptl;
@@ -576,6 +577,7 @@ static unsigned long zap_pte_range(struc
 	int anon_rss = 0;
 
 	pte = pte_offset_map_lock(mm, pmd, addr, &ptl);
+	zap_vma = vma;
 	do {
 		pte_t ptent = *pte;
 		if (pte_none(ptent)) {
@@ -649,6 +651,7 @@ static unsigned long zap_pte_range(struc
 		pte_clear_full(mm, addr, pte, tlb->fullmm);
 	} while (pte++, addr += PAGE_SIZE, (addr != end && *zap_work > 0));
 
+	zap_vma = NULL;
 	add_mm_rss(mm, file_rss, anon_rss);
 	pte_unmap_unlock(pte - 1, ptl);
 
--- 2.6.15-rc1-mm2/mm/page_alloc.c	2005-11-18 15:23:09.000000000 +0000
+++ linux/mm/page_alloc.c	2005-11-18 18:16:28.000000000 +0000
@@ -36,6 +36,7 @@
 #include <linux/memory_hotplug.h>
 #include <linux/nodemask.h>
 #include <linux/vmalloc.h>
+#include <linux/kallsyms.h>
 
 #include <asm/tlbflush.h>
 #include "internal.h"
@@ -122,6 +123,7 @@ static int bad_range(struct zone *zone, 
 	return 0;
 }
 
+struct vm_area_struct *zap_vma;
 static void bad_page(const char *function, struct page *page)
 {
 	printk(KERN_EMERG "Bad page state at %s (in process '%s', page %p)\n",
@@ -129,6 +131,13 @@ static void bad_page(const char *functio
 	printk(KERN_EMERG "flags:0x%0*lx mapping:%p mapcount:%d count:%d\n",
 		(int)(2*sizeof(unsigned long)), (unsigned long)page->flags,
 		page->mapping, page_mapcount(page), page_count(page));
+	if (zap_vma) {
+		printk(KERN_EMERG "vm_flags:0x%lx", zap_vma->vm_flags);
+		print_symbol(" %s", (unsigned long)
+			(zap_vma->vm_ops? zap_vma->vm_ops->open: NULL));
+		print_symbol(" %s\n", (unsigned long)
+			(zap_vma->vm_ops? zap_vma->vm_ops->nopage: NULL));
+	}
 	printk(KERN_EMERG "Backtrace:\n");
 	dump_stack();
 	{

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2005-11-23 20:33 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-18 19:15 2.6.15-rc1-mm2 0x414 Bad page states Hugh Dickins
2005-11-18 20:12 ` Dominik Brodowski
2005-11-18 20:42   ` Rafael J. Wysocki
2005-11-19  4:30     ` Nick Piggin
2005-11-19  4:33       ` Nick Piggin
     [not found] ` <Pine.LNX.4.61.0511182214200.4797@goblin.wat.veritas.com>
2005-11-19 19:57   ` Hugh Dickins
2005-11-19 22:42     ` Dominik Brodowski
2005-11-20 10:14     ` Marc Koschewski
2005-11-21 13:02     ` Christian Kujau
     [not found] ` <20051122211625.165F114CB@hornet.berlios.de>
2005-11-22 21:32   ` Hugh Dickins
     [not found]     ` <20051122231603.2209814DA@hornet.berlios.de>
2005-11-23 11:07       ` Dave Airlie
2005-11-23 20:33         ` Hugh Dickins

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox