commit | bbd7d57bfe852d9788bae5fb171c7edb4021d8ac | [log] [tgz] |
---|---|---|
author | Eric Dumazet <eric.dumazet@gmail.com> | Wed Mar 24 22:25:47 2010 +0100 |
committer | Pekka Enberg <penberg@cs.helsinki.fi> | Sat May 22 10:57:30 2010 +0300 |
tree | 9b16ed244e0bd0b71a1d3d6e662be310f1e8f9c2 | |
parent | e40152ee1e1c7a63f4777791863215e3faa37a86 [diff] |
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 <eric.dumazet@gmail.com> Signed-off-by: Christoph Lameter <cl@linux-foundation.org> Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>