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)
commit8f159f1dfa1ea29d70a84335fe6a8bd501a9eecd
tree6434e4e3cbf007222680cb4b263a1e2a73173c19
parent1723be30e46fbda0c5971d3a19a37a7c2499bc90
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