login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
March
»
27
Re: [git pull] x86 fixes
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From:
Harvey Harrison <harvey.harrison@...>
To: Ingo Molnar <mingo@...>
Cc: Linus Torvalds <torvalds@...>, <linux-kernel@...>, Thomas Gleixner <tglx@...>, H. Peter Anvin <hpa@...>, Andrew Morton <akpm@...>
Subject:
Re: [git pull] x86 fixes
Date: Thursday, March 27, 2008 - 5:08 pm
> arch/x86/mm/fault.c | 11 ++++-------
quoted text
> 1 file changed, 4 insertions(+), 7 deletions(-) > > Index: linux-x86.q/arch/x86/mm/fault.c > =================================================================== > --- linux-x86.q.orig/arch/x86/mm/fault.c > +++ linux-x86.q/arch/x86/mm/fault.c > @@ -103,13 +103,10 @@ static int is_prefetch(struct pt_regs *r > 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: > + */
How about: If it was an exec (instruction fetch) fault, it cannot be a prefetch fault.
quoted text
> if (error_code & PF_INSTR) > return 0; > >
Cheers, Harvey --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
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)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
david
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Greg Kroah-Hartman
[PATCH 001/196] Chinese: Add the known_regression URI to the HOWTO
Justin C. Sherrill
Mailing list archive
Ingo Molnar
[patch 08/13] syslets: x86, add move_user_context() method
git
:
linux-netdev
:
Steven Rostedt
Re: -rt scheduling: wakeup bug?
David Miller
[GIT]: Networking
Jarek Poplawski
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
11 users
and
932 guests
online.
Online users
strcmp
zeekec
1customhongkon
AriLeverettGi78
licassar
tomleyton
simonsil99
Johann43kondt
bushirenynt
laptopsetlczw
michellestarl27
Syndicate