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

Issue 1248673004: Set a new TLS when using CLONE_VM. (Closed)

Created:
5 years, 5 months ago by rickyz (no longer on Chrome)
Modified:
5 years, 5 months ago
CC:
chromium-reviews, rickyz+watch_chromium.org, jln+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Set a new TLS when using CLONE_VM. On some libcs, clone writes to the new child's TLS before returning, so we set a new TLS to avoid corrupting the parent process's TLS. On glibc, this caused an assertion failure inside of pthread_getattr_np(pthread_self(), &attr). BUG=512623 Committed: https://crrev.com/d2516cf1c3843541c920a476315e2a6f10cb0f92 Cr-Commit-Position: refs/heads/master@{#340025}

Patch Set 1 #

Patch Set 2 : Add test #

Total comments: 9

Patch Set 3 : Respond to comments #

Total comments: 2

Patch Set 4 : Respond to comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+46 lines, -3 lines) Patch
M sandbox/linux/services/credentials.cc View 1 2 3 2 chunks +19 lines, -3 lines 0 comments Download
M sandbox/linux/services/credentials_unittest.cc View 1 2 3 2 chunks +27 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (4 generated)
rickyz (no longer on Chrome)
Here's the workaround for the CLONE_VFORK issue :-(
5 years, 5 months ago (2015-07-21 22:57:01 UTC) #2
jln (very slow on Chromium)
https://codereview.chromium.org/1248673004/diff/20001/sandbox/linux/services/credentials.cc File sandbox/linux/services/credentials.cc (right): https://codereview.chromium.org/1248673004/diff/20001/sandbox/linux/services/credentials.cc#newcode56 sandbox/linux/services/credentials.cc:56: int ChrootToSelfFdinfo(void*) { Maybe add a comment here saying ...
5 years, 5 months ago (2015-07-21 23:39:17 UTC) #3
jln (very slow on Chromium)
https://codereview.chromium.org/1248673004/diff/20001/sandbox/linux/services/credentials.cc File sandbox/linux/services/credentials.cc (right): https://codereview.chromium.org/1248673004/diff/20001/sandbox/linux/services/credentials.cc#newcode97 sandbox/linux/services/credentials.cc:97: defined(ARCH_CPU_MIPS_FAMILY) Let's just exclude MIPS here. We've not tested ...
5 years, 5 months ago (2015-07-22 00:04:20 UTC) #4
rickyz (no longer on Chrome)
https://codereview.chromium.org/1248673004/diff/20001/sandbox/linux/services/credentials.cc File sandbox/linux/services/credentials.cc (right): https://codereview.chromium.org/1248673004/diff/20001/sandbox/linux/services/credentials.cc#newcode56 sandbox/linux/services/credentials.cc:56: int ChrootToSelfFdinfo(void*) { On 2015/07/21 23:39:17, jln wrote: > ...
5 years, 5 months ago (2015-07-22 04:00:33 UTC) #5
jln (very slow on Chromium)
lgtm, but if you can think of more tests to add, please do! If you ...
5 years, 5 months ago (2015-07-22 17:30:06 UTC) #6
rickyz (no longer on Chrome)
On 2015/07/22 17:30:06, jln wrote: > Yeah, sorry I meant another "thread" with the vfork() ...
5 years, 5 months ago (2015-07-23 01:14:06 UTC) #8
rickyz (no longer on Chrome)
https://codereview.chromium.org/1248673004/diff/40001/sandbox/linux/services/credentials.cc File sandbox/linux/services/credentials.cc (right): https://codereview.chromium.org/1248673004/diff/40001/sandbox/linux/services/credentials.cc#newcode98 sandbox/linux/services/credentials.cc:98: void *tls = nullptr; On 2015/07/22 17:30:06, jln wrote: ...
5 years, 5 months ago (2015-07-23 01:14:12 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1248673004/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1248673004/80001
5 years, 5 months ago (2015-07-23 01:14:47 UTC) #12
commit-bot: I haz the power
Committed patchset #4 (id:80001)
5 years, 5 months ago (2015-07-23 01:55:32 UTC) #13
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/d2516cf1c3843541c920a476315e2a6f10cb0f92 Cr-Commit-Position: refs/heads/master@{#340025}
5 years, 5 months ago (2015-07-23 01:56:01 UTC) #14
Alexander Potapenko
On 2015/07/23 01:56:01, commit-bot: I haz the power wrote: > Patchset 4 (id:??) landed as ...
5 years, 5 months ago (2015-07-23 11:01:26 UTC) #15
Alexander Potapenko
5 years, 5 months ago (2015-07-23 11:01:57 UTC) #16
Message was sent while issue was closed.
A revert of this CL (patchset #4 id:80001) has been created in
https://codereview.chromium.org/1256533002/ by glider@chromium.org.

The reason for reverting is: This CL has broken ASan Linux (sandboxed) tests:
basically every test from browser_tests, content_browsertests,
interactive_ui_tests times out:
http://build.chromium.org/p/chromium.memory/builders/Linux%20ASan%20Tests%20%....

Powered by Google App Engine
This is Rietveld 408576698