[PATCH 4/4] module: Include .static_call_sites in module ro_after_init

From: Kees Cook
Date: Wed Sep 01 2021 - 19:38:14 EST


The RO_AFTER_INIT_DATA macro and module_sections_ro_after_init[] need
to be kept in sync.

Cc: Jessica Yu <jeyu@xxxxxxxxxx>
Cc: Josh Poimboeuf <jpoimboe@xxxxxxxxxx>
Cc: Peter Zijlstra (Intel) <peterz@xxxxxxxxxxxxx>
Fixes: 9183c3f9ed71 ("static_call: Add inline static call infrastructure")
Signed-off-by: Kees Cook <keescook@xxxxxxxxxxxx>
---
kernel/module.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/kernel/module.c b/kernel/module.c
index b0ff82cc48fe..06410eb68dea 100644
--- a/kernel/module.c
+++ b/kernel/module.c
@@ -3521,6 +3521,7 @@ core_param(module_blacklist, module_blacklist, charp, 0400);
static const char * const module_sections_ro_after_init[] = {
".data..ro_after_init",
"__jump_table",
+ ".static_call_sites",
NULL
};

--
2.30.2