diff options
author | Sami Tolvanen <samitolvanen@google.com> | 2022-09-08 23:54:44 +0200 |
---|---|---|
committer | Kees Cook <keescook@chromium.org> | 2022-09-26 19:13:12 +0200 |
commit | d0f9562ee43a135b941715d9e5e607de88898aca (patch) | |
tree | 49f16c8a57cf2b485444c6d37eae318dec822ba1 /scripts/kallsyms.c | |
parent | treewide: Filter out CC_FLAGS_CFI (diff) | |
download | linux-d0f9562ee43a135b941715d9e5e607de88898aca.tar.xz linux-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/kallsyms.c')
-rw-r--r-- | scripts/kallsyms.c | 1 |
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 }; |