Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 62593
b: refs/heads/master
c: 08ae6cc
h: refs/heads/master
i:
  62591: 8e466cf
v: v3
  • Loading branch information
Paul Mackerras committed Jul 22, 2007
1 parent 3a62080 commit 6dbf809
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ca8ffc974d43033be6e1d4277a45822d2c3656f4
refs/heads/master: 08ae6cc15db201fa20cc4893d9500c1f6b20e560
8 changes: 7 additions & 1 deletion trunk/arch/powerpc/mm/fault.c
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,13 @@ int __kprobes do_page_fault(struct pt_regs *regs, unsigned long address,
/* protection fault */
if (error_code & DSISR_PROTFAULT)
goto bad_area;
if (!(vma->vm_flags & VM_EXEC))
/*
* Allow execution from readable areas if the MMU does not
* provide separate controls over reading and executing.
*/
if (!(vma->vm_flags & VM_EXEC) &&
(cpu_has_feature(CPU_FTR_NOEXECUTE) ||
!(vma->vm_flags & (VM_READ | VM_WRITE))))
goto bad_area;
#else
pte_t *ptep;
Expand Down

0 comments on commit 6dbf809

Please sign in to comment.