From: Eric Dumazet Date: Wed, 24 Mar 2010 21:25:47 +0000 (+0100) Subject: slub: Potential stack overflow X-Git-Tag: v2.6.35-rc1~421^2^6~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bbd7d57bfe852d9788bae5fb171c7edb4021d8ac;p=pandora-kernel.git slub: Potential stack overflow I discovered that we can overflow stack if CONFIG_SLUB_DEBUG=y and use slabs with many objects, since list_slab_objects() and process_slab() use DECLARE_BITMAP(map, page->objects). With 65535 bits, we use 8192 bytes of stack ... Switch these allocations to dynamic allocations. Signed-off-by: Eric Dumazet Signed-off-by: Christoph Lameter Signed-off-by: Pekka Enberg --- Reading git-diff-tree failed