Chen Gang
e3f26752f0
kernel: kallsyms: memory override issue, need check destination buffer length
...
We don't export any symbols > 128 characters, but if we did then
kallsyms_expand_symbol() would overflow the buffer handed to it.
So we need check destination buffer length when copying.
the related test:
if we define an EXPORT function which name more than 128.
will panic when call kallsyms_lookup_name by init_kprobes on booting.
after check the length (provide this patch), it is ok.
Implementaion:
add additional destination buffer length parameter (maxlen)
if uncompressed string is too long (>= maxlen), it will be truncated.
not check the parameters whether valid, since it is a static function.
Signed-off-by: Chen Gang <gang.chen@asianux.com >
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au >
2013-04-15 15:17:26 +09:30
..
2013-03-02 08:31:39 -08:00
2013-02-27 19:10:24 -08:00
2013-01-11 11:39:33 -08:00
2013-02-26 20:16:07 -08:00
2013-02-21 12:05:51 -08:00
2013-02-28 12:52:24 -08:00
2013-02-28 19:48:26 -08:00
2013-03-11 07:54:29 -07:00
2013-02-26 20:16:07 -08:00
2013-02-19 22:01:33 -08:00
2013-01-11 14:54:55 -08:00
2013-01-11 14:54:55 -08:00
2013-01-11 14:54:56 -08:00
2013-01-10 14:35:23 -08:00
2013-01-11 14:54:55 -08:00
2012-11-19 08:13:38 -08:00
2013-02-27 19:10:24 -08:00
2013-02-23 18:50:11 -08:00
2013-02-19 18:19:48 -08:00
2013-02-19 19:04:55 -08:00
2013-02-20 09:18:31 -08:00
2012-12-18 10:55:28 -08:00
2013-01-27 19:23:31 +01:00
2013-02-27 19:10:11 -08:00
2013-02-27 19:10:12 -08:00
2013-02-23 18:50:11 -08:00
2013-02-27 16:59:05 -05:00
2013-02-19 19:05:45 -08:00
2013-02-05 00:48:46 +01:00
2013-04-15 15:17:26 +09:30
2012-12-20 17:40:19 -08:00
2013-02-27 19:10:12 -08:00
2013-01-23 09:31:01 -08:00
2013-02-27 19:10:24 -08:00
2012-12-11 18:10:49 -08:00
2012-12-12 17:38:33 -08:00
2013-02-27 19:10:11 -08:00
2013-04-11 13:22:34 +09:30
2013-03-15 15:09:43 +10:30
2012-12-20 17:40:21 -08:00
2012-12-05 11:27:24 +10:30
2013-03-20 11:27:26 +10:30
2013-02-07 20:51:08 +01:00
2013-02-26 20:16:07 -08:00
2012-12-06 17:16:23 +08:00
2013-01-21 17:17:57 +10:30
2012-12-25 16:10:05 -08:00
2013-02-27 19:10:24 -08:00
2013-02-19 19:05:45 -08:00
2013-02-27 19:10:19 -08:00
2013-02-25 16:46:44 -08:00
2013-01-24 15:37:26 +01:00
2013-02-08 17:47:13 +01:00
2013-01-28 22:06:21 -08:00
2013-01-28 22:25:21 -08:00
2013-01-28 22:06:21 -08:00
2013-01-28 22:25:21 -08:00
2013-02-04 12:18:20 -08:00
2013-01-08 14:12:19 -08:00
2012-11-16 10:05:57 -08:00
2013-01-28 22:25:21 -08:00
2013-01-28 22:25:21 -08:00
2013-02-22 23:31:31 -05:00
2012-12-18 15:02:12 -08:00
2013-02-07 20:51:08 +01:00
2013-02-07 20:51:08 +01:00
2013-02-07 20:51:08 +01:00
2013-01-11 14:54:55 -08:00
2013-03-02 19:32:06 -08:00
2013-02-21 17:22:20 -08:00
2013-03-08 15:05:34 -08:00
2013-03-05 18:10:04 -08:00
2013-02-07 15:19:36 -08:00
2013-02-26 22:25:17 +01:00
2012-12-14 13:05:22 +10:30
2013-02-27 19:10:09 -08:00
2013-02-27 19:10:21 -08:00
2013-03-02 07:58:56 -08:00
2013-02-21 17:22:19 -08:00
2013-02-16 23:17:25 +01:00
2013-02-19 18:19:48 -08:00
2013-02-27 19:10:24 -08:00
2013-01-27 19:23:31 +01:00
2013-01-26 22:12:04 -08:00
2013-02-27 19:10:24 -08:00
2013-02-27 19:10:24 -08:00
2013-02-27 19:10:22 -08:00
2013-02-27 19:10:22 -08:00
2012-12-06 10:39:54 +01:00
2013-02-22 19:25:09 -08:00
2013-02-13 19:29:12 -08:00
2013-02-27 19:10:24 -08:00