x86/debug: Sync BTF earlier
authorPeter Zijlstra <peterz@infradead.org>
Wed, 2 Sep 2020 13:25:52 +0000 (15:25 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 4 Sep 2020 13:12:52 +0000 (15:12 +0200)
commitc182487da1b5281463f2255d2347885dba219c08
tree25a5b976a85d8e43cc76f8bc223214b8ea73c197
parentd5c678aed5eddb944b8e7ce451b107b39245962d
x86/debug: Sync BTF earlier

Move the BTF sync near the DR6 load, as this will be the only common
code guaranteed to run on every #DB.

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>
Acked-by: Andy Lutomirski <luto@kernel.org>
Link: https://lore.kernel.org/r/20200902133200.786888252@infradead.org
arch/x86/kernel/traps.c