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

Issue 12090112: Linux: grow a unique random mapping in ASLR (Closed)

Created:
7 years, 10 months ago by jln (very slow on Chromium)
Modified:
7 years, 10 months ago
CC:
chromium-reviews, erikwright+watch_chromium.org, dmikurube+memory_chromium.org
Visibility:
Public.

Description

Linux: grow a unique random mapping in ASLR We loosen ASLR by only growing one random mapping. The previous version had security benefits but had a negative performance impact. This change aims to be performance neutral in respect to the pre-ASLR era. At a later date, we may try to strike a good balance between performance and security. BUG=170133, 173371 NOTRY=true Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=180486

Patch Set 1 : #

Total comments: 8

Patch Set 2 : Address comments from Chris. #

Total comments: 12

Patch Set 3 : Address nits from Jim. #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+100 lines, -52 lines) Patch
M base/security_unittest.cc View 2 2 chunks +51 lines, -33 lines 0 comments Download
M third_party/tcmalloc/chromium/src/system-alloc.cc View 1 2 3 chunks +49 lines, -19 lines 3 comments Download

Messages

Total messages: 14 (0 generated)
jln (very slow on Chromium)
This CL restores page cycler performance to the pre-ASLR era by growing a unique mmap ...
7 years, 10 months ago (2013-02-01 05:00:56 UTC) #1
Chris Evans
https://chromiumcodereview.appspot.com/12090112/diff/11001/third_party/tcmalloc/chromium/src/system-alloc.cc File third_party/tcmalloc/chromium/src/system-alloc.cc (right): https://chromiumcodereview.appspot.com/12090112/diff/11001/third_party/tcmalloc/chromium/src/system-alloc.cc#newcode203 third_party/tcmalloc/chromium/src/system-alloc.cc:203: static void* address_hint = NULL; What's the threading story ...
7 years, 10 months ago (2013-02-01 09:22:30 UTC) #2
jln (very slow on Chromium)
Thanks, PTAL! https://chromiumcodereview.appspot.com/12090112/diff/11001/third_party/tcmalloc/chromium/src/system-alloc.cc File third_party/tcmalloc/chromium/src/system-alloc.cc (right): https://chromiumcodereview.appspot.com/12090112/diff/11001/third_party/tcmalloc/chromium/src/system-alloc.cc#newcode203 third_party/tcmalloc/chromium/src/system-alloc.cc:203: static void* address_hint = NULL; On 2013/02/01 ...
7 years, 10 months ago (2013-02-01 09:53:10 UTC) #3
Chris Evans
https://chromiumcodereview.appspot.com/12090112/diff/5011/base/security_unittest.cc File base/security_unittest.cc (right): https://chromiumcodereview.appspot.com/12090112/diff/5011/base/security_unittest.cc#newcode131 base/security_unittest.cc:131: TEST(SecurityTest, ALLOC_TEST(RandomMemoryAllocations)) { I defer to @jar to check ...
7 years, 10 months ago (2013-02-01 19:03:22 UTC) #4
jln (very slow on Chromium)
https://chromiumcodereview.appspot.com/12090112/diff/5011/base/security_unittest.cc File base/security_unittest.cc (right): https://chromiumcodereview.appspot.com/12090112/diff/5011/base/security_unittest.cc#newcode131 base/security_unittest.cc:131: TEST(SecurityTest, ALLOC_TEST(RandomMemoryAllocations)) { On 2013/02/01 19:03:23, Chris Evans wrote: ...
7 years, 10 months ago (2013-02-01 19:15:41 UTC) #5
jln (very slow on Chromium)
Jim, could you please take a look ?
7 years, 10 months ago (2013-02-01 19:18:36 UTC) #6
jar (doing other things)
Mostly comments on the test (which I'll waive if you agree to land better tests ...
7 years, 10 months ago (2013-02-01 22:31:27 UTC) #7
jln (very slow on Chromium)
Thanks PTAL! Re test: yes, let's introduce testing hooks in a next patch. It's the ...
7 years, 10 months ago (2013-02-01 22:50:47 UTC) #8
jln (very slow on Chromium)
https://chromiumcodereview.appspot.com/12090112/diff/15003/third_party/tcmalloc/chromium/src/system-alloc.cc File third_party/tcmalloc/chromium/src/system-alloc.cc (right): https://chromiumcodereview.appspot.com/12090112/diff/15003/third_party/tcmalloc/chromium/src/system-alloc.cc#newcode209 third_party/tcmalloc/chromium/src/system-alloc.cc:209: reinterpret_cast<uint64_t>(address_hint) & ~kRandomAddressMask)) { Another way to look at ...
7 years, 10 months ago (2013-02-01 23:16:30 UTC) #9
jln (very slow on Chromium)
jim, any chance you could take a look today ? I really would like to ...
7 years, 10 months ago (2013-02-04 17:57:27 UTC) #10
jar (doing other things)
I'd really like better testing, and as per agreement, the test will soon use some ...
7 years, 10 months ago (2013-02-04 18:34:07 UTC) #11
jln (very slow on Chromium)
Thanks! I'll make sure I get this test in a decent shape ASAP. https://chromiumcodereview.appspot.com/12090112/diff/15003/third_party/tcmalloc/chromium/src/system-alloc.cc File ...
7 years, 10 months ago (2013-02-04 19:23:04 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jln@chromium.org/12090112/15003
7 years, 10 months ago (2013-02-04 20:01:25 UTC) #13
commit-bot: I haz the power
7 years, 10 months ago (2013-02-04 20:03:21 UTC) #14
Message was sent while issue was closed.
Change committed as 180486

Powered by Google App Engine
This is Rietveld 408576698