]> git.baikalelectronics.ru Git - kernel.git/commit
x86/entry: Move irq flags tracing to prepare_exit_to_usermode()
authorThomas Gleixner <tglx@linutronix.de>
Wed, 4 Mar 2020 11:51:59 +0000 (12:51 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 11 Jun 2020 13:14:39 +0000 (15:14 +0200)
commitff58945ff1ba754ab34edac5b55de09bbf04ffae
treec0a8c6b928d0ebecb0727f9edb2dabedd88de3bc
parentcd7a6e7d1e53eff9d2ed4d7c399b19ae6f542226
x86/entry: Move irq flags tracing to prepare_exit_to_usermode()

This is another step towards more C-code and less convoluted ASM.

Similar to the entry path, invoke the tracer before context tracking which
might turn off RCU and invoke lockdep as the last step before going back to
user space. Annotate the code sections in exit_to_user_mode() accordingly
so objtool won't complain about the tracer invocation.

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