Commit 645df230 authored by Dave Jones's avatar Dave Jones Committed by Pekka Enberg
Browse files

mm, sl[au]b: Taint kernel when we detect a corrupted slab

It doesn't seem worth adding a new taint flag for this, so just re-use
the one from 'bad page'

Acked-by: Christoph Lameter <> # SLUB
Acked-by: default avatarDavid Rientjes <>
Signed-off-by: default avatarDave Jones <>
Signed-off-by: default avatarPekka Enberg <>
parent 947ca185
......@@ -811,6 +811,7 @@ static void __slab_error(const char *function, struct kmem_cache *cachep,
printk(KERN_ERR "slab error in %s(): cache `%s': %s\n",
function, cachep->name, msg);
......@@ -568,6 +568,8 @@ static void slab_bug(struct kmem_cache *s, char *fmt, ...)
printk(KERN_ERR "BUG %s (%s): %s\n", s->name, print_tainted(), buf);
printk(KERN_ERR "----------------------------------------"
static void slab_fix(struct kmem_cache *s, char *fmt, ...)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment