diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2019-02-19 01:42:51 +0300 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2019-03-06 23:52:13 +0300 |
commit | 04dcbdb8057827b043b3c71aa397c4c63e67d086 (patch) | |
tree | ef837807f05eaf4ce6abe5d62b5ef5703931c3e5 /ipc/syscall.c | |
parent | 6a9e529272517755904b7afa639f6db59ddb793e (diff) | |
download | linux-04dcbdb8057827b043b3c71aa397c4c63e67d086.tar.xz |
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>
Diffstat (limited to 'ipc/syscall.c')
0 files changed, 0 insertions, 0 deletions