File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -793,12 +793,6 @@ static __always_inline unsigned long debug_read_clear_dr6(void)
793
793
set_debugreg (DR6_RESERVED , 6 );
794
794
dr6 ^= DR6_RESERVED ; /* Flip to positive polarity */
795
795
796
- /*
797
- * Clear the virtual DR6 value, ptrace routines will set bits here for
798
- * things we want signals for.
799
- */
800
- current -> thread .virtual_dr6 = 0 ;
801
-
802
796
return dr6 ;
803
797
}
804
798
@@ -942,6 +936,12 @@ static __always_inline void exc_debug_user(struct pt_regs *regs,
942
936
irqentry_enter_from_user_mode (regs );
943
937
instrumentation_begin ();
944
938
939
+ /*
940
+ * Clear the virtual DR6 value, ptrace() routines will set bits here
941
+ * for things it wants signals for.
942
+ */
943
+ current -> thread .virtual_dr6 = 0 ;
944
+
945
945
/*
946
946
* The SDM says "The processor clears the BTF flag when it
947
947
* generates a debug exception." Clear TIF_BLOCKSTEP to keep
You can’t perform that action at this time.
0 commit comments