]> git.baikalelectronics.ru Git - kernel.git/commit
x86/speculation: Use generic retpoline by default on AMD
authorKim Phillips <kim.phillips@amd.com>
Mon, 28 Feb 2022 17:23:15 +0000 (11:23 -0600)
committerBorislav Petkov <bp@suse.de>
Mon, 28 Feb 2022 17:37:08 +0000 (18:37 +0100)
commit19a163e5bf960f340afd362531eb2069c5c0c693
tree72eb087e1e58cc99734ce51e1fb022717eb3a129
parent79f0ad1017a7071ac58a7b6b1832a8ca620d60a1
x86/speculation: Use generic retpoline by default on AMD

AMD retpoline may be susceptible to speculation. The speculation
execution window for an incorrect indirect branch prediction using
LFENCE/JMP sequence may potentially be large enough to allow
exploitation using Spectre V2.

By default, don't use retpoline,lfence on AMD.  Instead, use the
generic retpoline.

Signed-off-by: Kim Phillips <kim.phillips@amd.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
arch/x86/kernel/cpu/bugs.c