Masahiro Yamada
ac0d234fe5
modpost: fix section mismatch check for exported init/exit sections
...
commit 28438794aba47a27e922857d27b31b74e8559143 upstream.
Since commit f02e8a6596b7 ("module: Sort exported symbols"),
EXPORT_SYMBOL* is placed in the individual section ___ksymtab(_gpl)+<sym>
(3 leading underscores instead of 2).
Since then, modpost cannot detect the bad combination of EXPORT_SYMBOL
and __init/__exit.
Fix the .fromsec field.
Fixes: f02e8a6596b7 ("module: Sort exported symbols")
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-07-02 16:18:10 +02:00
..
2017-08-10 01:01:03 +09:00
2019-06-11 12:21:51 +02:00
2022-01-27 09:01:01 +01:00
2022-04-20 09:08:32 +02:00
2019-12-05 15:37:04 +01:00
2017-11-02 11:10:55 +01:00
2021-05-22 10:57:37 +02:00
2017-03-28 16:16:52 +02:00
2022-07-02 16:18:10 +02:00
2018-05-30 07:52:21 +02:00
2019-05-04 09:15:17 +02:00
2021-08-15 13:03:31 +02:00
2017-06-23 14:17:38 -06:00
2018-05-30 07:52:17 +02:00
2016-04-06 14:06:48 +01:00
2021-06-03 08:36:11 +02:00
2017-05-14 11:20:44 +09:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-02-03 11:49:06 +01:00
2020-12-29 13:47:02 +01:00
2019-06-25 11:36:53 +08:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-12-14 09:53:06 +01:00
2021-06-03 08:36:11 +02:00
2016-10-11 15:06:30 -07:00
2020-07-29 07:42:54 +02:00
2020-05-20 08:17:01 +02:00
2021-01-12 20:09:06 +01:00
2021-06-03 08:36:11 +02:00
2017-05-14 11:20:44 +09:00
2017-05-14 11:20:44 +09:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-02-07 11:12:17 -08:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-07-07 15:09:09 -07:00
2017-05-14 11:20:44 +09:00
2017-08-08 11:09:31 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-12-25 14:26:33 +01:00
2017-11-02 11:10:55 +01:00
2020-01-04 13:59:51 +01:00
2020-06-30 15:38:06 -04:00
2018-02-25 11:07:58 +01:00
2017-11-02 11:10:55 +01:00
2021-11-26 11:40:28 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2021-03-07 11:27:41 +01:00
2017-11-02 11:10:55 +01:00
2021-02-23 14:00:33 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2022-02-23 11:57:32 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-02-16 20:23:04 +01:00
2018-03-15 10:54:33 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2019-08-25 10:50:14 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-05-14 11:20:44 +09:00
2021-07-28 11:12:15 +02:00
2017-11-02 11:10:55 +01:00
2020-06-25 15:41:50 +02:00
2017-11-02 11:10:55 +01:00
2017-03-13 09:40:28 -07:00
2019-10-29 09:16:59 +01:00
2017-03-11 11:13:38 +09:00
2020-04-02 16:34:15 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2021-03-17 16:34:28 +01:00
2019-07-31 07:28:53 +02:00
2022-01-05 12:33:48 +01:00
2020-11-05 11:06:51 +01:00
2021-06-03 08:36:11 +02:00
2017-02-10 12:43:47 +11:00
2016-11-14 11:11:51 +11:00
2017-10-03 17:54:23 -07:00
2021-06-03 08:36:11 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-06-06 08:42:34 +09:00
2018-12-08 13:03:35 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00