]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - arch/x86/kernel/hw_breakpoint.c
ptrace/x86: flush_ptrace_hw_breakpoint() shoule clear the virtual debug registers
[karo-tx-linux.git] / arch / x86 / kernel / hw_breakpoint.c
index 02f07634d265ea0a840892b5bafbd554197644b8..f66ff162dce864a5db31949969271049396f8552 100644 (file)
@@ -393,6 +393,9 @@ void flush_ptrace_hw_breakpoint(struct task_struct *tsk)
                unregister_hw_breakpoint(t->ptrace_bps[i]);
                t->ptrace_bps[i] = NULL;
        }
+
+       t->debugreg6 = 0;
+       t->ptrace_dr7 = 0;
 }
 
 void hw_breakpoint_restore(void)