diff options
author | Dave Jones <davej@redhat.com> | 2012-09-18 15:54:12 -0400 |
---|---|---|
committer | Pekka Enberg <penberg@kernel.org> | 2012-09-19 03:08:01 -0400 |
commit | 645df230cacc48f4463037016e9dbd3633183fe8 (patch) | |
tree | 0c89db88d8ece26aba176c19166863c677529e09 /mm/slub.c | |
parent | 947ca1856a7e60aa6d20536785e6a42dff25aa6e (diff) |
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/slub.c')
-rw-r--r-- | mm/slub.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -568,6 +568,8 @@ static void slab_bug(struct kmem_cache *s, char *fmt, ...) | |||
568 | printk(KERN_ERR "BUG %s (%s): %s\n", s->name, print_tainted(), buf); | 568 | printk(KERN_ERR "BUG %s (%s): %s\n", s->name, print_tainted(), buf); |
569 | printk(KERN_ERR "----------------------------------------" | 569 | printk(KERN_ERR "----------------------------------------" |
570 | "-------------------------------------\n\n"); | 570 | "-------------------------------------\n\n"); |
571 | |||
572 | add_taint(TAINT_BAD_PAGE); | ||
571 | } | 573 | } |
572 | 574 | ||
573 | static void slab_fix(struct kmem_cache *s, char *fmt, ...) | 575 | static void slab_fix(struct kmem_cache *s, char *fmt, ...) |