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

Issue 12382030: Provide mprotect syscall (Closed)

Created:
7 years, 9 months ago by Petr Hosek
Modified:
7 years, 8 months ago
CC:
native-client-reviews_googlegroups.com, bsy
Base URL:
http://git.chromium.org/native_client/nacl-glibc.git@master
Visibility:
Public.

Description

Provide mprotect syscall Expose the mprotect syscall which is a part of experimental IRT interface. BUG= http://code.google.com/p/nativeclient/issues/detail?id=895 TEST= glibc trybots Committed: https://git.chromium.org/gitweb?p=native_client/nacl-glibc.git;a=commit;h=eb3343e

Patch Set 1 #

Patch Set 2 : Use stable IRT interface #

Patch Set 3 : Remove addr const modifier from mprotect #

Total comments: 8

Patch Set 4 : Addressed CR comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -8 lines) Patch
M elf/Versions View 1 chunk +1 line, -0 lines 0 comments Download
M sysdeps/nacl/irt.h View 1 2 3 1 chunk +9 lines, -1 line 0 comments Download
M sysdeps/nacl/irt_syscalls.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M sysdeps/nacl/irt_syscalls.c View 1 2 3 4 chunks +19 lines, -2 lines 0 comments Download
A + sysdeps/nacl/mprotect.c View 1 chunk +3 lines, -3 lines 0 comments Download
M sysdeps/nacl/nacl_syscalls.h View 2 chunks +4 lines, -0 lines 0 comments Download
M sysdeps/nacl/sysdep.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
Petr Hosek
7 years, 9 months ago (2013-02-28 22:33:40 UTC) #1
Roland McGrath
The code itself looks OK but I am not convinced we want to have libc ...
7 years, 9 months ago (2013-02-28 22:54:09 UTC) #2
bsy
it sounds like we need to promote this to a stable interface. objections? On Thu, ...
7 years, 9 months ago (2013-02-28 23:04:09 UTC) #3
Petr Hosek
I'm fine with that, the question whether it should stay as a separate irt_mprotect interface ...
7 years, 9 months ago (2013-03-01 02:01:57 UTC) #4
Mark Seaborn
On 28 February 2013 18:01, <phosek@chromium.org> wrote: > I'm fine with that, the question whether ...
7 years, 9 months ago (2013-03-01 15:03:36 UTC) #5
Roland McGrath
I have a mild-to-moderate preference for a new version of irt_memory instead of a separate ...
7 years, 9 months ago (2013-03-01 17:31:37 UTC) #6
Petr Hosek
I agree with Roland, providing a new version of irt_memory feels like a cleaner solution ...
7 years, 9 months ago (2013-03-01 19:21:24 UTC) #7
Roland McGrath
On Fri, Mar 1, 2013 at 11:21 AM, <phosek@chromium.org> wrote: > The question is how ...
7 years, 9 months ago (2013-03-01 19:37:44 UTC) #8
Petr Hosek
I've been playing with the IRT over the weekend. I definitely prefer having an entirely ...
7 years, 9 months ago (2013-03-04 01:03:10 UTC) #9
Roland McGrath
Sounds reasonable to me.
7 years, 9 months ago (2013-03-04 17:12:07 UTC) #10
bsy
i agree w/ mcgrathr that .base etc shouldn't be exposed. it's hair that developers -- ...
7 years, 9 months ago (2013-03-04 17:39:11 UTC) #11
Petr Hosek
What if we want to change (or remove) the existing member?
7 years, 9 months ago (2013-03-04 19:37:31 UTC) #12
Petr Hosek
I have updated the code to use the stable IRT interface. Please note that I ...
7 years, 8 months ago (2013-03-29 15:32:05 UTC) #13
Mark Seaborn
https://codereview.chromium.org/12382030/diff/26004/sysdeps/nacl/irt.h File sysdeps/nacl/irt.h (right): https://codereview.chromium.org/12382030/diff/26004/sysdeps/nacl/irt.h#newcode169 sysdeps/nacl/irt.h:169: #define NACL_IRT_DEV_MPROTECT_v0_1 "nacl-irt-dev-mprotect-0.1" You should remove this https://codereview.chromium.org/12382030/diff/26004/sysdeps/nacl/irt_syscalls.c File ...
7 years, 8 months ago (2013-03-29 15:48:07 UTC) #14
Petr Hosek
https://codereview.chromium.org/12382030/diff/26004/sysdeps/nacl/irt.h File sysdeps/nacl/irt.h (right): https://codereview.chromium.org/12382030/diff/26004/sysdeps/nacl/irt.h#newcode169 sysdeps/nacl/irt.h:169: #define NACL_IRT_DEV_MPROTECT_v0_1 "nacl-irt-dev-mprotect-0.1" On 2013/03/29 15:48:07, Mark Seaborn wrote: ...
7 years, 8 months ago (2013-03-29 21:02:21 UTC) #15
Mark Seaborn
LGTM
7 years, 8 months ago (2013-04-01 15:13:41 UTC) #16
Petr Hosek
7 years, 8 months ago (2013-04-04 15:04:12 UTC) #17
Message was sent while issue was closed.
Committed patchset #4 manually as reb3343e (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698