summaryrefslogtreecommitdiffstats
path: root/debug-bad-pte-modules.patch
diff options
context:
space:
mode:
authorJosh Boyer <jwboyer@redhat.com>2013-04-30 14:08:17 -0400
committerJosh Boyer <jwboyer@redhat.com>2013-04-30 14:08:17 -0400
commit2f0dc63fe0e69aa6b9496d5dccd157f99a985db7 (patch)
tree0e8531edde470298d3f5b0940a8993ac214d0a37 /debug-bad-pte-modules.patch
parent8856395208e809c9c61f6d1e7bc47d352f884685 (diff)
downloadkernel-2f0dc63fe0e69aa6b9496d5dccd157f99a985db7.tar.gz
kernel-2f0dc63fe0e69aa6b9496d5dccd157f99a985db7.tar.xz
kernel-2f0dc63fe0e69aa6b9496d5dccd157f99a985db7.zip
Linux v3.9-4516-gc9ef713
Diffstat (limited to 'debug-bad-pte-modules.patch')
-rw-r--r--debug-bad-pte-modules.patch25
1 files changed, 17 insertions, 8 deletions
diff --git a/debug-bad-pte-modules.patch b/debug-bad-pte-modules.patch
index 047231087..8dbf6db40 100644
--- a/debug-bad-pte-modules.patch
+++ b/debug-bad-pte-modules.patch
@@ -1,11 +1,18 @@
-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.
+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.
Signed-off-by: Dave Jones <davej@redhat.com>
+---
+ mm/memory.c | 2 ++
+ 1 file changed, 2 insertions(+)
-diff -durpN '--exclude-from=/home/davej/.exclude' /home/davej/src/kernel/git-trees/linux/mm/memory.c linux-dj/mm/memory.c
---- /home/davej/src/kernel/git-trees/linux/mm/memory.c 2013-02-26 14:41:18.591116577 -0500
-+++ linux-dj/mm/memory.c 2013-02-28 20:04:37.678304092 -0500
+diff --git a/mm/memory.c b/mm/memory.c
+index 6dc1882..99564df 100644
+--- a/mm/memory.c
++++ b/mm/memory.c
@@ -57,6 +57,7 @@
#include <linux/swapops.h>
#include <linux/elf.h>
@@ -14,12 +21,14 @@ diff -durpN '--exclude-from=/home/davej/.exclude' /home/davej/src/kernel/git-tre
#include <linux/migrate.h>
#include <linux/string.h>
-@@ -719,6 +722,7 @@ static void print_bad_pte(struct vm_area
+@@ -720,6 +721,7 @@ static void print_bad_pte(struct vm_area_struct *vma, unsigned long addr,
if (vma->vm_file && vma->vm_file->f_op)
- print_symbol(KERN_ALERT "vma->vm_file->f_op->mmap: %s\n",
- (unsigned long)vma->vm_file->f_op->mmap);
+ printk(KERN_ALERT "vma->vm_file->f_op->mmap: %pSR\n",
+ vma->vm_file->f_op->mmap);
+ print_modules();
dump_stack();
add_taint(TAINT_BAD_PAGE, LOCKDEP_NOW_UNRELIABLE);
}
+--
+1.8.1.4