]> git.baikalelectronics.ru Git - kernel.git/commit
x86/entry/common: Protect against instrumentation
authorThomas Gleixner <tglx@linutronix.de>
Tue, 10 Mar 2020 13:46:27 +0000 (14:46 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 11 Jun 2020 13:14:39 +0000 (15:14 +0200)
commit9ec5d57f4c95e34a2babfc681651c8ebf44a4e51
tree6434e4e3cbf007222680cb4b263a1e2a73173c19
parent3cfec51585ea7988ca8028439e0af4e0f42edea7
x86/entry/common: Protect against instrumentation

Mark the various syscall entries with noinstr to protect them against
instrumentation and add the noinstrumentation_begin()/end() annotations to mark the
parts of the functions which are safe to call out into instrumentable code.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Alexandre Chartre <alexandre.chartre@oracle.com>
Acked-by: Peter Zijlstra <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20200505134340.520277507@linutronix.de
arch/x86/entry/common.c