slub: fix slab_pad_check()
authorEric Dumazet <eric.dumazet@gmail.com>
Thu, 3 Sep 2009 14:08:06 +0000 (16:08 +0200)
committerPekka Enberg <penberg@cs.helsinki.fi>
Mon, 14 Sep 2009 04:57:55 +0000 (07:57 +0300)
commit8a3d271deb0cc9c2fc47317d8e431046382939c9
tree0e6d53380e24bee70afb6102faa3fea8b762f0aa
parent5788d8ad6c113c589eeaaa48a173adbbe6b1cb3d
slub: fix slab_pad_check()

When SLAB_POISON is used and slab_pad_check() finds an overwrite of the
slab padding, we call restore_bytes() on the whole slab, not only
on the padding.

Acked-by: Christoph Lameer <cl@linux-foundation.org>
Reported-by: Zdenek Kabelac <zdenek.kabelac@gmail.com>
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
mm/slub.c