]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite09b5cba10f18ac86248b65fbbd283a02a5e7c2e
treee0f84f4527d42c36f7471cd66df486ff9e407721
parentb6d10a677a19c696b1cd95cc4fd51c1551519b3e
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