diff options
author | Peter Zijlstra <peterz@infradead.org> | 2021-12-04 16:43:42 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-07-25 12:26:30 +0300 |
commit | 0f8532c2837793acdaa07c6b47fda0bf1fa61f40 (patch) | |
tree | 40c38dec1673657924be764f06ced5d9e170dd4c /arch/x86/include/asm/linkage.h | |
parent | 1f6e6683c46612baf01555e214d863aaa03c399b (diff) | |
download | linux-0f8532c2837793acdaa07c6b47fda0bf1fa61f40.tar.xz |
objtool: Add straight-line-speculation validation
commit 1cc1e4c8aab4213bd4e6353dec2620476a233d6d upstream.
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>
[bwh: Backported to 5.10: adjust filenames, context]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/x86/include/asm/linkage.h')
0 files changed, 0 insertions, 0 deletions