Thomas Gleixner 04dcbdb805 x86/speculation/mds: Clear CPU buffers on exit to user
Add a static key which controls the invocation of the CPU buffer clear
mechanism on exit to user space and add the call into
prepare_exit_to_usermode() and do_nmi() right before actually returning.

Add documentation which kernel to user space transition this covers and
explain why some corner cases are not mitigated.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: Borislav Petkov <bp@suse.de>
Reviewed-by: Frederic Weisbecker <frederic@kernel.org>
Reviewed-by: Jon Masters <jcm@redhat.com>
Tested-by: Jon Masters <jcm@redhat.com>
2019-03-06 21:52:13 +01:00
..
2018-12-03 10:49:13 +01:00
2018-07-20 12:29:24 +10:00
2017-12-12 11:32:24 +01:00
2018-10-31 08:54:16 -07:00
2018-10-29 07:13:28 +01:00
2018-12-03 10:47:53 +01:00
2018-10-31 08:54:16 -07:00
2018-10-31 08:54:16 -07:00
2017-12-23 21:13:01 +01:00
2018-10-02 10:14:32 +02:00