From 98c7c4ca94d67b95945a5468738be716bc7e6e25 Mon Sep 17 00:00:00 2001 From: Dave Jones Date: Mon, 9 Dec 2013 13:24:55 -0500 Subject: [PATCH] make mlock aware of maps list --- syscalls/mlock.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/syscalls/mlock.c b/syscalls/mlock.c index ccba05e..70afce9 100644 --- a/syscalls/mlock.c +++ b/syscalls/mlock.c @@ -2,22 +2,21 @@ * SYSCALL_DEFINE2(mlock, unsigned long, start, size_t, len) */ #include +#include "maps.h" #include "shm.h" #include "sanitise.h" static void sanitise_mlock(int childno) { - if (shm->a2[childno] == 0) - shm->a2[childno] = 1; // must be non-null. + (void) common_set_mmap_ptr_len(childno); } struct syscall syscall_mlock = { .name = "mlock", .num_args = 2, .arg1name = "addr", - .arg1type = ARG_ADDRESS, + .arg1type = ARG_MMAP, .arg2name = "len", - .arg2type = ARG_LEN, .group = GROUP_VM, .sanitise = sanitise_mlock, }; -- 2.11.4.GIT