[SOLVED] CS /* Child process for mmap-inherit test.

$25

File Name: CS_/*_Child_process_for_mmap-inherit_test..zip
File Size: 395.64 KB

5/5 - (1 vote)

/* Child process for mmap-inherit test.
Tries to write to a mapping present in the parent.
The process must be terminated with -1 exit code. */

#include
#include tests/vm/sample.inc
#include tests/lib.h
#include tests/main.h

void
test_main (void)
{
memset ((char *) 0x54321000, 0, 4096);
fail (child can modify parents memory mappings);
}

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[SOLVED] CS /* Child process for mmap-inherit test.
$25