Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 65038
b: refs/heads/master
c: dbe3ed1
h: refs/heads/master
v: v3
  • Loading branch information
Linus Torvalds committed Sep 19, 2007
1 parent ebc540f commit 52edd75
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: 4f01a757e75f2a3cab2bab89c4176498963946b9
refs/heads/master: dbe3ed1c078c193be34326728d494c5c4bc115e2
7 changes: 7 additions & 0 deletions trunk/arch/x86_64/mm/fault.c
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,13 @@ asmlinkage void __kprobes do_page_fault(struct pt_regs *regs,
if (unlikely(in_atomic() || !mm))
goto bad_area_nosemaphore;

/*
* User-mode registers count as a user access even for any
* potential system fault or CPU buglet.
*/
if (user_mode_vm(regs))
error_code |= PF_USER;

again:
/* When running in the kernel we expect faults to occur only to
* addresses in user space. All other faults represent errors in the
Expand Down

0 comments on commit 52edd75

Please sign in to comment.