Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 205273
b: refs/heads/master
c: 0c4519e
h: refs/heads/master
i:
  205271: 9f5b4b5
v: v3
  • Loading branch information
Frederic Weisbecker committed Jun 24, 2010
1 parent 9b85d93 commit 50298e7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5cfaf214856eb934759ae500a0b812dd06a00bd9
refs/heads/master: 0c4519e825c9e2b6a8310deff8582f8c35bfbba9
7 changes: 7 additions & 0 deletions trunk/arch/x86/kernel/hw_breakpoint.c
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,13 @@ static int __kprobes hw_breakpoint_handler(struct die_args *args)

perf_bp_event(bp, args->regs);

/*
* Set up resume flag to avoid breakpoint recursion when
* returning back to origin.
*/
if (bp->hw.info.type == X86_BREAKPOINT_EXECUTE)
args->regs->flags |= X86_EFLAGS_RF;

rcu_read_unlock();
}
/*
Expand Down

0 comments on commit 50298e7

Please sign in to comment.