00001 /* Child process for mmap-inherit test. 00002 Tries to write to a mapping present in the parent. 00003 The process must be terminated with -1 exit code. */ 00004 00005 #include <string.h> 00006 #include "tests/vm/sample.inc" 00007 #include "tests/lib.h" 00008 #include "tests/main.h" 00009 00010 void 00011 test_main (void) 00012 { 00013 memset ((char *) 0x54321000, 0, 4096); 00014 fail ("child can modify parent's memory mappings"); 00015 } 00016