Commit 4f31888c authored by Dave Jones's avatar Dave Jones Committed by Linus Torvalds

mm: output a list of loaded modules when we hit bad_page()

When we get a bad_page bug report, it's useful to see what modules the
user had loaded.
Signed-off-by: default avatarDave Jones <davej@redhat.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent f5fc870d
...@@ -318,6 +318,7 @@ static void bad_page(struct page *page) ...@@ -318,6 +318,7 @@ static void bad_page(struct page *page)
current->comm, page_to_pfn(page)); current->comm, page_to_pfn(page));
dump_page(page); dump_page(page);
print_modules();
dump_stack(); dump_stack();
out: out:
/* Leave bad fields for debug, except PageBuddy could make trouble */ /* Leave bad fields for debug, except PageBuddy could make trouble */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment