Masahiro Yamada 1b9980fb24 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:17:16 +02:00
..
2016-08-24 22:34:19 +02:00
2021-06-03 08:23:27 +02:00
2021-06-03 08:23:27 +02:00
2021-06-03 08:23:27 +02:00
2014-12-20 00:01:12 +01:00
2016-06-07 22:57:10 +02:00
2018-11-23 08:20:35 +01:00
2021-06-03 08:23:27 +02:00
2021-06-03 08:23:27 +02:00
2015-08-28 17:04:40 +02:00