aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/relocate_kernel_64.S
diff options
context:
space:
mode:
authorThadeu Lima de Souza Cascardo <cascardo@canonical.com>2022-07-07 13:41:52 -0300
committerBorislav Petkov <bp@suse.de>2022-07-08 12:50:52 +0200
commit2259da159fbe5dba8ac00b560cf00b6a6537fa18 (patch)
treec7c295174ab434d421be7ecb5b0792067c269271 /arch/x86/kernel/relocate_kernel_64.S
parentx86/entry: Move PUSH_AND_CLEAR_REGS() back into error_entry (diff)
downloadlinux-dev-2259da159fbe5dba8ac00b560cf00b6a6537fa18.tar.xz
linux-dev-2259da159fbe5dba8ac00b560cf00b6a6537fa18.zip
x86/bugs: Do not enable IBPB-on-entry when IBPB is not supported
There are some VM configurations which have Skylake model but do not support IBPB. In those cases, when using retbleed=ibpb, userspace is going to be killed and kernel is going to panic. If the CPU does not support IBPB, warn and proceed with the auto option. Also, do not fallback to IBPB on AMD/Hygon systems if it is not supported. Fixes: 3ebc17006888 ("x86/bugs: Add retbleed=ibpb") Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com> Signed-off-by: Borislav Petkov <bp@suse.de>
Diffstat (limited to 'arch/x86/kernel/relocate_kernel_64.S')
0 files changed, 0 insertions, 0 deletions