Make heap and stack private mapping

Change-Id: I4306566b3bbbe27d206c5518a2d36d117ba4ca9f
This commit is contained in:
Balazs Gerofi
2019-06-05 15:21:20 +09:00
parent dc52c8a11a
commit e9955a4bba
3 changed files with 3 additions and 2 deletions

View File

@@ -254,7 +254,7 @@ int prepare_process_ranges_args_envs(struct thread *thread,
#endif
/* Map, copy and update args and envs */
flags = VR_PROT_READ | VR_PROT_WRITE;
flags = VR_PROT_READ | VR_PROT_WRITE | VR_PRIVATE;
flags |= VRFLAG_PROT_TO_MAXPROT(flags);
addr = vm->region.map_start - PAGE_SIZE * SCD_RESERVED_COUNT;
e = addr + PAGE_SIZE * ARGENV_PAGE_COUNT;