]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
x86/kexec: Disable RET on kexec
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Fri, 8 Jul 2022 17:10:11 +0000 (19:10 +0200)
committerBorislav Petkov <bp@suse.de>
Sat, 9 Jul 2022 11:12:32 +0000 (13:12 +0200)
commit697977d8415d61f3acbc4ee6d564c9dcf0309507
tree08c33a77f84a7e8828a5358f0ed65c5f453aad4d
parent2259da159fbe5dba8ac00b560cf00b6a6537fa18
x86/kexec: Disable RET on kexec

All the invocations unroll to __x86_return_thunk and this file
must be PIC independent.

This fixes kexec on 64-bit AMD boxes.

  [ bp: Fix 32-bit build. ]

Reported-by: Edward Tran <edward.tran@oracle.com>
Reported-by: Awais Tanveer <awais.tanveer@oracle.com>
Suggested-by: Ankur Arora <ankur.a.arora@oracle.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Alexandre Chartre <alexandre.chartre@oracle.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
arch/x86/kernel/relocate_kernel_32.S
arch/x86/kernel/relocate_kernel_64.S