linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* output a list of loaded modules when we hit bad_page()
@ 2011-07-22  0:47 Dave Jones
  0 siblings, 0 replies; only message in thread
From: Dave Jones @ 2011-07-22  0:47 UTC (permalink / raw)
  To: linux-mm

When we get a bad_page bug report, it's useful to see what
modules the user had loaded.

Signed-off-by: Dave Jones <davej@redhat.com>

diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index 4e8985a..70d0853 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -318,6 +318,7 @@ static void bad_page(struct page *page)
 		current->comm, page_to_pfn(page));
 	dump_page(page);
 
+	print_modules();
 	dump_stack();
 out:
 	/* Leave bad fields for debug, except PageBuddy could make trouble */


--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2011-07-22  0:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-22  0:47 output a list of loaded modules when we hit bad_page() Dave Jones

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).