Bruno Prémont
e687d691cb
viafb: fix crashes due to 4k stack overflow
...
The function viafb_cursor() uses 2 stack-variables of CURSOR_SIZE bits;
CURSOR_SIZE is defined as (8 * 1024). Using up twice 1k on stack is too
much for 4k-stack (though it works with 8k-stacks). Make those two
variables kzalloc'ed to preserve stack space.
Also merge the whole lot of local struct's in viafb_ioctl into a union so
the stack usage gets minimized here as well. (struct's are only accessed
in their indicidual IOCTL case) This second part is only compile-tested as
I know of no userspace app using the IOCTLs.
Signed-off-by: Bruno Prémont <bonbons@linux-vserver.org>
Cc: <JosephChan@via.com.tw>
Cc: Krzysztof Helt <krzysztof.h1@poczta.fm>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2009-01-04 13:33:20 -08:00
..
2008-12-10 16:53:32 -08:00
2008-11-19 18:50:00 -08:00
2008-12-30 17:25:49 -08:00
2008-10-16 09:24:45 -07:00
2008-07-24 10:47:40 -07:00
2008-03-19 18:53:36 -07:00
2008-10-16 11:21:42 -07:00
2007-10-16 09:43:17 -07:00
2008-05-14 19:11:14 -07:00
2008-10-16 11:21:45 -07:00
2008-12-10 08:01:54 -08:00
2008-03-10 18:01:20 -07:00
2008-04-28 08:58:42 -07:00
2008-12-01 17:40:54 +00:00
2008-08-07 09:55:48 +01:00
2008-04-28 08:58:42 -07:00
2008-04-28 08:58:38 -07:00
2008-07-24 10:47:37 -07:00
2008-08-23 12:14:12 -07:00
2009-01-04 13:33:20 -08:00
2007-07-17 10:23:11 -07:00
2008-08-07 09:55:48 +01:00
2008-11-30 17:46:52 +00:00
2008-07-24 10:47:40 -07:00
2007-10-16 09:43:17 -07:00
2008-08-23 12:14:12 -07:00
2007-05-04 17:59:05 -07:00
2007-05-04 17:59:05 -07:00
2007-05-04 17:59:05 -07:00
2007-05-04 17:59:05 -07:00
2007-05-04 17:59:05 -07:00
2008-07-24 10:47:37 -07:00
2007-05-04 17:59:05 -07:00
2008-11-19 18:49:57 -08:00
2007-10-18 14:37:17 -07:00
2006-12-08 08:29:06 -08:00
2007-07-19 10:04:50 -07:00
2008-08-27 10:51:02 +08:00
2008-07-24 10:47:40 -07:00
2008-08-31 01:23:17 -07:00
2008-07-20 17:24:39 -07:00
2008-07-24 10:47:34 -07:00
2008-10-16 11:21:45 -07:00
2008-07-24 10:47:34 -07:00
2008-04-28 08:58:35 -07:00
2008-04-28 08:58:35 -07:00
2008-04-28 08:58:42 -07:00
2008-08-31 01:23:17 -07:00
2008-10-10 12:12:41 -07:00
2008-08-31 01:23:17 -07:00
2008-02-23 10:40:04 -08:00
2008-11-19 18:49:59 -08:00
2008-08-07 09:55:48 +01:00
2008-07-24 10:47:40 -07:00
2008-12-21 14:21:16 +11:00
2008-12-08 01:00:08 -08:00
2008-02-03 17:31:49 +02:00
2008-05-18 13:28:49 -07:00
2008-10-16 11:21:44 -07:00
2008-08-07 09:55:48 +01:00
2008-07-14 22:38:28 +02:00
2008-12-22 18:44:48 +09:00
2008-04-28 08:58:35 -07:00
2007-10-16 09:43:17 -07:00
2007-10-16 09:43:17 -07:00
2006-12-08 08:29:05 -08:00
2008-11-19 18:49:57 -08:00
2008-10-16 11:21:44 -07:00
2007-05-08 11:15:26 -07:00
2008-08-31 01:23:17 -07:00
2007-07-17 10:23:12 -07:00
2008-08-15 08:35:43 -07:00
2008-04-28 08:58:40 -07:00
2007-05-02 19:02:35 -07:00
2008-07-30 09:41:47 -07:00
2008-04-28 08:58:35 -07:00
2008-04-28 08:58:41 -07:00
2008-07-24 10:47:39 -07:00
2008-07-30 02:16:12 +09:00
2008-05-18 13:28:50 -07:00
2008-02-06 10:41:16 -08:00
2008-04-28 08:58:42 -07:00
2008-12-16 15:43:50 +01:00
2008-12-30 17:36:49 -08:00
2008-10-10 12:13:22 -07:00
2008-12-28 20:00:05 +01:00
2007-07-17 10:23:13 -07:00
2007-07-17 10:23:13 -07:00
2008-11-06 15:41:18 -08:00
2007-02-14 08:09:54 -08:00
2008-10-15 10:19:51 -07:00
2008-06-06 11:29:12 -07:00
2008-04-28 08:58:41 -07:00
2008-10-16 11:21:42 -07:00
2008-07-22 10:39:36 +10:00
2007-10-12 14:51:04 -07:00
2008-08-31 01:23:17 -07:00
2008-06-09 13:46:38 +10:00
2008-08-20 15:40:31 -07:00
2008-04-28 08:58:42 -07:00
2008-02-06 10:41:18 -08:00
2007-10-16 09:43:19 -07:00
2007-10-16 09:43:20 -07:00
2008-12-16 14:39:33 +11:00
2008-07-29 22:10:01 +09:00
2008-12-29 18:08:11 +00:00
2008-12-29 18:00:04 +08:00
2007-07-17 10:23:12 -07:00
2008-10-16 11:21:45 -07:00
2008-08-07 09:55:48 +01:00
2008-05-24 09:56:13 -07:00
2008-08-23 12:14:12 -07:00
2008-11-27 12:37:59 +00:00
2008-07-24 10:47:37 -07:00
2008-05-08 21:37:30 -07:00
2008-05-08 21:37:30 -07:00
2008-07-10 18:55:40 +02:00
2008-12-22 18:42:54 +09:00
2008-12-22 18:44:48 +09:00
2008-07-24 10:47:39 -07:00
2008-07-24 10:47:40 -07:00
2008-04-28 08:58:42 -07:00
2008-07-26 12:00:12 -07:00
2008-07-26 12:00:12 -07:00
2008-05-08 21:37:30 -07:00
2008-05-08 21:37:30 -07:00
2007-10-16 09:43:22 -07:00
2008-04-28 08:58:35 -07:00
2008-04-28 08:58:35 -07:00
2008-04-28 08:58:42 -07:00
2008-08-31 01:23:17 -07:00
2008-10-16 11:21:42 -07:00
2007-10-16 09:43:23 -07:00
2008-11-19 18:49:58 -08:00
2008-07-24 10:47:36 -07:00
2008-10-16 11:21:44 -07:00
2007-07-19 10:04:50 -07:00
2006-12-08 08:29:06 -08:00
2008-07-24 10:47:39 -07:00
2008-10-16 11:21:42 -07:00
2007-05-08 11:15:32 -07:00
2008-08-23 12:14:12 -07:00
2008-07-04 10:40:08 -07:00
2008-11-30 10:03:38 -08:00
2008-11-14 09:59:48 -07:00