lkml.org 
[lkml]   [2006]   [Apr]   [24]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateSun, 23 Apr 2006 22:42:10 -0600
FromRobert Hancock <>
SubjectRe: Linux 2.6.17-rc2
Alistair John Strachan wrote:
> On Saturday 22 April 2006 02:07, Andi Kleen wrote:
> [snip]
>> They probably forget to set PROT_EXEC in either mprotect or mmap somewhere.
>> You can check in /proc/*/maps which mapping contains the address it is
>> faulting on and then try to find where it is allocated or mprotect'ed.
> 
> Turned out this was exactly what the problem was. Wine attempts to match 
> Windows as far as read/write/execute mappings go, and war3.exe tried to 
> execute memory in a section with "MEM_EXECUTE" not set.
> 
> I'm surprised the program works on Windows with DEP/NX enabled, but apparently 
> it does.

Are you sure that it does? NX is not enabled by default on XP except on 
Windows system processes, even on CPUs supporting hardware NX, so it 
might well have failed with it turned on (especially since the problem 
seemed to show up after some no-CD crack was applied).

-- 
Robert Hancock      Saskatoon, SK, Canada
To email, remove "nospam" from hancockr@nospamshaw.ca
Home Page: http://www.roberthancock.com/

-
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/

\
 
 \ /
  Last update: 2006-04-24 04:44    [from the cache]
©2003-2008