scripts/kallsyms: Ignore __kcfi_typeid_
authorSami Tolvanen <samitolvanen@google.com>
Thu, 8 Sep 2022 21:54:44 +0000 (14:54 -0700)
committerKees Cook <keescook@chromium.org>
Mon, 26 Sep 2022 17:13:12 +0000 (10:13 -0700)
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
scripts/kallsyms.c

index f18e6df..ccdf0c8 100644 (file)
@@ -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
        };