Skip to contentSkip to conversation

SLAB: Mention slab name when listing corrupt objects

PATCH New David Howells 1 participant 1 message Apr 2, 2007 Memory management

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 SLAB: Mention slab name when listing corrupt objects

Mention the slab name when listing corrupt objects. Although the function that released the memory is mentioned, that is frequently ambiguous as such functions often release several pieces of memory.

---

 mm/slab.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
mm/slab.c +2 -2
index 57f7aa4..4cbac24 100644
@@ -1802,8 +1802,8 @@ static void check_poison_obj(struct kmem_cache *cachep, void *objp)
 			/* Print header */
 			if (lines == 0) {
 				printk(KERN_ERR
-					"Slab corruption: start=%p, len=%d\n",
-					realobj, size);
+					"Slab corruption: %s start=%p, len=%d\n",
+					cachep->name, realobj, size);
 				print_objinfo(cachep, objp, 0);
 			}
 			/* Hexdump the affected line */