Closed Bug 405523 Opened 17 years ago Closed 16 years ago

Add dynamicbase flag (build with ASLR when available)

Categories

(Firefox Build System :: General, defect, P1)

x86
Windows Vista
defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: ws, Assigned: ted)

References

(Blocks 1 open bug)

Details

(Whiteboard: [sg:want?])

Attachments

(1 file, 1 obsolete file)

Investigate linking with /dynamicbase (ASLR in Vista.)
As noted in the other bug, /dynamicbase isn't supported by MSVC8, only MSVC8SP1, and isn't documented on MSDN (only noted in a couple of security blogs)... this makes me nervous, and it's also pretty complex to write a configure test for.
http://blogs.msdn.com/michael_howard/archive/2006/10/04/Alleged-Bugs-in-Windows-Vista_1920_s-ASLR-Implementation.aspx

it is documented:
http://msdn2.microsoft.com/en-us/library/bb384887.aspx
Product: Firefox → Core
QA Contact: build.config → build-config
Version: unspecified → Trunk
Does the ref platform use SP1 now?  Is that risky or can we get this?  I'm more than ok with bumping requirements to MSVC8 SP1 if it gets us better mitigation against attacks.  This seems like a solid win for minimal effort.
OS: Mac OS X → Windows Vista
The refplatform uses SP1. Should be easy to turn this on if you want it.
I don't want to turn this on without a configure check so that we don't break builders with plain VC8 or VC71
Summary: add dynamicbase flag → Add dynamicbase flag (build with ASLR when available)
Whiteboard: [sg:want?]
Blocks: 368854
This WFM, although I didn't do a full build with it, I just re-built spidermonkey and verified it linked properly.
Assignee: nobody → ted.mielczarek
Status: NEW → ASSIGNED
Attachment #306914 - Flags: review?(benjamin)
Comment on attachment 306914 [details] [diff] [review]
use dynamicbase on vc8sp1 or newer

Oops, VC8 only differs from SP1 in the fourth version component. New patch in a bit.
Attachment #306914 - Attachment is obsolete: true
Attachment #306914 - Flags: review?(benjamin)
Attached patch betterSplinter Review
Right, this should not fail on plain VC8.
Attachment #306926 - Flags: review?(benjamin)
Flags: blocking1.9+
Priority: -- → P1
Attachment #306926 - Flags: review?(benjamin) → review+
Checked in. Someone should test this to make sure it doesn't cause any bustage on Vista. Guess we'll find out in tomorrow's nightlies!
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Ted: 

1) With this enabled, did the nightlies pass all tests ok?

2) Is there anything beyond your landed "configure.in" changes that we need in release automation to ship with this? 
John:
1) I haven't seen any evidence otherwise (Talos boxes are fine, and I haven't seen any bugs filed yet)
2) Nope, this gets enabled by default if your compiler supports it
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: