]> git.baikalelectronics.ru Git - kernel.git/commit
x86/speculation/mds: Revert CPU buffer clear on double fault exit
authorAndy Lutomirski <luto@kernel.org>
Tue, 14 May 2019 20:24:39 +0000 (13:24 -0700)
committerIngo Molnar <mingo@kernel.org>
Thu, 16 May 2019 07:05:11 +0000 (09:05 +0200)
commit83fd9042220c5b90ecdee3b7a84678415d1fe8b5
treeb3bfb6be2d0f41cef5c8d3b7797f55e70e510c61
parent6bab12dd22e08922fdb86d3088e909e98b9e9903
x86/speculation/mds: Revert CPU buffer clear on double fault exit

The double fault ESPFIX path doesn't return to user mode at all --
it returns back to the kernel by simulating a #GP fault.
prepare_exit_to_usermode() will run on the way out of
general_protection before running user code.

Signed-off-by: Andy Lutomirski <luto@kernel.org>
Cc: Borislav Petkov <bp@suse.de>
Cc: Frederic Weisbecker <frederic@kernel.org>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Jon Masters <jcm@redhat.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: stable@vger.kernel.org
Fixes: eaf1381079e1 ("x86/speculation/mds: Clear CPU buffers on exit to user")
Link: http://lkml.kernel.org/r/ac97612445c0a44ee10374f6ea79c222fe22a5c4.1557865329.git.luto@kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Documentation/x86/mds.rst
arch/x86/kernel/traps.c