]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
objtool: Handle Clang RSP musical chairs
authorJosh Poimboeuf <jpoimboe@kernel.org>
Fri, 6 Mar 2026 17:35:06 +0000 (09:35 -0800)
committerJosh Poimboeuf <jpoimboe@kernel.org>
Mon, 9 Mar 2026 15:45:10 +0000 (08:45 -0700)
commit7fdaa640c810cb42090a182c33f905bcc47a616a
treee5bd0269fc4677d89ecc064112b026533be390af
parent1fd1dc41724319406b0aff221a352a400b0ddfc5
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>
tools/objtool/arch/x86/decode.c
tools/objtool/check.c