diff options
| author | Josh Poimboeuf <[email protected]> | 2025-10-29 19:54:08 +0000 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2025-11-01 06:43:20 +0000 |
| commit | c44b4b9eeb71f5b0b617abf6fd66d1ef0aab6200 (patch) | |
| tree | 6ad00c41efeac41986bcd8cf0ca856209993d4fe /lib/mpi/mpi-scan.c | |
| parent | Merge tag 'bpf-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf (diff) | |
| download | kernel-c44b4b9eeb71f5b0b617abf6fd66d1ef0aab6200.tar.gz kernel-c44b4b9eeb71f5b0b617abf6fd66d1ef0aab6200.zip | |
objtool: Fix skip_alt_group() for non-alternative STAC/CLAC
If an insn->alt points to a STAC/CLAC instruction, skip_alt_group()
assumes it's part of an alternative ("alt group") as opposed to some
other kind of "alt" such as an exception fixup.
While that assumption may hold true in the current code base, Linus has
an out-of-tree patch which breaks that assumption by replacing the
STAC/CLAC alternatives with raw STAC/CLAC instructions.
Make skip_alt_group() more robust by making sure it's actually an alt
group before continuing.
Reported-by: Linus Torvalds <[email protected]>
Fixes: 2d12c6fb7875 ("objtool: Remove ANNOTATE_IGNORE_ALTERNATIVE from CLAC/STAC")
Closes: https://lore.kernel.org/CAHk-=wi6goUT36sR8GE47_P-aVrd5g38=VTRHpktWARbyE-0ow@mail.gmail.com
Signed-off-by: Josh Poimboeuf <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Tested-by: Linus Torvalds <[email protected]>
Link: https://patch.msgid.link/3d22415f7b8e06a64e0873b21f48389290eeaa49.1761767616.git.jpoimboe@kernel.org
Diffstat (limited to 'lib/mpi/mpi-scan.c')
0 files changed, 0 insertions, 0 deletions
