Skip to content

Commit 0ebd652

Browse files
author
Pekka Enberg
committed
slub: dump more data on slab corruption
The limit of 128 bytes is too small when debugging slab corruption of the skb cache, for example. So increase the limit to PAGE_SIZE to make debugging corruptions easier. Acked-by: Ingo Molnar <mingo@elte.hu> Acked-by: Christoph Lameter <cl@linux-foundation.org> Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
1 parent 41ab859 commit 0ebd652

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mm/slub.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@ static void print_trailer(struct kmem_cache *s, struct page *page, u8 *p)
492492
if (p > addr + 16)
493493
print_section("Bytes b4", p - 16, 16);
494494

495-
print_section("Object", p, min(s->objsize, 128));
495+
print_section("Object", p, min_t(unsigned long, s->objsize, PAGE_SIZE));
496496

497497
if (s->flags & SLAB_RED_ZONE)
498498
print_section("Redzone", p + s->objsize,

0 commit comments

Comments
 (0)