[tor-bugs] #2358 [Tor Client]: Windows ASLR is not enabled for tor.exe, and DEP should be forced

Tor Bug Tracker & Wiki torproject-admin at torproject.org
Fri Jan 7 05:20:45 UTC 2011


#2358: Windows ASLR is not enabled for tor.exe, and DEP should be forced
-------------------------+--------------------------------------------------
 Reporter:  special      |       Owner:                    
     Type:  enhancement  |      Status:  needs_review      
 Priority:  normal       |   Milestone:  Tor: 0.2.2.x-final
Component:  Tor Client   |     Version:                    
 Keywords:               |      Parent:                    
-------------------------+--------------------------------------------------
Changes (by special):

  * status:  new => needs_review


Comment:

 This was much easier than I expected. Recent (March 2009) versions of the
 mingw linker can set the nxcompat (forced DEP) and dynamicbase (ASLR-
 compatible) options, so I wrote an autoconf test to enable these.

 It appears that with nxcompat from the linker, DEP is permanent, which
 makes the call to SetProcessDEPPolicy redundant. I put that in regardless,
 because not all linker versions may support these options. It could be
 left out.

 For testing, view the properties in [http://technet.microsoft.com/en-
 us/sysinternals/bb896653 Process Explorer]. DEP should be permanent, and
 ASLR enabled.

-- 
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/2358#comment:2>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list