linux/tools/objtool/arch/x86
Josh Poimboeuf 7fdaa640c8 objtool: Handle Clang RSP musical chairs
For no apparent reason (possibly related to CONFIG_KMSAN), Clang can
randomly pass the value of RSP to other registers and then back again to
RSP.  Handle that accordingly.

Fixes the following warnings:

  drivers/input/misc/uinput.o: warning: objtool: uinput_str_to_user+0x165: undefined stack state
  drivers/input/misc/uinput.o: warning: objtool: uinput_str_to_user+0x165: unknown CFA base reg -1

Reported-by: Arnd Bergmann <arnd@arndb.de>
Closes: https://lore.kernel.org/90956545-2066-46e3-b547-10c884582eb0@app.fastmail.com
Link: https://patch.msgid.link/240e6a172cc73292499334a3724d02ccb3247fc7.1772818491.git.jpoimboe@kernel.org
Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>
2026-03-09 08:45:10 -07:00
..
include/arch objtool: Add elf_create_section_pair() 2023-06-07 10:03:17 -07:00
Build objtool: Add Function to get the name of a CPU feature 2025-11-24 20:39:47 +01:00
decode.c objtool: Handle Clang RSP musical chairs 2026-03-09 08:45:10 -07:00
orc.c objtool: Add annotype() helper 2025-10-14 14:46:49 -07:00
special.c objtool: Add Function to get the name of a CPU feature 2025-11-24 20:39:47 +01:00