]> git.baikalelectronics.ru Git - kernel.git/commit
x86/speculation: Fix firmware entry SPEC_CTRL handling
authorJosh Poimboeuf <jpoimboe@kernel.org>
Tue, 14 Jun 2022 21:16:06 +0000 (23:16 +0200)
committerBorislav Petkov <bp@suse.de>
Mon, 27 Jun 2022 08:34:00 +0000 (10:34 +0200)
commit309dbc1ad341b777a87604a1c8ea14450b93fa8d
tree7a189ef16a3c7e33668cf1fadaa2778643b5d26b
parent5e71b41907088352f09fcf317517dfc548edc299
x86/speculation: Fix firmware entry SPEC_CTRL handling

The firmware entry code may accidentally clear STIBP or SSBD. Fix that.

Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Borislav Petkov <bp@suse.de>
arch/x86/include/asm/nospec-branch.h