Commit d0f9562e authored by Sami Tolvanen's avatar Sami Tolvanen Committed by Kees Cook

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: default avatarSami Tolvanen <samitolvanen@google.com>
Reviewed-by: default avatarKees Cook <keescook@chromium.org>
Tested-by: default avatarKees Cook <keescook@chromium.org>
Tested-by: default avatarNathan Chancellor <nathan@kernel.org>
Acked-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
Tested-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: default avatarKees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/20220908215504.3686827-3-samitolvanen@google.com
parent f143ff39
...@@ -119,6 +119,7 @@ static bool is_ignored_symbol(const char *name, char type) ...@@ -119,6 +119,7 @@ static bool is_ignored_symbol(const char *name, char type)
"__ThumbV7PILongThunk_", "__ThumbV7PILongThunk_",
"__LA25Thunk_", /* mips lld */ "__LA25Thunk_", /* mips lld */
"__microLA25Thunk_", "__microLA25Thunk_",
"__kcfi_typeid_", /* CFI type identifiers */
NULL NULL
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment