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>
Thu, 12 Jan 2023 11:02:44 +0000 (12:02 +0100)
commite8377f0456fb6738a4668d4df16c13d7599925fd
treeaf3681f35b51480c832fba87a37e001b78e45d03
parent5bd3c7abeb69fb4133418b846a1c6dc11313d6f0
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