diff options
Diffstat (limited to 'mm/slab.c')
-rw-r--r-- | mm/slab.c | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -1941,8 +1941,8 @@ static void check_poison_obj(struct kmem_cache *cachep, void *objp) | |||
1941 | /* Print header */ | 1941 | /* Print header */ |
1942 | if (lines == 0) { | 1942 | if (lines == 0) { |
1943 | printk(KERN_ERR | 1943 | printk(KERN_ERR |
1944 | "Slab corruption: %s start=%p, len=%d\n", | 1944 | "Slab corruption (%s): %s start=%p, len=%d\n", |
1945 | cachep->name, realobj, size); | 1945 | print_tainted(), cachep->name, realobj, size); |
1946 | print_objinfo(cachep, objp, 0); | 1946 | print_objinfo(cachep, objp, 0); |
1947 | } | 1947 | } |
1948 | /* Hexdump the affected line */ | 1948 | /* Hexdump the affected line */ |
@@ -3051,8 +3051,9 @@ static void check_slabp(struct kmem_cache *cachep, struct slab *slabp) | |||
3051 | if (entries != cachep->num - slabp->inuse) { | 3051 | if (entries != cachep->num - slabp->inuse) { |
3052 | bad: | 3052 | bad: |
3053 | printk(KERN_ERR "slab: Internal list corruption detected in " | 3053 | printk(KERN_ERR "slab: Internal list corruption detected in " |
3054 | "cache '%s'(%d), slabp %p(%d). Hexdump:\n", | 3054 | "cache '%s'(%d), slabp %p(%d). Tainted(%s). Hexdump:\n", |
3055 | cachep->name, cachep->num, slabp, slabp->inuse); | 3055 | cachep->name, cachep->num, slabp, slabp->inuse, |
3056 | print_tainted()); | ||
3056 | print_hex_dump(KERN_ERR, "", DUMP_PREFIX_OFFSET, 16, 1, slabp, | 3057 | print_hex_dump(KERN_ERR, "", DUMP_PREFIX_OFFSET, 16, 1, slabp, |
3057 | sizeof(*slabp) + cachep->num * sizeof(kmem_bufctl_t), | 3058 | sizeof(*slabp) + cachep->num * sizeof(kmem_bufctl_t), |
3058 | 1); | 3059 | 1); |