Rusty Russell
1d60939abd
module: fix out-by-one error in kallsyms
...
commit 59ef28b1f1 upstream.
Masaki found and patched a kallsyms issue: the last symbol in a
module's symtab wasn't transferred. This is because we manually copy
the zero'th entry (which is always empty) then copy the rest in a loop
starting at 1, though from src[0]. His fix was minimal, I prefer to
rewrite the loops in more standard form.
There are two loops: one to get the size, and one to copy. Make these
identical: always count entry 0 and any defined symbol in an allocated
non-init section.
This bug exists since the following commit was introduced.
module: reduce symbol table for loaded modules (v2)
commit: 4a4962263f
LKML: http://lkml.org/lkml/2012/10/24/27
Reported-by: Masaki Kimura <masaki.kimura.kz@hitachi.com >
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au >
[bwh: Backported to 3.2: we're still using a bitmap to compress the string
table]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk >
2012-11-16 16:47:01 +00:00
..
2012-04-13 08:33:48 -07:00
2012-09-19 15:05:06 +01:00
2011-07-26 16:49:45 -07:00
2012-08-10 00:24:41 +01:00
2012-08-02 14:37:43 +01:00
2012-10-30 23:26:40 +00:00
2012-07-12 04:32:09 +01:00
2012-10-10 03:31:09 +01:00
2012-09-12 03:37:02 +01:00
2011-10-31 09:20:12 -04:00
2011-10-31 09:20:12 -04:00
2011-10-31 09:20:12 -04:00
2011-11-24 11:58:22 -08:00
2012-10-30 23:26:48 +00:00
2012-05-31 00:43:51 +01:00
2011-07-25 20:57:15 -07:00
2011-09-23 12:05:29 +05:30
2011-11-06 19:44:47 -08:00
2012-10-10 03:31:14 +01:00
2011-11-06 19:44:47 -08:00
2012-04-13 08:33:50 -07:00
2011-10-31 09:20:12 -04:00
2012-10-10 03:30:50 +01:00
2012-08-02 14:37:36 +01:00
2011-11-06 19:44:47 -08:00
2012-04-22 15:31:15 -07:00
2012-08-10 00:24:50 +01:00
2011-10-31 09:20:12 -04:00
2012-07-25 04:11:37 +01:00
2012-01-03 16:14:32 -08:00
2011-10-31 09:20:12 -04:00
2011-12-05 13:28:46 -05:00
2011-10-30 15:16:42 +01:00
2011-10-31 09:20:12 -04:00
2011-10-26 13:10:39 +10:30
2012-03-12 12:31:26 -07:00
2011-10-31 09:20:13 -04:00
2011-10-31 09:20:12 -04:00
2011-10-31 09:20:12 -04:00
2011-10-31 09:20:12 -04:00
2011-12-06 18:18:13 +01:00
2011-10-28 12:02:27 -07:00
2012-11-16 16:47:01 +00:00
2011-10-31 09:20:12 -04:00
2011-10-31 09:20:12 -04:00
2011-10-31 09:20:12 -04:00
2011-10-31 09:20:12 -04:00
2011-10-31 09:20:12 -04:00
2012-02-13 11:16:59 -08:00
2011-10-31 09:20:13 -04:00
2011-10-31 09:20:12 -04:00
2011-10-26 16:17:32 +02:00
2011-10-31 09:20:12 -04:00
2011-12-09 07:50:28 -08:00
2011-10-31 09:20:12 -04:00
2012-01-04 15:01:59 -08:00
2011-10-31 09:20:11 -04:00
2011-09-28 21:38:21 -07:00
2011-10-31 09:20:12 -04:00
2011-10-31 09:20:13 -04:00
2011-10-31 09:20:13 -04:00
2011-09-28 21:38:46 -07:00
2011-09-28 21:38:48 -07:00
2011-09-28 21:38:22 -07:00
2012-10-17 03:48:43 +01:00
2011-09-28 21:38:48 -07:00
2012-07-12 04:31:59 +01:00
2011-10-31 09:20:12 -04:00
2011-10-31 09:20:12 -04:00
2011-10-31 09:20:12 -04:00
2011-10-31 09:20:12 -04:00
2011-10-31 09:20:12 -04:00
2011-10-31 09:20:12 -04:00
2011-08-14 12:01:11 +02:00
2011-08-14 12:01:11 +02:00
2012-08-02 14:37:38 +01:00
2011-11-14 12:50:40 +01:00
2012-07-25 04:11:09 +01:00
2012-02-13 11:16:56 -08:00
2011-09-13 11:11:55 +02:00
2012-10-17 03:50:03 +01:00
2012-10-10 03:31:14 +01:00
2011-10-31 09:20:12 -04:00
2012-05-11 13:15:04 +01:00
2011-10-31 09:20:12 -04:00
2011-10-31 09:20:12 -04:00
2011-10-31 09:20:12 -04:00
2011-10-31 09:20:12 -04:00
2011-10-31 09:20:12 -04:00
2011-11-06 19:44:47 -08:00
2011-10-31 17:30:44 -07:00
2012-10-30 23:26:53 +00:00
2011-12-20 10:25:04 -08:00
2011-08-12 16:21:35 -05:00
2012-04-13 08:33:49 -07:00
2011-09-19 17:04:37 -07:00
2011-10-31 09:20:12 -04:00
2012-10-30 23:26:39 +00:00
2012-01-25 16:13:52 -08:00
2011-09-19 17:10:57 -07:00
2011-10-31 09:20:12 -04:00
2011-10-31 09:20:12 -04:00
2011-10-31 09:20:12 -04:00
2011-10-31 09:20:12 -04:00
2011-11-06 19:44:47 -08:00
2011-10-31 09:20:12 -04:00
2011-10-31 09:20:12 -04:00
2011-10-31 17:30:53 -07:00
2012-10-17 03:48:33 +01:00