summaryrefslogtreecommitdiff
path: root/arch/x86/crypto/nh-avx2-x86_64.S
diff options
context:
space:
mode:
authorPeter Zijlstra <peterz@infradead.org>2021-01-29 00:16:27 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-02-10 11:29:21 +0300
commitc000dcfb3aede952db92086053d03be3da30487e (patch)
tree163669d3a42a6c1ef825adb96a5977b77332faab /arch/x86/crypto/nh-avx2-x86_64.S
parent2a2dfe6a319afb47448b28bedd65319aa59faef0 (diff)
downloadlinux-c000dcfb3aede952db92086053d03be3da30487e.tar.xz
x86/debug: Fix DR6 handling
commit 9ad22e165994ccb64d85b68499eaef97342c175b upstream. Tom reported that one of the GDB test-cases failed, and Boris bisected it to commit: d53d9bc0cf78 ("x86/debug: Change thread.debugreg6 to thread.virtual_dr6") The debugging session led us to commit: 6c0aca288e72 ("x86: Ignore trap bits on single step exceptions") It turns out that TF and data breakpoints are both traps and will be merged, while instruction breakpoints are faults and will not be merged. This means 6c0aca288e72 is wrong, only TF and instruction breakpoints need to be excluded while TF and data breakpoints can be merged. [ bp: Massage commit message. ] Fixes: d53d9bc0cf78 ("x86/debug: Change thread.debugreg6 to thread.virtual_dr6") Fixes: 6c0aca288e72 ("x86: Ignore trap bits on single step exceptions") Reported-by: Tom de Vries <tdevries@suse.de> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Signed-off-by: Borislav Petkov <bp@suse.de> Cc: <stable@vger.kernel.org> Link: https://lkml.kernel.org/r/YBMAbQGACujjfz%2Bi@hirez.programming.kicks-ass.net Link: https://lkml.kernel.org/r/20210128211627.GB4348@worktop.programming.kicks-ass.net Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/x86/crypto/nh-avx2-x86_64.S')
0 files changed, 0 insertions, 0 deletions