diff options
| -rw-r--r-- | mm/slab.c | 1 | ||||
| -rw-r--r-- | mm/slub.c | 2 |
2 files changed, 3 insertions, 0 deletions
| @@ -811,6 +811,7 @@ static void __slab_error(const char *function, struct kmem_cache *cachep, | |||
| 811 | printk(KERN_ERR "slab error in %s(): cache `%s': %s\n", | 811 | printk(KERN_ERR "slab error in %s(): cache `%s': %s\n", |
| 812 | function, cachep->name, msg); | 812 | function, cachep->name, msg); |
| 813 | dump_stack(); | 813 | dump_stack(); |
| 814 | add_taint(TAINT_BAD_PAGE); | ||
| 814 | } | 815 | } |
| 815 | 816 | ||
| 816 | /* | 817 | /* |
| @@ -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, ...) |
