]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
x86: Undo return-thunk damage
authorPeter Zijlstra <peterz@infradead.org>
Tue, 14 Jun 2022 21:15:37 +0000 (23:15 +0200)
committerThadeu Lima de Souza Cascardo <cascardo@canonical.com>
Tue, 19 Jul 2022 19:17:35 +0000 (16:17 -0300)
commit196de01a675786a6a97051a3641b4a8947b1f334
tree861b478c5ccb4fdfd5e9f86fc7eaabd5d3a96725
parent74c48c830ebc5790d2dd8df884239b6bfaf95297
x86: Undo return-thunk damage

commit 15e67227c49a57837108acfe1c80570e1bd9f962 upstream.

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>
[cascardo: CONFIG_STACK_VALIDATION vs CONFIG_OBJTOOL]
[cascardo: no IBT support]
CVE-2022-29900
CVE-2022-29901
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
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