Re: [PATCH v4] Fix INT1 Recursion with unregistered breakpoints

2015-12-19 Thread Jeff Merkey
On 12/19/15, Jeff Merkey wrote: > On 12/19/15, Jeff Merkey wrote: >> On 12/19/15, Mike Galbraith wrote: >>> On Sat, 2015-12-19 at 19:13 -0700, Jeff Merkey wrote: >>> @@ -519,6 +528,18 @@ static int hw_breakpoint_handler(struct die_args *args) (dr6 & (~DR_TRAP_BITS)))

Re: [PATCH v4] Fix INT1 Recursion with unregistered breakpoints

2015-12-19 Thread Jeff Merkey
On 12/19/15, Jeff Merkey wrote: > On 12/19/15, Mike Galbraith wrote: >> On Sat, 2015-12-19 at 19:13 -0700, Jeff Merkey wrote: >> >>> @@ -519,6 +528,18 @@ static int hw_breakpoint_handler(struct die_args >>> *args) >>> (dr6 & (~DR_TRAP_BITS))) >>> rc = NOTIFY_DONE; >>> >>> +

Re: [PATCH v4] Fix INT1 Recursion with unregistered breakpoints

2015-12-19 Thread Jeff Merkey
On 12/19/15, Mike Galbraith wrote: > On Sat, 2015-12-19 at 19:13 -0700, Jeff Merkey wrote: > >> @@ -519,6 +528,18 @@ static int hw_breakpoint_handler(struct die_args >> *args) >> (dr6 & (~DR_TRAP_BITS))) >> rc = NOTIFY_DONE; >> >> +/* >> +* if we are about to signal

Re: [PATCH v4] Fix INT1 Recursion with unregistered breakpoints

2015-12-19 Thread Mike Galbraith
On Sat, 2015-12-19 at 19:13 -0700, Jeff Merkey wrote: > @@ -519,6 +528,18 @@ static int hw_breakpoint_handler(struct die_args > *args) > (dr6 & (~DR_TRAP_BITS))) > rc = NOTIFY_DONE; > > + /* > + * if we are about to signal to > + * do_debug() to stop further

[PATCH v4] Fix INT1 Recursion with unregistered breakpoints

2015-12-19 Thread Jeff Merkey
Please consider the attached patch. SUMMARY This patch corrects a hard lockup failure of the system kernel if the operating system receives a breakpoint exception at a code execution address which was not registered with the operating system. The patch allows kernel debuggers, application

[PATCH v4] Fix INT1 Recursion with unregistered breakpoints

2015-12-19 Thread Jeff Merkey
Please consider the attached patch. SUMMARY This patch corrects a hard lockup failure of the system kernel if the operating system receives a breakpoint exception at a code execution address which was not registered with the operating system. The patch allows kernel debuggers, application

Re: [PATCH v4] Fix INT1 Recursion with unregistered breakpoints

2015-12-19 Thread Jeff Merkey
On 12/19/15, Mike Galbraith wrote: > On Sat, 2015-12-19 at 19:13 -0700, Jeff Merkey wrote: > >> @@ -519,6 +528,18 @@ static int hw_breakpoint_handler(struct die_args >> *args) >> (dr6 & (~DR_TRAP_BITS))) >> rc = NOTIFY_DONE; >> >> +/* >> +*

Re: [PATCH v4] Fix INT1 Recursion with unregistered breakpoints

2015-12-19 Thread Mike Galbraith
On Sat, 2015-12-19 at 19:13 -0700, Jeff Merkey wrote: > @@ -519,6 +528,18 @@ static int hw_breakpoint_handler(struct die_args > *args) > (dr6 & (~DR_TRAP_BITS))) > rc = NOTIFY_DONE; > > + /* > + * if we are about to signal to > + * do_debug() to stop further

Re: [PATCH v4] Fix INT1 Recursion with unregistered breakpoints

2015-12-19 Thread Jeff Merkey
On 12/19/15, Jeff Merkey wrote: > On 12/19/15, Jeff Merkey wrote: >> On 12/19/15, Mike Galbraith wrote: >>> On Sat, 2015-12-19 at 19:13 -0700, Jeff Merkey wrote: >>> @@ -519,6 +528,18 @@ static int

Re: [PATCH v4] Fix INT1 Recursion with unregistered breakpoints

2015-12-19 Thread Jeff Merkey
On 12/19/15, Jeff Merkey wrote: > On 12/19/15, Mike Galbraith wrote: >> On Sat, 2015-12-19 at 19:13 -0700, Jeff Merkey wrote: >> >>> @@ -519,6 +528,18 @@ static int hw_breakpoint_handler(struct die_args >>> *args) >>> (dr6 &