WINE + NX (No eXecute) support for x86, 2.6.7-rc2-bk2
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 4 lines · Ingo Molnar
Wine is in a really difficult position (due to the complex task it achieves) and is more sensitive to VM layout changes than other applications. So lets try to find the solution that preserves the
More ELF headers bits are not really hard to add.
-Andi
Quoted 7 lines · Andi Kleen
Quoted 4 lines · Ingo Molnar
Wine is in a really difficult position (due to the complex task it achieves) and is more sensitive to VM layout changes than other applications. So lets try to find the solution that preserves the
More ELF headers bits are not really hard to add.
Actually I think the cleanest thing at this point, and it was discussed earlier is for the wine binary to have an ELF segment that is all bss in the first 1GB. If the kernel loader can't cope we should fix that before we start adding new ELF bits.
Wine can then mmap over it as it sees fit.
Eric
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 4 lines · Robert White
I would think that having an easy call to disable the NX modification would be both safe and effective. That is, adding a syscall (or whatever) that would let you mark your heap and/or stack executable while leaving the new default as NX, is "just as safe" as flagging the executable in the first place.
It clearly wouldn't be safe, and that keeps it from being effective. Like having a great lock and burglar alarm, then putting the key and entry code under the mat. NX is to prevent abuse by BAD PEOPLE and therefore should not have any way to defeat it from within a program.
Signature · 3 lines
-bill davidsen ([email protected]) "The secret to procrastination is to put things off until the last possible moment - but no longer" -me
Note my refining email elsewhere in this thread...
I am talking about the default handling of programs that are not marked PT_GNU_STACK. The proposed /proc/self/NX file tweak does nothing to programs with the protected stack flag (they are "locked" against executable data, instead of just resistant to it).
It is better to protect "most of" these uncontrollable, old, legacy, or closed source apps by default, and provide a means for those that must have it otherwise (e.g. WINE) to exercise some control as to when or if the exposure is granted.
Consider a "sort of savvy normal user." I go and get this kernel, and build it, and put it on my existing box. My security level has changed not-at-all because none of my apps are marked PT_GNU_STACK. I don't actually see any improvement until I recompile my distro.
With the proposed change the default can be everything-is-NX but unmarked apps can "demote themselves" to the old behavior. I discover that I have some app that breaks hideously. I can use a shim "LD_PRELOAD=libEX.so app" that opens the NX restriction for that app.
Yes, this "raises the exposure" for all the "protected by default" apps if the program is broken enough and the attacker is savvy enough, but these old apps have no protection under the new system anyway, so better to protect most of them, and let some of them slip-by if they need to, than protect none of them at all.
Rob.
-----Original Message-----
From: Bill Davidsen [mailto:[email protected]]
Sent: Thursday, June 10, 2004 11:58 AM
To: Robert White
Cc: [email protected]
Subject: Re: WINE + NX (No eXecute) support for x86, 2.6.7-rc2-bk2
Quoted 2 lines · Robert White
I would think that having an easy call to disable the NX modification would be both safe and effective. That is, adding a syscall (or whatever) that would let you
mark
Quoted 2 lines
your heap and/or stack executable while leaving the new default as NX, is "just as safe" as flagging the executable in the first place.
It clearly wouldn't be safe, and that keeps it from being effective. Like having a great lock and burglar alarm, then putting the key and entry code under the mat. NX is to prevent abuse by BAD PEOPLE and therefore should not have any way to defeat it from within a program.
Signature · 3 lines
-bill davidsen ([email protected]) "The secret to procrastination is to put things off until the last possible moment - but no longer" -me