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)
commite8ec1b6e08a2102d8755ccb06fa26d540f26a2fa
tree14b346f88fd8e702973366cb4392e90d7aa4931c
parent7fbf47c7ce50b38a64576b150e7011ae73d54669
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