login
Header Space

 
 

Re: [git pull] x86 fixes

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Linus Torvalds <torvalds@...>
Cc: Ingo Molnar <mingo@...>, <linux-kernel@...>, Thomas Gleixner <tglx@...>, H. Peter Anvin <hpa@...>, Andrew Morton <akpm@...>
Date: Thursday, March 27, 2008 - 4:48 pm

On Thu, 2008-03-27 at 13:31 -0700, Linus Torvalds wrote:

Sorry, this was my fault, I eliminated the ifdef within the X86_32 block
but didn't go further.  Think the below is correct:

diff --git a/arch/x86/mm/fault.c b/arch/x86/mm/fault.c
index c0c82bc..6f5df93 100644
--- a/arch/x86/mm/fault.c
+++ b/arch/x86/mm/fault.c
@@ -91,14 +91,8 @@ 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 (error_code & PF_INSTR)
+	if ((__supported_pte_mask & _PAGE_NX) && (error_code & PF_INSTR))
 		return 0;
 
 	instr = (unsigned char *)convert_ip_to_linear(current, regs);



--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[git pull] x86 fixes, Ingo Molnar, (Thu Mar 27, 4:03 pm)
Re: [git pull] x86 fixes, Linus Torvalds, (Thu Mar 27, 4:31 pm)
Re: [git pull] x86 fixes, Ingo Molnar, (Thu Mar 27, 4:50 pm)
Re: [git pull] x86 fixes, Ingo Molnar, (Thu Mar 27, 5:24 pm)
Re: [git pull] x86 fixes, Harvey Harrison, (Thu Mar 27, 4:48 pm)
Re: [git pull] x86 fixes, Ingo Molnar, (Thu Mar 27, 4:55 pm)
Re: [git pull] x86 fixes, Ingo Molnar, (Thu Mar 27, 5:01 pm)
Re: [git pull] x86 fixes, Harvey Harrison, (Thu Mar 27, 5:08 pm)
speck-geostationary