kernel_optimize_test/tools/objtool/arch/x86
Peter Zijlstra 8bdb25f7ae x86,objtool: Create .return_sites
commit d9e9d2300681d68a775c28de6aa6e5290ae17796 upstream.

Find all the return-thunk sites and record them in a .return_sites
section such that the kernel can undo this.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Borislav Petkov <bp@suse.de>
Reviewed-by: Josh Poimboeuf <jpoimboe@kernel.org>
Signed-off-by: Borislav Petkov <bp@suse.de>
[cascardo: conflict fixup because of functions added to support IBT]
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
[bwh: Backported to 5.10: adjust context]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-07-25 11:26:36 +02:00
..
include x86/alternatives: Optimize optimize_nops() 2022-07-25 11:26:12 +02:00
Build objtool: Abstract alternative special case handling 2020-09-10 10:43:13 -05:00
decode.c x86,objtool: Create .return_sites 2022-07-25 11:26:36 +02:00
special.c objtool: Fix retpoline detection in asm code 2021-03-04 11:38:00 +01:00