summaryrefslogtreecommitdiff
path: root/arch/x86/tools
diff options
context:
space:
mode:
authorJosh Poimboeuf <jpoimboe@kernel.org>2024-02-26 23:35:27 -0800
committerSasha Levin <sashal@kernel.org>2024-03-26 18:19:35 -0400
commit1cbdc6f36850e091e6604862d74e106ddaed08fe (patch)
tree9133cdc4ed214386f58b764f8815bcd99434f90d /arch/x86/tools
parent2babfee5d4a216c1703b8ae1b4db3769f35661df (diff)
downloadlinux-rpi-1cbdc6f36850e091e6604862d74e106ddaed08fe.tar.gz
linux-rpi-1cbdc6f36850e091e6604862d74e106ddaed08fe.tar.bz2
linux-rpi-1cbdc6f36850e091e6604862d74e106ddaed08fe.zip
objtool: Fix UNWIND_HINT_{SAVE,RESTORE} across basic blocks
[ Upstream commit 10b4c4bce3f5541f54bcc2039720b11d2bc96d79 ] If SAVE and RESTORE unwind hints are in different basic blocks, and objtool sees the RESTORE before the SAVE, it errors out with: vmlinux.o: warning: objtool: vmw_port_hb_in+0x242: objtool isn't smart enough to handle this CFI save/restore combo In such a case, defer following the RESTORE block until the straight-line path gets followed later. Fixes: 8faea26e6111 ("objtool: Re-add UNWIND_HINT_{SAVE_RESTORE}") Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202402240702.zJFNmahW-lkp@intel.com/ Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org> Link: https://lore.kernel.org/r/20240227073527.avcm5naavbv3cj5s@treble Signed-off-by: Kees Cook <keescook@chromium.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'arch/x86/tools')
0 files changed, 0 insertions, 0 deletions