linux-stable/tools/objtool
John Sperbeck 4a20f5ea62 objtool/x86: add missing embedded_insn check
When dbf4600877 ("objtool/x86: Fixup frame-pointer vs rethunk")
was backported to some stable branches, the check for dest->embedded_insn
in is_special_call() was missed.  The result is that the warning it
was intended to suppress still appears.  For example on 6.1 (on kernels
before 6.1, the '-s' argument would instead be 'check'):

$ tools/objtool/objtool -s arch/x86/lib/retpoline.o
arch/x86/lib/retpoline.o: warning: objtool: srso_untrain_ret+0xd:
    call without frame pointer save/setup

With this patch, the warning is correctly suppressed, and the
kernel still passes the normal Google kernel developer tests.

Signed-off-by: John Sperbeck <jsperbeck@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-11-08 17:30:47 +01:00
..
Documentation objtool: Support stack layout changes in alternatives 2022-07-25 11:26:06 +02:00
arch/x86 objtool/x86: Fix SRSO mess 2023-08-30 16:23:09 +02:00
.gitignore
Build
Makefile objtool: Refactor ORC section generation 2022-07-25 11:26:05 +02:00
arch.h objtool/x86: Fix SRSO mess 2023-08-30 16:23:09 +02:00
builtin-check.c x86/retbleed: Add fine grained Kconfig knobs 2022-07-25 11:26:50 +02:00
builtin-orc.c objtool: Refactor ORC section generation 2022-07-25 11:26:05 +02:00
builtin.h x86/retbleed: Add fine grained Kconfig knobs 2022-07-25 11:26:50 +02:00
cfi.h objtool: Introduce CFI hash 2022-07-25 11:26:22 +02:00
check.c objtool/x86: add missing embedded_insn check 2023-11-08 17:30:47 +01:00
check.h objtool: Re-add UNWIND_HINT_{SAVE_RESTORE} 2022-07-25 11:26:47 +02:00
elf.c objtool: Preserve special st_shndx indexes in elf_update_symbol 2022-10-26 13:25:18 +02:00
elf.h objtool/x86: Fix SRSO mess 2023-08-30 16:23:09 +02:00
objtool.c x86,objtool: Create .return_sites 2022-07-25 11:26:36 +02:00
objtool.h x86,objtool: Create .return_sites 2022-07-25 11:26:36 +02:00
orc_dump.c
orc_gen.c objtool: Introduce CFI hash 2022-07-25 11:26:22 +02:00
special.c objtool,x86: Replace alternatives with .retpoline_sites 2022-07-25 11:26:23 +02:00
special.h
sync-check.sh x86/insn: Add a __ignore_sync_check__ marker 2022-07-25 11:26:11 +02:00
warn.h
weak.c objtool: Refactor ORC section generation 2022-07-25 11:26:05 +02:00