objtool: Remove ANNOTATE_IGNORE_ALTERNATIVE from CLAC/STAC
authorJosh Poimboeuf <jpoimboe@kernel.org>
Tue, 8 Apr 2025 08:21:14 +0000 (01:21 -0700)
committerIngo Molnar <mingo@kernel.org>
Tue, 8 Apr 2025 20:03:51 +0000 (22:03 +0200)
commit2d12c6fb78753925f494ca9079e2383529e8ae0e
treeb3143293b0ba006ca7315ae406c8200715f121a0
parent2dbbca9be4e5ed68d0972a2bcf4561d9cb85b7b7
objtool: Remove ANNOTATE_IGNORE_ALTERNATIVE from CLAC/STAC

ANNOTATE_IGNORE_ALTERNATIVE adds additional noise to the code generated
by CLAC/STAC alternatives, hurting readability for those whose read
uaccess-related code generation on a regular basis.

Remove the annotation specifically for the "NOP patched with CLAC/STAC"
case in favor of a manual check.

Leave the other uses of that annotation in place as they're less common
and more difficult to detect.

Suggested-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Acked-by: Linus Torvalds <torvalds@linux-foundation.org>
Link: https://lore.kernel.org/r/fc972ba4995d826fcfb8d02733a14be8d670900b.1744098446.git.jpoimboe@kernel.org
arch/x86/include/asm/smap.h
tools/objtool/check.c