x86/entry: Re-order #DB handler to avoid *SAN instrumentation
authorPeter Zijlstra <peterz@infradead.org>
Wed, 3 Jun 2020 11:40:20 +0000 (13:40 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 11 Jun 2020 13:15:28 +0000 (15:15 +0200)
commit5ef227933117085f1320b3421ef43a26bf624b4c
treee0f84f4527d42c36f7471cd66df486ff9e407721
parent4b281e541bba74bf9574335289484c577f41eaf7
x86/entry: Re-order #DB handler to avoid *SAN instrumentation

vmlinux.o: warning: objtool: exc_debug()+0xbb: call to clear_ti_thread_flag.constprop.0() leaves .noinstr.text section
vmlinux.o: warning: objtool: noist_exc_debug()+0x55: call to clear_ti_thread_flag.constprop.0() leaves .noinstr.text section

Rework things so that handle_debug() looses the noinstr and move the
clear_thread_flag() into that.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lkml.kernel.org/r/20200603114052.127756554@infradead.org
arch/x86/kernel/traps.c