From: Arnd Bergmann <arnd@arndb.de>
When CONFIG_MODULE_UNLOAD is disabled, the module->exit member
is not defined, causing a build failure:
kernel/module.c:4493:8: error: no member named 'exit' in 'struct module'
mod->exit = *exit;
add an #ifdef block around this.
Fixes: cf68fffb66d6 ("add support for Clang CFI")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
kernel/module.c | 2 ++
1 file changed, 2 insertions(+)
From: Miroslav Benes <mbenes@suse.cz> Date: 2021-09-27 13:34:27
On Mon, 27 Sep 2021, Arnd Bergmann wrote:
From: Arnd Bergmann <arnd@arndb.de>
When CONFIG_MODULE_UNLOAD is disabled, the module->exit member
is not defined, causing a build failure:
kernel/module.c:4493:8: error: no member named 'exit' in 'struct module'
mod->exit = *exit;
add an #ifdef block around this.
Fixes: cf68fffb66d6 ("add support for Clang CFI")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
From: Sami Tolvanen <samitolvanen@google.com> Date: 2021-09-27 15:27:28
Hi Arnd,
On Mon, Sep 27, 2021 at 5:15 AM Arnd Bergmann [off-list ref] wrote:
quoted hunk
From: Arnd Bergmann <arnd@arndb.de>
When CONFIG_MODULE_UNLOAD is disabled, the module->exit member
is not defined, causing a build failure:
kernel/module.c:4493:8: error: no member named 'exit' in 'struct module'
mod->exit = *exit;
add an #ifdef block around this.
Fixes: cf68fffb66d6 ("add support for Clang CFI")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
kernel/module.c | 2 ++
1 file changed, 2 insertions(+)
On Mon, Sep 27, 2021 at 02:15:10PM +0200, Arnd Bergmann wrote:
From: Arnd Bergmann <arnd@arndb.de>
When CONFIG_MODULE_UNLOAD is disabled, the module->exit member
is not defined, causing a build failure:
kernel/module.c:4493:8: error: no member named 'exit' in 'struct module'
mod->exit = *exit;
add an #ifdef block around this.
Fixes: cf68fffb66d6 ("add support for Clang CFI")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Nice catch; thanks! (Not a lot of config build that way it seems...)
Acked-by: Kees Cook <redacted>
--
Kees Cook
From: Arnd Bergmann <arnd@arndb.de>
When CONFIG_MODULE_UNLOAD is disabled, the module->exit member
is not defined, causing a build failure:
kernel/module.c:4493:8: error: no member named 'exit' in 'struct module'
mod->exit = *exit;
add an #ifdef block around this.
Fixes: cf68fffb66d6 ("add support for Clang CFI")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>