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

Issue 686723003: Non-SFI mode: Implement nacl_irt_random only for nacl_helper_nonsfi. (Closed)

Created:
6 years, 1 month ago by hidehiko
Modified:
6 years, 1 month ago
CC:
native-client-reviews_googlegroups.com
Project:
nacl
Visibility:
Public.

Description

Non-SFI mode: Implement nacl_irt_random only for nacl_helper_nonsfi. In order to share some startup functions with SFI mode, especially around IRT implementations, this CL implements nacl_irt_random. The original implementation is components/nacl/loader/nonsfi/irt_random.cc. BUG=http://code.google.com/p/chromium/issues/detail?id=358465 TEST=Ran trybot. Implement nacl_helper_nonsfi on top of this CL and made sure its browser_tests pass. Committed: http://src.chromium.org/viewvc/native_client?view=rev&revision=14056

Patch Set 1 #

Total comments: 4

Patch Set 2 : #

Total comments: 24

Patch Set 3 : Rebase #

Patch Set 4 : #

Total comments: 2

Patch Set 5 : #

Patch Set 6 : Rebase #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+82 lines, -12 lines) Patch
M SConstruct View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M pnacl/build.sh View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M pnacl/driver/pnacl-translate.py View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M src/nonsfi/irt/build.scons View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M src/nonsfi/irt/irt.gyp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/nonsfi/irt/irt_interfaces.c View 1 2 3 3 chunks +6 lines, -0 lines 0 comments Download
A + src/nonsfi/irt/irt_random.h View 1 2 3 4 5 1 chunk +7 lines, -4 lines 2 comments Download
A src/nonsfi/irt/irt_random.c View 1 2 3 1 chunk +46 lines, -0 lines 0 comments Download
M src/nonsfi/loader/build.scons View 1 1 chunk +1 line, -1 line 0 comments Download
M src/untrusted/nacl/nacl.scons View 1 2 3 4 5 1 chunk +7 lines, -6 lines 0 comments Download
M toolchain_build/pnacl_targetlibs.py View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (8 generated)
hidehiko
This should help sharing chrome_irt_query function in irt_ppapi.cc between SFI and Non-SFI. (I.e., with this ...
6 years, 1 month ago (2014-10-28 20:17:33 UTC) #2
hidehiko
On 2014/10/28 20:17:33, hidehiko wrote: > This should help sharing chrome_irt_query function in irt_ppapi.cc between ...
6 years, 1 month ago (2014-10-29 16:57:54 UTC) #3
Junichi Uekawa
On 2014/10/29 16:57:54, hidehiko wrote: > On 2014/10/28 20:17:33, hidehiko wrote: > > This should ...
6 years, 1 month ago (2014-10-30 03:46:33 UTC) #4
Junichi Uekawa
On 2014/10/29 16:57:54, hidehiko wrote: > On 2014/10/28 20:17:33, hidehiko wrote: > > This should ...
6 years, 1 month ago (2014-10-30 03:46:35 UTC) #5
hidehiko
On 2014/10/30 03:46:35, Junichi Uekawa wrote: > On 2014/10/29 16:57:54, hidehiko wrote: > > On ...
6 years, 1 month ago (2014-10-30 04:20:05 UTC) #6
Junichi Uekawa
lgtm
6 years, 1 month ago (2014-10-30 11:04:50 UTC) #7
Mark Seaborn
https://codereview.chromium.org/686723003/diff/1/src/nonsfi/irt/irt_interfaces.c File src/nonsfi/irt/irt_interfaces.c (right): https://codereview.chromium.org/686723003/diff/1/src/nonsfi/irt/irt_interfaces.c#newcode439 src/nonsfi/irt/irt_interfaces.c:439: static int urandom_fd = -1; Style nit: Add "g_" ...
6 years, 1 month ago (2014-10-30 18:58:31 UTC) #8
hidehiko
Thank you for review. PTAL. https://codereview.chromium.org/686723003/diff/1/src/nonsfi/irt/irt_interfaces.c File src/nonsfi/irt/irt_interfaces.c (right): https://codereview.chromium.org/686723003/diff/1/src/nonsfi/irt/irt_interfaces.c#newcode439 src/nonsfi/irt/irt_interfaces.c:439: static int urandom_fd = ...
6 years, 1 month ago (2014-10-31 14:03:52 UTC) #11
hidehiko
Friendly ping? - hidehiko On 2014/10/31 14:03:52, hidehiko wrote: > Thank you for review. PTAL. ...
6 years, 1 month ago (2014-11-03 13:32:06 UTC) #12
Mark Seaborn
LGTM https://codereview.chromium.org/686723003/diff/60001/src/nonsfi/irt/build.scons File src/nonsfi/irt/build.scons (right): https://codereview.chromium.org/686723003/diff/60001/src/nonsfi/irt/build.scons#newcode25 src/nonsfi/irt/build.scons:25: # For testing purpose, we split irt_random from ...
6 years, 1 month ago (2014-11-04 01:19:53 UTC) #13
hidehiko
Thank you for review! I'll submit once trybots are recovered. https://codereview.chromium.org/686723003/diff/60001/src/nonsfi/irt/build.scons File src/nonsfi/irt/build.scons (right): https://codereview.chromium.org/686723003/diff/60001/src/nonsfi/irt/build.scons#newcode25 ...
6 years, 1 month ago (2014-11-04 11:16:59 UTC) #16
Mark Seaborn
LGTM https://codereview.chromium.org/686723003/diff/60001/src/untrusted/nacl/nacl.scons File src/untrusted/nacl/nacl.scons (right): https://codereview.chromium.org/686723003/diff/60001/src/untrusted/nacl/nacl.scons#newcode191 src/untrusted/nacl/nacl.scons:191: if not env.Bit('posix') and not env.Bit('nonsfi_nacl'): On 2014/11/04 ...
6 years, 1 month ago (2014-11-05 19:01:16 UTC) #17
hidehiko
Thank you for review. Submitting... https://codereview.chromium.org/686723003/diff/60001/src/untrusted/nacl/nacl.scons File src/untrusted/nacl/nacl.scons (right): https://codereview.chromium.org/686723003/diff/60001/src/untrusted/nacl/nacl.scons#newcode191 src/untrusted/nacl/nacl.scons:191: if not env.Bit('posix') and ...
6 years, 1 month ago (2014-11-06 13:22:24 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/686723003/160001
6 years, 1 month ago (2014-11-06 13:23:23 UTC) #20
commit-bot: I haz the power
Failed to apply patch for src/nonsfi/irt/irt_random.h: While running patch -p1 --forward --force --no-backup-if-mismatch; A src/nonsfi/irt/irt_random.h ...
6 years, 1 month ago (2014-11-06 13:23:29 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/686723003/180001
6 years, 1 month ago (2014-11-06 13:58:42 UTC) #24
commit-bot: I haz the power
Committed patchset #6 (id:180001) as 14056
6 years, 1 month ago (2014-11-06 16:50:26 UTC) #25
Mark Seaborn
https://codereview.chromium.org/686723003/diff/180001/src/nonsfi/irt/irt_random.h File src/nonsfi/irt/irt_random.h (right): https://codereview.chromium.org/686723003/diff/180001/src/nonsfi/irt/irt_random.h#newcode18 src/nonsfi/irt/irt_random.h:18: void nonsfi_set_urandom_fd(int fd); It occurs to me that if ...
6 years, 1 month ago (2014-11-06 17:05:32 UTC) #26
hidehiko
https://codereview.chromium.org/686723003/diff/180001/src/nonsfi/irt/irt_random.h File src/nonsfi/irt/irt_random.h (right): https://codereview.chromium.org/686723003/diff/180001/src/nonsfi/irt/irt_random.h#newcode18 src/nonsfi/irt/irt_random.h:18: void nonsfi_set_urandom_fd(int fd); On 2014/11/06 17:05:32, Mark Seaborn wrote: ...
6 years, 1 month ago (2014-11-06 19:53:15 UTC) #27
Mark Seaborn
6 years, 1 month ago (2014-11-07 02:46:49 UTC) #28
Message was sent while issue was closed.
On 6 November 2014 11:53, <hidehiko@chromium.org> wrote:

>
> https://codereview.chromium.org/686723003/diff/180001/src/
> nonsfi/irt/irt_random.h
> File src/nonsfi/irt/irt_random.h (right):
>
> https://codereview.chromium.org/686723003/diff/180001/src/
> nonsfi/irt/irt_random.h#newcode18
> src/nonsfi/irt/irt_random.h:18: void nonsfi_set_urandom_fd(int fd);
> On 2014/11/06 17:05:32, Mark Seaborn wrote:
>
>> It occurs to me that if you want to call this from the Chromium side, then
>
>  you'll need to declare it in a header in src/public/.
>>
>
> Hmm, then should we move src/nonsfi/linux/irt_exception_handling.h,
> which also needs to be referred from Chromium side?


Yes, that one too.  BTW, feel free to send out for review your
Chromium-side change that uses these headers, before you move the headers
to src/public/.  It would be useful to start the review even if some of the
details are going to be tweaked before it's committed.

Cheers,
Mark

-- 
You received this message because you are subscribed to the Google Groups
"Native-Client-Reviews" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to native-client-reviews+unsubscribe@googlegroups.com.
To post to this group, send email to native-client-reviews@googlegroups.com.
Visit this group at http://groups.google.com/group/native-client-reviews.
For more options, visit https://groups.google.com/d/optout.

Powered by Google App Engine
This is Rietveld 408576698