Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 57416
b: refs/heads/master
c: e5e3c84
h: refs/heads/master
v: v3
  • Loading branch information
Steven Rostedt authored and Linus Torvalds committed Jun 8, 2007
1 parent ec145e9 commit 062de0d
Show file tree
Hide file tree
Showing 3 changed files with 12 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: c52ecdab06ff3b4d0f8914951eb74dc8b049f51c
refs/heads/master: e5e3c84b70e58fc605635fd340fb8dba3cc59058
5 changes: 5 additions & 0 deletions trunk/arch/i386/mm/fault.c
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,11 @@ fastcall void __kprobes do_page_fault(struct pt_regs *regs,
bad_area_nosemaphore:
/* User mode accesses just cause a SIGSEGV */
if (error_code & 4) {
/*
* It's possible to have interrupts off here.
*/
local_irq_enable();

/*
* Valid to do another page fault here because this one came
* from user space.
Expand Down
6 changes: 6 additions & 0 deletions trunk/arch/x86_64/mm/fault.c
Original file line number Diff line number Diff line change
Expand Up @@ -476,6 +476,12 @@ asmlinkage void __kprobes do_page_fault(struct pt_regs *regs,
bad_area_nosemaphore:
/* User mode accesses just cause a SIGSEGV */
if (error_code & PF_USER) {

/*
* It's possible to have interrupts off here.
*/
local_irq_enable();

if (is_prefetch(regs, address, error_code))
return;

Expand Down

0 comments on commit 062de0d

Please sign in to comment.