x86/traps: Mark fixup_bad_iret() noinstr
authorThomas Gleixner <tglx@linutronix.de>
Wed, 25 Mar 2020 18:53:38 +0000 (19:53 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 11 Jun 2020 13:14:41 +0000 (15:14 +0200)
commitd73a332936a6d33be3aa3fa4bee959efab09e431
treef4889da78bf15d6213dc64e7e0a971e8f8fe7340
parent1c3e5d3f60e26415d4227aa1193cf9e2db4df834
x86/traps: Mark fixup_bad_iret() noinstr

This is called from deep entry ASM in a situation where instrumentation
will cause more harm than providing useful information.

Switch from memmove() to memcpy() because memmove() can't be called
from noinstr code.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Alexandre Chartre <alexandre.chartre@oracle.com>
Reviewed-by: Masami Hiramatsu <mhiramat@kernel.org>
Acked-by: Peter Zijlstra <peterz@infradead.org>
Acked-by: Andy Lutomirski <luto@kernel.org>
Link: https://lkml.kernel.org/r/20200505134903.346741553@linutronix.de
arch/x86/kernel/traps.c