diff --git a/[refs] b/[refs] index 7a67ca18fa62..a5cbebcd7be3 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: fb8c7fb25d7d754a992481e9f763ec0b5889c4d9 +refs/heads/master: 3085354de635179d70c240e6d942bcbd1d93056c diff --git a/trunk/arch/x86/mm/fault.c b/trunk/arch/x86/mm/fault.c index c0c82bc143c9..ec08d8389850 100644 --- a/trunk/arch/x86/mm/fault.c +++ b/trunk/arch/x86/mm/fault.c @@ -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;