rediff, remove unnecessary export, and add modules printing to bad_page()

This commit is contained in:
Dave Jones 2011-07-21 21:01:32 -04:00
parent 441b0a7fe7
commit c0bd0780af

View File

@ -1,31 +1,20 @@
From b04c57d9dc889462951312be2ac81ff6c702e954 Mon Sep 17 00:00:00 2001 diff --git a/mm/page_alloc.c b/mm/page_alloc.c
From: Kyle McMartin <kyle@phobos.i.jkkm.org> index 4e8985a..70d0853 100644
Date: Wed, 8 Jul 2009 13:05:09 -0400 --- a/mm/page_alloc.c
Subject: [PATCH 3/6] fedora: linux-2.6-debug-taint-vm.patch +++ 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();
kernel/panic.c | 4 +++- dump_stack();
mm/slab.c | 8 ++++---- out:
mm/slub.c | 2 +- /* Leave bad fields for debug, except PageBuddy could make trouble */
4 files changed, 11 insertions(+), 8 deletions(-)
diff --git a/kernel/panic.c b/kernel/panic.c
index 984b3ec..6d1c3be 100644
--- a/kernel/panic.c
+++ b/kernel/panic.c
@@ -199,6 +199,7 @@ const char *print_tainted(void)
return buf;
}
+EXPORT_SYMBOL(print_tainted);
int test_taint(unsigned flag)
{
diff --git a/mm/slab.c b/mm/slab.c diff --git a/mm/slab.c b/mm/slab.c
index e74a16e..7bc287e 100644 index d96e223..6f8905b 100644
--- a/mm/slab.c --- a/mm/slab.c
+++ b/mm/slab.c +++ b/mm/slab.c
@@ -1803,8 +1803,8 @@ static void check_poison_obj(struct kmem_cache *cachep, void *objp) @@ -1886,8 +1886,8 @@ static void check_poison_obj(struct kmem_cache *cachep, void *objp)
/* Print header */ /* Print header */
if (lines == 0) { if (lines == 0) {
printk(KERN_ERR printk(KERN_ERR
@ -36,7 +25,7 @@ index e74a16e..7bc287e 100644
print_objinfo(cachep, objp, 0); print_objinfo(cachep, objp, 0);
} }
/* Hexdump the affected line */ /* Hexdump the affected line */
@@ -2902,8 +2902,8 @@ static void check_slabp(struct kmem_cache *cachep, struct slab *slabp) @@ -2985,8 +2985,8 @@ static void check_slabp(struct kmem_cache *cachep, struct slab *slabp)
if (entries != cachep->num - slabp->inuse) { if (entries != cachep->num - slabp->inuse) {
bad: bad:
printk(KERN_ERR "slab: Internal list corruption detected in " printk(KERN_ERR "slab: Internal list corruption detected in "
@ -48,10 +37,10 @@ index e74a16e..7bc287e 100644
i < sizeof(*slabp) + cachep->num * sizeof(kmem_bufctl_t); i < sizeof(*slabp) + cachep->num * sizeof(kmem_bufctl_t);
i++) { i++) {
diff --git a/mm/slub.c b/mm/slub.c diff --git a/mm/slub.c b/mm/slub.c
index 819f056..8eff0f4 100644 index 35f351f..e7ccb39 100644
--- a/mm/slub.c --- a/mm/slub.c
+++ b/mm/slub.c +++ b/mm/slub.c
@@ -433,7 +433,7 @@ static void slab_bug(struct kmem_cache *s, char *fmt, ...) @@ -472,7 +472,7 @@ static void slab_bug(struct kmem_cache *s, char *fmt, ...)
va_end(args); va_end(args);
printk(KERN_ERR "========================================" printk(KERN_ERR "========================================"
"=====================================\n"); "=====================================\n");
@ -60,6 +49,3 @@ index 819f056..8eff0f4 100644
printk(KERN_ERR "----------------------------------------" printk(KERN_ERR "----------------------------------------"
"-------------------------------------\n\n"); "-------------------------------------\n\n");
} }
--
1.6.2.5