linux-stable/tools/objtool/arch/x86
Peter Zijlstra 1cc1e4c8aa objtool: Add straight-line-speculation validation
Teach objtool to validate the straight-line-speculation constraints:

 - speculation trap after indirect calls
 - speculation trap after RET

Notable: when an instruction is annotated RETPOLINE_SAFE, indicating
  speculation isn't a problem, also don't care about sls for that
  instruction.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lore.kernel.org/r/20211204134908.023037659@infradead.org
2021-12-08 19:26:50 +01:00
..
include/arch objtool: Decode jump_entry::key addend 2021-05-12 14:54:55 +02:00
Build objtool: Abstract alternative special case handling 2020-09-10 10:43:13 -05:00
decode.c objtool: Add straight-line-speculation validation 2021-12-08 19:26:50 +01:00
special.c objtool: Fix retpoline detection in asm code 2021-01-26 11:11:59 -06:00