x86/debug: Move historical SYSENTER junk into exc_debug_kernel()
authorPeter Zijlstra <peterz@infradead.org>
Wed, 2 Sep 2020 13:25:56 +0000 (15:25 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 4 Sep 2020 13:12:53 +0000 (15:12 +0200)
commit4eb5acc39187a7ba578fbb44f7bb1965057309ae
treeb05b08c752d75121ce36ae7f6ec6dfddf17064a8
parent4182e9436916a48f16207f0619562f1d3843a0c8
x86/debug: Move historical SYSENTER junk into exc_debug_kernel()

The historical SYSENTER junk is explicitly for from-kernel, so move it
to the #DB-from-kernel handler.

It is ordered after the notifier, which is important for KGDB which uses TF
single-step and needs to consume the event before that point.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Daniel Thompson <daniel.thompson@linaro.org>
Link: https://lore.kernel.org/r/20200902133201.031099736@infradead.org
arch/x86/kernel/traps.c