]> git.itanic.dy.fi Git - linux-stable/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>
Sat, 14 Jan 2023 09:16:49 +0000 (10:16 +0100)
commit67e39c4f4cb318cfbbf8982ab016c649ed97edaf
treeaf77dd02e01b0af0b1b49728f418df35c8a1edce
parentf13301a69ababa6c2236fb4f0393b7e914e7e1e0
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