diff options
| author | Josh Poimboeuf <[email protected]> | 2024-02-27 07:35:27 +0000 |
|---|---|---|
| committer | Kees Cook <[email protected]> | 2024-03-01 06:34:42 +0000 |
| commit | 10b4c4bce3f5541f54bcc2039720b11d2bc96d79 (patch) | |
| tree | 87d1ec639788aaf83ab690eeb4c49986f08a113e /lib/string_helpers.c | |
| parent | overflow: Use POD in check_shl_overflow() (diff) | |
| download | kernel-10b4c4bce3f5541f54bcc2039720b11d2bc96d79.tar.gz kernel-10b4c4bce3f5541f54bcc2039720b11d2bc96d79.zip | |
objtool: Fix UNWIND_HINT_{SAVE,RESTORE} across basic blocks
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 <[email protected]>
Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
Signed-off-by: Josh Poimboeuf <[email protected]>
Link: https://lore.kernel.org/r/20240227073527.avcm5naavbv3cj5s@treble
Signed-off-by: Kees Cook <[email protected]>
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions
