]> git.baikalelectronics.ru Git - kernel.git/commit
x86/bugs: Flush IBP in ib_prctl_set()
authorRodrigo Branco <bsdaemon@google.com>
Tue, 3 Jan 2023 20:17:51 +0000 (14:17 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Jan 2023 10:41:59 +0000 (11:41 +0100)
commit108aba429847d07d22eb84420e2ed8806a0f5045
treee7e6a5273370d7a28c86efe8253dec8f36432cf5
parente3d4472f985c4bea172a4d7756458a65dc6c36d4
x86/bugs: Flush IBP in ib_prctl_set()

commit a664ec9158eeddd75121d39c9a0758016097fa96 upstream.

We missed the window between the TIF flag update and the next reschedule.

Signed-off-by: Rodrigo Branco <bsdaemon@google.com>
Reviewed-by: Borislav Petkov (AMD) <bp@alien8.de>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/kernel/cpu/bugs.c