summaryrefslogtreecommitdiffstats
path: root/linux-2.6-debug-taint-vm.patch
diff options
context:
space:
mode:
authorJosh Boyer <jwboyer@redhat.com>2011-11-01 15:13:32 -0400
committerJosh Boyer <jwboyer@redhat.com>2011-11-01 15:15:29 -0400
commit906f34d53bd601a61ff7567e00495c78aa5f62ef (patch)
tree27d7c0d99f19bb4c008204aec3a9e58595ac7b49 /linux-2.6-debug-taint-vm.patch
parentbf976a17c4b2c2b164f6413d52ffbdab09a26d1a (diff)
downloadkernel-906f34d53bd601a61ff7567e00495c78aa5f62ef.tar.gz
kernel-906f34d53bd601a61ff7567e00495c78aa5f62ef.tar.xz
kernel-906f34d53bd601a61ff7567e00495c78aa5f62ef.zip
Linux 3.1-git4 (upstream dc47d3810cdc)
Diffstat (limited to 'linux-2.6-debug-taint-vm.patch')
-rw-r--r--linux-2.6-debug-taint-vm.patch66
1 files changed, 0 insertions, 66 deletions
diff --git a/linux-2.6-debug-taint-vm.patch b/linux-2.6-debug-taint-vm.patch
deleted file mode 100644
index ab7031759..000000000
--- a/linux-2.6-debug-taint-vm.patch
+++ /dev/null
@@ -1,66 +0,0 @@
-From 77c78bac236c7b07d390be65f357c85a79cce890 Mon Sep 17 00:00:00 2001
-From: Dave Jones <davej@redhat.com>
-Date: Wed, 26 Oct 2011 18:44:26 -0400
-Subject: [PATCH] Add more debugging information to the VM subsystem
-
-Dump modules in bad_page, and print taint information in other areas
----
- mm/page_alloc.c | 1 +
- mm/slab.c | 8 ++++----
- mm/slub.c | 2 +-
- 3 files changed, 6 insertions(+), 5 deletions(-)
-
-diff --git a/mm/page_alloc.c b/mm/page_alloc.c
-index 6e8ecb6..83a0205 100644
---- a/mm/page_alloc.c
-+++ b/mm/page_alloc.c
-@@ -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 */
-diff --git a/mm/slab.c b/mm/slab.c
-index 708efe8..114a66d 100644
---- a/mm/slab.c
-+++ b/mm/slab.c
-@@ -1927,8 +1927,8 @@ static void check_poison_obj(struct kmem_cache *cachep, void *objp)
- /* Print header */
- if (lines == 0) {
- printk(KERN_ERR
-- "Slab corruption: %s start=%p, len=%d\n",
-- cachep->name, realobj, size);
-+ "Slab corruption (%s): %s start=%p, len=%d\n",
-+ print_tainted(), cachep->name, realobj, size);
- print_objinfo(cachep, objp, 0);
- }
- /* Hexdump the affected line */
-@@ -3037,8 +3037,8 @@ static void check_slabp(struct kmem_cache *cachep, struct slab *slabp)
- if (entries != cachep->num - slabp->inuse) {
- bad:
- printk(KERN_ERR "slab: Internal list corruption detected in "
-- "cache '%s'(%d), slabp %p(%d). Hexdump:\n",
-- cachep->name, cachep->num, slabp, slabp->inuse);
-+ "cache '%s'(%d), slabp %p(%d). Tainted(%s) Hexdump:\n",
-+ cachep->name, cachep->num, slabp, slabp->inuse, print_tainted());
- print_hex_dump(KERN_ERR, "", DUMP_PREFIX_OFFSET, 16, 1, slabp,
- sizeof(*slabp) + cachep->num * sizeof(kmem_bufctl_t),
- 1);
-diff --git a/mm/slub.c b/mm/slub.c
-index 95215aa..bbec29e 100644
---- a/mm/slub.c
-+++ b/mm/slub.c
-@@ -570,7 +570,7 @@ static void slab_bug(struct kmem_cache *s, char *fmt, ...)
- va_end(args);
- printk(KERN_ERR "========================================"
- "=====================================\n");
-- printk(KERN_ERR "BUG %s: %s\n", s->name, buf);
-+ printk(KERN_ERR "BUG %s (%s): %s\n", s->name, print_tainted(), buf);
- printk(KERN_ERR "----------------------------------------"
- "-------------------------------------\n\n");
- }
---
-1.7.6.4
-