Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 80565
b: refs/heads/master
c: b406ac6
h: refs/heads/master
i:
  80563: 82844fa
v: v3
  • Loading branch information
Harvey Harrison authored and Ingo Molnar committed Jan 30, 2008
1 parent 64210d3 commit 0b6cb37
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 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: c61e211d9989e4c112d3d58db12ad58f9016a3c8
refs/heads/master: b406ac61e94875723540bd56e26f634afdeef489
11 changes: 3 additions & 8 deletions trunk/arch/x86/mm/fault.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,18 +92,13 @@ static int is_prefetch(struct pt_regs *regs, unsigned long addr,
unsigned char *max_instr;

#ifdef CONFIG_X86_32
# ifdef CONFIG_X86_PAE
/* If it was a exec fault on NX page, ignore */
if (nx_enabled && (error_code & PF_INSTR))
if (!(__supported_pte_mask & _PAGE_NX))
return 0;
# else
return 0;
# endif
#else /* CONFIG_X86_64 */
#endif

/* If it was a exec fault on NX page, ignore */
if (error_code & PF_INSTR)
return 0;
#endif

instr = (unsigned char *)convert_ip_to_linear(current, regs);
max_instr = instr + 15;
Expand Down

0 comments on commit 0b6cb37

Please sign in to comment.