diff options
author | Dave Jones <davej@redhat.com> | 2012-09-18 21:54:12 +0200 |
---|---|---|
committer | Pekka Enberg <penberg@kernel.org> | 2012-09-19 09:08:01 +0200 |
commit | 645df230cacc48f4463037016e9dbd3633183fe8 (patch) | |
tree | 0c89db88d8ece26aba176c19166863c677529e09 /mm/slab.c | |
parent | slab: fix the DEADLOCK issue on l3 alien lock (diff) | |
download | linux-645df230cacc48f4463037016e9dbd3633183fe8.tar.xz linux-645df230cacc48f4463037016e9dbd3633183fe8.zip |
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 <cl@linux.com> # SLUB
Acked-by: David Rientjes <rientjes@google.com>
Signed-off-by: Dave Jones <davej@redhat.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
Diffstat (limited to 'mm/slab.c')
-rw-r--r-- | mm/slab.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mm/slab.c b/mm/slab.c index cd5a92650303..5c6abb831e6a 100644 --- a/mm/slab.c +++ b/mm/slab.c @@ -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); dump_stack(); + add_taint(TAINT_BAD_PAGE); } /* |