2013-04-30 18:08:17 +00:00
|
|
|
From 3cd4fefa1d614debf75f059def34ac1aaaf96501 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Josh Boyer <jwboyer@redhat.com>
|
|
|
|
Date: Tue, 30 Apr 2013 14:01:57 -0400
|
|
|
|
Subject: [PATCH] When we encounter a bad PTE, print out what modules were
|
|
|
|
loaded, so we can see if there is a common driver potentially at fault.
|
2013-04-16 18:38:04 +00:00
|
|
|
|
|
|
|
Signed-off-by: Dave Jones <davej@redhat.com>
|
2013-04-30 18:08:17 +00:00
|
|
|
---
|
|
|
|
mm/memory.c | 2 ++
|
|
|
|
1 file changed, 2 insertions(+)
|
2013-04-16 18:38:04 +00:00
|
|
|
|
2013-04-30 18:08:17 +00:00
|
|
|
diff --git a/mm/memory.c b/mm/memory.c
|
|
|
|
index 6dc1882..99564df 100644
|
|
|
|
--- a/mm/memory.c
|
|
|
|
+++ b/mm/memory.c
|
2013-04-11 16:17:38 +00:00
|
|
|
@@ -57,6 +57,7 @@
|
|
|
|
#include <linux/swapops.h>
|
|
|
|
#include <linux/elf.h>
|
|
|
|
#include <linux/gfp.h>
|
|
|
|
+#include <linux/module.h>
|
|
|
|
#include <linux/migrate.h>
|
|
|
|
#include <linux/string.h>
|
|
|
|
|
2013-04-30 18:08:17 +00:00
|
|
|
@@ -720,6 +721,7 @@ static void print_bad_pte(struct vm_area_struct *vma, unsigned long addr,
|
2013-04-11 16:17:38 +00:00
|
|
|
if (vma->vm_file && vma->vm_file->f_op)
|
2013-04-30 18:08:17 +00:00
|
|
|
printk(KERN_ALERT "vma->vm_file->f_op->mmap: %pSR\n",
|
|
|
|
vma->vm_file->f_op->mmap);
|
2013-04-11 16:17:38 +00:00
|
|
|
+ print_modules();
|
|
|
|
dump_stack();
|
|
|
|
add_taint(TAINT_BAD_PAGE, LOCKDEP_NOW_UNRELIABLE);
|
|
|
|
}
|
2013-04-30 18:08:17 +00:00
|
|
|
--
|
|
|
|
1.8.1.4
|
2013-04-11 16:17:38 +00:00
|
|
|
|