linux/tools/objtool/include/objtool
Peter Zijlstra ee4724cc04 objtool: Add straight-line-speculation validation
[ Upstream commit 1cc1e4c8aa ]

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
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-05-15 20:18:50 +02:00
..
arch.h objtool: Add straight-line-speculation validation 2022-05-15 20:18:50 +02:00
builtin.h objtool: Add straight-line-speculation validation 2022-05-15 20:18:50 +02:00
cfi.h
check.h objtool: Cache instruction relocs 2021-04-02 12:46:15 +02:00
elf.h objtool: Fix type of reloc::addend 2022-05-09 09:14:44 +02:00
endianness.h
objtool.h objtool: Provide stats for jump_labels 2021-05-12 14:54:56 +02:00
special.h objtool: Decode jump_entry::key addend 2021-05-12 14:54:55 +02:00
warn.h