]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
mm: output a list of loaded modules when we hit bad_page()
authorDave Jones <davej@redhat.com>
Wed, 5 Oct 2011 00:42:50 +0000 (11:42 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 13 Oct 2011 06:49:18 +0000 (17:49 +1100)
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>
mm/page_alloc.c

index 6e8ecb6e021c7ebc4056a2eb23576c314721b858..83a02052bce401ac7b4b7f21bbda5cbb06855112 100644 (file)
@@ -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 */