Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 87875
b: refs/heads/master
c: 3085354
h: refs/heads/master
i:
  87873: 6ee6d3a
  87871: 2ebe08c
v: v3
  • Loading branch information
Ingo Molnar committed Mar 27, 2008
1 parent acfd78e commit f4a9092
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 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: fb8c7fb25d7d754a992481e9f763ec0b5889c4d9
refs/heads/master: 3085354de635179d70c240e6d942bcbd1d93056c
11 changes: 4 additions & 7 deletions trunk/arch/x86/mm/fault.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,10 @@ static int is_prefetch(struct pt_regs *regs, unsigned long addr,
int prefetch = 0;
unsigned char *max_instr;

#ifdef CONFIG_X86_32
/* Catch an obscure case of prefetch inside an NX page: */
if ((__supported_pte_mask & _PAGE_NX) && (error_code & 16))
return 0;
#endif

/* If it was a exec fault on NX page, ignore */
/*
* If it was a exec (instruction fetch) fault on NX page, then
* do not ignore the fault:
*/
if (error_code & PF_INSTR)
return 0;

Expand Down

0 comments on commit f4a9092

Please sign in to comment.