1
0
Fork 0
mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2025-01-23 16:53:58 -05:00
linux/tools/objtool
Sami Tolvanen 3c68a92d17 objtool: Disable CFI warnings
The __cfi_ preambles contain a mov instruction that embeds the KCFI
type identifier in the following format:

  ; type preamble
  __cfi_function:
    mov <id>, %eax
  function:
    ...

While the preamble symbols are STT_FUNC and contain valid
instructions, they are never executed and always fall through. Skip
the warning for them.

.kcfi_traps sections point to CFI traps in text sections. Also skip
the warning about them referencing !ENDBR instructions.

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: Josh Poimboeuf <jpoimboe@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-18-samitolvanen@google.com
2022-09-26 10:13:15 -07:00
..
arch/x86 x86,objtool: Create .return_sites 2022-06-27 10:33:58 +02:00
Documentation
include/objtool x86/retbleed: Add fine grained Kconfig knobs 2022-06-29 17:43:41 +02:00
.gitignore
Build
builtin-check.c x86/retbleed: Add fine grained Kconfig knobs 2022-06-29 17:43:41 +02:00
check.c objtool: Disable CFI warnings 2022-09-26 10:13:15 -07:00
elf.c objtool: Preserve special st_shndx indexes in elf_update_symbol 2022-09-26 10:13:15 -07:00
Makefile
objtool.c x86,objtool: Create .return_sites 2022-06-27 10:33:58 +02:00
orc_dump.c
orc_gen.c
special.c
sync-check.sh
weak.c