linux-stable/tools
Josh Poimboeuf 64eba660fe objtool: Fix UNWIND_HINT_{SAVE,RESTORE} across basic blocks
[ Upstream commit 10b4c4bce3 ]

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: 8faea26e61 ("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>
2024-03-26 18:18:21 -04:00
..
accounting
arch work around gcc bugs with 'asm goto' with outputs 2024-02-23 09:51:20 +01:00
bootconfig
bpf tools/resolve_btfids: Fix cross-compilation to non-host endianness 2024-03-26 18:18:11 -04:00
build perf cs-etm: Bump minimum OpenCSD version to ensure a bugfix is present 2024-02-05 20:17:04 +00:00
certs
cgroup
counter
crypto/ccp
debugging
edid
firewire
firmware
gpio
hv hv/hv_kvp_daemon: Some small fixes for handling NM keyfiles 2023-11-10 23:27:46 +00:00
iio
include tools/resolve_btfids: Refactor set sorting with types from btf_ids.h 2024-03-26 18:18:11 -04:00
kvm/kvm_stat
laptop
leds
lib libbpf: Use OPTS_SET() macro in bpf_xdp_query() 2024-03-26 18:18:10 -04:00
memory-model
mm tools/mm: update the usage output to be more organized 2023-10-18 14:34:19 -07:00
net/ynl tools: ynl: fix handling of multiple mcast groups 2024-03-06 14:53:51 +00:00
objtool objtool: Fix UNWIND_HINT_{SAVE,RESTORE} across basic blocks 2024-03-26 18:18:21 -04:00
pci
pcmcia
perf perf evlist: Fix evlist__new_default() for > 1 core PMU 2024-02-16 19:14:18 +01:00
power PM: tools: Fix sleepgraph syntax error 2023-11-20 17:59:58 +01:00
rcu
scripts tools/build: Fix -s detection code in tools/scripts/Makefile.include 2023-10-18 15:29:47 -07:00
spi
testing selftests: forwarding: Add missing multicast routing config entries 2024-03-26 18:18:12 -04:00
thermal
time
tracing tools/rtla: Fix Makefile compiler options for clang 2024-02-23 09:51:55 +01:00
usb
verification tools/rv: Fix Makefile compiler options for clang 2024-02-23 09:51:54 +01:00
virtio
wmi
workqueue
Makefile