]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
SLUB Debug: fix check for super sized slabs (>512k 64bit, >256k 32bit)
authorChristoph Lameter <clameter@sgi.com>
Wed, 23 May 2007 20:57:56 +0000 (13:57 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Thu, 24 May 2007 03:14:13 +0000 (20:14 -0700)
commit33e9e24101abac2bf3535d0d013d6d27d19197cb
tree04d4e3952331b66fef36efa0dc0612cd4f6385c9
parent418508c13222ddba475873ea95c8aeadd26104f2
SLUB Debug: fix check for super sized slabs (>512k 64bit, >256k 32bit)

The check for super sized slabs where we can no longer move the free
pointer behind the object for debugging purposes etc is accessing a
field that is not setup yet.  We must use objsize here since the size of
the slab has not been determined yet.

The effect of this is that a global slab shrink via "slabinfo -s" will
show errors about offsets being wrong if booted with slub_debug.
Potentially there are other troubles with huge slabs under slub_debug
because the calculated free pointer offset is truncated.

Signed-off-by: Christoph Lameter <clameter@sgi.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/slub.c