x86: Undo return-thunk damage
authorPeter Zijlstra <peterz@infradead.org>
Tue, 14 Jun 2022 21:15:37 +0000 (23:15 +0200)
committerBorislav Petkov <bp@suse.de>
Mon, 27 Jun 2022 08:33:58 +0000 (10:33 +0200)
commit15e67227c49a57837108acfe1c80570e1bd9f962
tree1fd03816aa33ce35c51505a235fdf1f9fb58962d
parent0b53c374b9eff2255a386f1f1cfb9a928e52a5ae
x86: Undo return-thunk damage

Introduce X86_FEATURE_RETHUNK for those afflicted with needing this.

  [ bp: Do only INT3 padding - simpler. ]

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>
arch/x86/include/asm/alternative.h
arch/x86/include/asm/cpufeatures.h
arch/x86/include/asm/disabled-features.h
arch/x86/kernel/alternative.c
arch/x86/kernel/module.c
arch/x86/kernel/vmlinux.lds.S