Skip to content

Commit

Permalink
mm: output a list of loaded modules when we hit bad_page()
Browse files Browse the repository at this point in the history
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>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Dave Jones authored and Linus Torvalds committed Nov 1, 2011
1 parent f5fc870 commit 4f31888
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mm/page_alloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 4f31888

Please sign in to comment.