]> git.baikalelectronics.ru Git - kernel.git/commit
x86/speculation: Fix SPEC_CTRL write on SMT state change
authorJosh Poimboeuf <jpoimboe@kernel.org>
Tue, 14 Jun 2022 21:16:07 +0000 (23:16 +0200)
committerBorislav Petkov <bp@suse.de>
Mon, 27 Jun 2022 08:34:00 +0000 (10:34 +0200)
commitaa323f15f0a42bca05e56cd60b7978c8761c69df
treea6e1ada3a4703390ea0f2c874fc0e8552acf050c
parent309dbc1ad341b777a87604a1c8ea14450b93fa8d
x86/speculation: Fix SPEC_CTRL write on SMT state change

If the SMT state changes, SSBD might get accidentally disabled.  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/kernel/cpu/bugs.c