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

Issue 11141016: mprotect system call exposed to the untrusted code. (Closed)

Created:
8 years, 2 months ago by Petr Hosek
Modified:
8 years, 1 month ago
CC:
native-client-reviews_googlegroups.com
Visibility:
Public.

Description

Add an IRT dev interface for mprotect() The mprotect system call is now exposed by IRT. Note that you still need to use '-a' option otherwise you will receive EACCES error after invocation. BUG=http://code.google.com/p/nativeclient/issues/detail?id=895 TESTS=small_tests Committed: https://src.chromium.org/viewvc/native_client?view=rev&revision=10108

Patch Set 1 #

Total comments: 5

Patch Set 2 : Keep using NACL_SYSCALL until toolchains get updated. #

Patch Set 3 : Bump the IRT memory interface version. #

Total comments: 3

Patch Set 4 : Split mprotect into separate dev interface. #

Total comments: 7

Patch Set 5 : Removed leftover code. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -8 lines) Patch
M src/untrusted/irt/irt.h View 1 2 3 4 1 chunk +9 lines, -0 lines 0 comments Download
M src/untrusted/irt/irt.gyp View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
A + src/untrusted/irt/irt_dev_mprotect.c View 1 2 3 4 1 chunk +4 lines, -8 lines 0 comments Download
M src/untrusted/irt/irt_interfaces.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M src/untrusted/irt/irt_interfaces.c View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M src/untrusted/irt/nacl.scons View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M src/untrusted/nacl/sys_private.c View 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
Petr Hosek
8 years, 2 months ago (2012-10-13 23:53:21 UTC) #1
Mark Seaborn
[+Roland] The commit message is misleading: you're not changing what's exposed to untrusted code. You're ...
8 years, 2 months ago (2012-10-14 00:47:16 UTC) #2
Petr Hosek
I have updated the commit message. https://codereview.chromium.org/11141016/diff/1/src/untrusted/irt/irt.h File src/untrusted/irt/irt.h (right): https://codereview.chromium.org/11141016/diff/1/src/untrusted/irt/irt.h#newcode94 src/untrusted/irt/irt.h:94: int (*mprotect)(void *addr, ...
8 years, 2 months ago (2012-10-14 00:53:21 UTC) #3
Mark Seaborn
https://codereview.chromium.org/11141016/diff/1/src/untrusted/irt/irt.h File src/untrusted/irt/irt.h (right): https://codereview.chromium.org/11141016/diff/1/src/untrusted/irt/irt.h#newcode94 src/untrusted/irt/irt.h:94: int (*mprotect)(void *addr, size_t len, int prot); On 2012/10/14 ...
8 years, 2 months ago (2012-10-14 00:59:49 UTC) #4
bsy
lgtm
8 years, 2 months ago (2012-10-17 23:26:31 UTC) #5
Mark Seaborn
Please don't commit this as-is. I would like to get Roland's opinion on how to ...
8 years, 2 months ago (2012-10-18 00:27:22 UTC) #6
Mark Seaborn
On 17 October 2012 17:27, <mseaborn@chromium.org> wrote: > Please don't commit this as-is. I would ...
8 years, 2 months ago (2012-10-18 01:42:16 UTC) #7
Roland McGrath
If this is not yet ready to be available to all applications, then a new ...
8 years, 2 months ago (2012-10-18 17:13:57 UTC) #8
bsy
https://codereview.chromium.org/11141016/diff/4011/src/untrusted/irt/irt.h File src/untrusted/irt/irt.h (right): https://codereview.chromium.org/11141016/diff/4011/src/untrusted/irt/irt.h#newcode95 src/untrusted/irt/irt.h:95: int (*mprotect)(void *addr, size_t len, int prot); the pattern ...
8 years, 2 months ago (2012-10-18 19:46:09 UTC) #9
Petr Hosek
On 2012/10/18 17:13:57, Roland McGrath wrote: > If this is not yet ready to be ...
8 years, 1 month ago (2012-10-25 16:48:56 UTC) #10
Mark Seaborn
This is better, but there's some leftover code... https://chromiumcodereview.appspot.com/11141016/diff/21001/src/untrusted/irt/irt.h File src/untrusted/irt/irt.h (right): https://chromiumcodereview.appspot.com/11141016/diff/21001/src/untrusted/irt/irt.h#newcode94 src/untrusted/irt/irt.h:94: int ...
8 years, 1 month ago (2012-10-25 17:05:36 UTC) #11
Petr Hosek
https://chromiumcodereview.appspot.com/11141016/diff/21001/src/untrusted/irt/irt.h File src/untrusted/irt/irt.h (right): https://chromiumcodereview.appspot.com/11141016/diff/21001/src/untrusted/irt/irt.h#newcode94 src/untrusted/irt/irt.h:94: int (*mprotect)(void *addr, size_t len, int prot); On 2012/10/25 ...
8 years, 1 month ago (2012-10-25 18:46:57 UTC) #12
Mark Seaborn
8 years, 1 month ago (2012-10-26 00:25:23 UTC) #13
LGTM

Powered by Google App Engine
This is Rietveld 408576698