summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorSami Tolvanen <samitolvanen@google.com>2022-09-08 14:54:44 -0700
committerKees Cook <keescook@chromium.org>2022-09-26 10:13:12 -0700
commitd0f9562ee43a135b941715d9e5e607de88898aca (patch)
tree49f16c8a57cf2b485444c6d37eae318dec822ba1 /scripts
parentf143ff397a3f991e8b48542f77aad900845f436e (diff)
downloadlinux-stable-d0f9562ee43a135b941715d9e5e607de88898aca.tar.gz
linux-stable-d0f9562ee43a135b941715d9e5e607de88898aca.tar.bz2
linux-stable-d0f9562ee43a135b941715d9e5e607de88898aca.zip
scripts/kallsyms: Ignore __kcfi_typeid_
The compiler generates __kcfi_typeid_ symbols for annotating assembly functions with type information. These are constants that can be referenced in assembly code and are resolved by the linker. Ignore them in kallsyms. Signed-off-by: Sami Tolvanen <samitolvanen@google.com> Reviewed-by: Kees Cook <keescook@chromium.org> Tested-by: Kees Cook <keescook@chromium.org> Tested-by: Nathan Chancellor <nathan@kernel.org> Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org> Tested-by: Peter Zijlstra (Intel) <peterz@infradead.org> Signed-off-by: Kees Cook <keescook@chromium.org> Link: https://lore.kernel.org/r/20220908215504.3686827-3-samitolvanen@google.com
Diffstat (limited to 'scripts')
-rw-r--r--scripts/kallsyms.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/kallsyms.c b/scripts/kallsyms.c
index f18e6dfc68c5..ccdf0c897f31 100644
--- a/scripts/kallsyms.c
+++ b/scripts/kallsyms.c
@@ -119,6 +119,7 @@ static bool is_ignored_symbol(const char *name, char type)
"__ThumbV7PILongThunk_",
"__LA25Thunk_", /* mips lld */
"__microLA25Thunk_",
+ "__kcfi_typeid_", /* CFI type identifiers */
NULL
};