]> git.hungrycats.org Git - linux/commit
objtool: Fix Clang jump table detection
authorJosh Poimboeuf <jpoimboe@kernel.org>
Mon, 9 Mar 2026 16:03:05 +0000 (09:03 -0700)
committerJosh Poimboeuf <jpoimboe@kernel.org>
Mon, 16 Mar 2026 22:31:25 +0000 (15:31 -0700)
commit4e5019216402ad0b4a84cff457b662d26803f103
tree7b06f55538b7aef35eb8060b80da556f7f6058af
parent6f93f7b06810d04acc6b106a7d5ecd6000f80545
objtool: Fix Clang jump table detection

With Clang, there can be a conditional forward jump between the load of
the jump table address and the indirect branch.

Fixes the following warning:

  vmlinux.o: warning: objtool: ___bpf_prog_run+0x1c5: sibling call from callable instruction with modified stack frame

Reported-by: Arnd Bergmann <arnd@arndb.de>
Closes: https://lore.kernel.org/a426d669-58bb-4be1-9eaa-6f3d83109e2d@app.fastmail.com
Link: https://patch.msgid.link/7d8600caed08901b6679767488acd639f6df9688.1773071992.git.jpoimboe@kernel.org
Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>
tools/objtool/check.c