WSL2-Linux-Kernel/tools/objtool
John Sperbeck 37ffa428d5 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:26:43 +01:00
..
Documentation
arch/x86 objtool/x86: Fix SRSO mess 2023-08-30 16:18:10 +02:00
include/objtool objtool/x86: Fix SRSO mess 2023-08-30 16:18:10 +02:00
.gitignore
Build
Makefile kbuild: Allow kernel installation packaging to override pkg-config 2023-02-01 08:27:30 +01:00
builtin-check.c x86/retbleed: Add fine grained Kconfig knobs 2022-07-23 12:54:10 +02:00
builtin-orc.c
check.c objtool/x86: add missing embedded_insn check 2023-11-08 17:26:43 +01:00
elf.c objtool: Preserve special st_shndx indexes in elf_update_symbol 2022-10-26 12:34:37 +02:00
objtool.c x86,objtool: Create .return_sites 2022-07-23 12:53:58 +02:00
orc_dump.c
orc_gen.c objtool: Introduce CFI hash 2022-07-23 12:53:51 +02:00
special.c objtool,x86: Replace alternatives with .retpoline_sites 2022-07-23 12:53:51 +02:00
sync-check.sh
weak.c