]> git.baikalelectronics.ru Git - kernel.git/commit
SLUB's ksize() fails for size > 2048
authorVegard Nossum <vegard.nossum@gmail.com>
Wed, 5 Dec 2007 07:45:30 +0000 (23:45 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Wed, 5 Dec 2007 17:21:20 +0000 (09:21 -0800)
commitefa35dc669d7933d67844e4d88735ff5ab82c5b8
tree2cbf9d33ccafa5042dbde85641d4ca27dcf47dc5
parent1cb922b38a17de214c319cd4f2bd810d84ac53b1
SLUB's ksize() fails for size > 2048

I can't pass memory allocated by kmalloc() to ksize() if it is allocated by
SLUB allocator and size is larger than (I guess) PAGE_SIZE / 2.

The error of ksize() seems to be that it does not check if the allocation
was made by SLUB or the page allocator.

Reviewed-by: Pekka Enberg <penberg@cs.helsinki.fi>
Tested-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Cc: Christoph Lameter <clameter@sgi.com>, Matt Mackall <mpm@selenic.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/slub.c