mtd: mtd_torturetest can cause stack overflows
authorAl Cooper <alcooperx@gmail.com>
Tue, 5 Feb 2013 14:08:10 +0000 (09:08 -0500)
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Wed, 13 Feb 2013 12:49:42 +0000 (14:49 +0200)
mtd_torturetest uses the module parm "ebcnt" to control the size of a
stack based array of int's. When "ebcnt" is large, Ex: 1000, it
causes stack overflows on systems with small kernel stacks. The fix
is to move the array from the stack to kmalloc memory.

Signed-off-by: Al Cooper <alcooperx@gmail.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>

No differences found