]> git.baikalelectronics.ru Git - kernel.git/commit
x86/bugs: Enable STIBP for JMP2RET
authorKim Phillips <kim.phillips@amd.com>
Tue, 14 Jun 2022 21:15:51 +0000 (23:15 +0200)
committerBorislav Petkov <bp@suse.de>
Mon, 27 Jun 2022 08:33:59 +0000 (10:33 +0200)
commit91a82b0e4ff289df4f9e2c27d7505b256ada5ff1
tree14b346f88fd8e702973366cb4392e90d7aa4931c
parent09d1ae07168b9534d7d9ff6b0b25ace87d2d71d9
x86/bugs: Enable STIBP for JMP2RET

For untrained return thunks to be fully effective, STIBP must be enabled
or SMT disabled.

Co-developed-by: Josh Poimboeuf <jpoimboe@redhat.com>
Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
Signed-off-by: Kim Phillips <kim.phillips@amd.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Borislav Petkov <bp@suse.de>
Documentation/admin-guide/kernel-parameters.txt
arch/x86/kernel/cpu/bugs.c