Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1342)

Issue 7377008: Implement mapping randomization for 64-bit Linux. Notes: (Closed)

Created:
9 years, 5 months ago by Chris Evans
Modified:
9 years, 5 months ago
CC:
v8-dev
Visibility:
Public.

Description

Implement mapping randomization for 64-bit Linux. Notes: - 32-bit Linux already seems to scatter the mmap() chunks around; 64-bit didn't. - Seed the system random number generator a little better (we needlessly trunctaed microsecond resolution to millisecond resolution). - Will automatically take advantage of better entropy when V8::RandomPrivate uses it. BUG=v8:805 Committed: http://code.google.com/p/v8/source/detail?r=8702

Patch Set 1 #

Total comments: 8

Patch Set 2 : '' #

Patch Set 3 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -9 lines) Patch
M src/platform-linux.cc View 1 2 3 chunks +29 lines, -9 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Chris Evans
Supercedes http://codereview.chromium.org/7374005/ Passes tests.
9 years, 5 months ago (2011-07-14 21:55:59 UTC) #1
Vyacheslav Egorov (Chromium)
LGTM with comments addressed. http://codereview.chromium.org/7377008/diff/1/src/platform-linux.cc File src/platform-linux.cc (right): http://codereview.chromium.org/7377008/diff/1/src/platform-linux.cc#newcode86 src/platform-linux.cc:86: if (sizeof(void*) == 8 && ...
9 years, 5 months ago (2011-07-15 11:36:23 UTC) #2
Vyacheslav Egorov (Chromium)
More comments. http://codereview.chromium.org/7377008/diff/1/src/platform-linux.cc File src/platform-linux.cc (right): http://codereview.chromium.org/7377008/diff/1/src/platform-linux.cc#newcode89 src/platform-linux.cc:89: uint64_t raw_addr = (static_cast<uint64_t>(rnd1) << 33) | ...
9 years, 5 months ago (2011-07-15 12:29:39 UTC) #3
William Hesse
http://codereview.chromium.org/7377008/diff/1/src/platform-linux.cc File src/platform-linux.cc (left): http://codereview.chromium.org/7377008/diff/1/src/platform-linux.cc#oldcode374 src/platform-linux.cc:374: if (mbase == MAP_FAILED) { I think you need ...
9 years, 5 months ago (2011-07-15 12:43:22 UTC) #4
Chris Evans
On 2011/07/15 12:43:22, William Hesse wrote: > http://codereview.chromium.org/7377008/diff/1/src/platform-linux.cc > File src/platform-linux.cc (left): > > http://codereview.chromium.org/7377008/diff/1/src/platform-linux.cc#oldcode374 ...
9 years, 5 months ago (2011-07-18 20:36:26 UTC) #5
Chris Evans
Ok, comments addressed. Re-ran tests (ok). Checked compile of 32-bit Linux too. PTAL? If you ...
9 years, 5 months ago (2011-07-18 21:12:57 UTC) #6
Chris Evans
On 2011/07/18 21:12:57, Chris Evans wrote: > Ok, comments addressed. > Re-ran tests (ok). Checked ...
9 years, 5 months ago (2011-07-20 19:54:12 UTC) #7
Chris Evans
Ok, 32-bit support added. Really helps for ChromeOS as it happens. Definitely something we want. ...
9 years, 5 months ago (2011-07-20 22:34:08 UTC) #8
Mads Ager (chromium)
9 years, 5 months ago (2011-07-21 07:35:17 UTC) #9
LGTM, I'll land it.

Powered by Google App Engine
This is Rietveld 408576698