]> git.ipfire.org Git - thirdparty/linux.git/commit
objtool: Allow stack operations in UNWIND_HINT_UNDEFINED regions
authorJosh Poimboeuf <jpoimboe@kernel.org>
Mon, 5 Jun 2023 16:12:21 +0000 (09:12 -0700)
committerJosh Poimboeuf <jpoimboe@kernel.org>
Wed, 7 Jun 2023 17:03:11 +0000 (10:03 -0700)
commit1e4b619185e83e54aca617cf5070c64a88fe936b
tree41fd2c6f5afb7ccc77947cd8f36228967658c48a
parentac27ecf68a1ada240bb71531dc2d30cde04ad70a
objtool: Allow stack operations in UNWIND_HINT_UNDEFINED regions

If the code specified UNWIND_HINT_UNDEFINED, skip the "undefined stack
state" warning due to a stack operation.  Just ignore the stack op and
continue to propagate the undefined state.

Link: https://lore.kernel.org/r/820c5b433f17c84e8761fb7465a8d319d706b1cf.1685981486.git.jpoimboe@kernel.org
Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>
tools/objtool/check.c
tools/objtool/include/objtool/cfi.h