Ubuntu-focal-kernel/scripts/mod
Masahiro Yamada 1a9031d233 modpost: fix section mismatch check for exported init/exit sections
BugLink: https://bugs.launchpad.net/bugs/1986995

commit 28438794aba47a27e922857d27b31b74e8559143 upstream.

Since commit f02e8a6596 ("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: f02e8a6596 ("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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
2022-08-26 11:11:23 +02:00
..
.gitignore
Makefile
devicetable-offsets.c
empty.c
file2alias.c modpost: add guid_t type definition 2019-09-04 22:55:42 +09:00
mk_elfconfig.c
modpost.c modpost: fix section mismatch check for exported init/exit sections 2022-08-26 11:11:23 +02:00
modpost.h symbol namespaces: revert to previous __ksymtab name scheme 2019-10-18 15:32:52 +02:00
sumversion.c kbuild: remove the first line of *.mod files 2019-07-18 02:19:31 +09:00