]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf761020e0f8cd61143b213f267874b308c9616f9
treef4889da78bf15d6213dc64e7e0a971e8f8fe7340
parent60322b5754c28f13c9d5ff63e7601547f0180e9f
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