Files
mckernel/test/issues/1039/C1039.txt
Tomoki Shirasawa 5fcbfa2eb5 page_fault_process_memory_range: Remove ihk_mc_map_virtual for CoW of device map
Device map with MAP_PRIVATE is copied when forking using copy_user_pte.
So the map isn't copied by those statements.

Futjitsu: POSTK_TEMP_FIX_14
Refs: #1039
Change-Id: I1a697ed2e003055d66a8eebd3e8d5e9e49d094ad
2018-08-30 02:21:42 +00:00

38 lines
1.8 KiB
Plaintext

Script started on Mon Aug 27 11:54:38 2018
bash-4.2$ make test
sh ./C1039.sh
fork02 0 TINFO : Inside parent
fork02 0 TINFO : Inside child
fork02 0 TINFO : exit status of wait 0
fork02 1 TPASS : test 1 PASSED
*** C1039T01: fork02 OK (1)
fork03 0 TINFO : process id in parent of child from fork : 29001
fork03 1 TPASS : test 1 PASSED
*** C1039T02: fork03 OK (1)
execl01_child 1 TPASS : execve01_child executed
execve01 0 TINFO : Child process returned TPASS
*** C1039T03: execve01 OK (2)
Error: Failed to open execve_child
execve(): error loading ELF for file execve_child
execve02 1 TPASS : execve() failed expectedly: TEST_ERRNO=EACCES(13): Permission denied
execve02 0 TINFO : Child process returned TPASS
*** C1039T04: execve02 OK (2)
execve03 1 TPASS : execve failed as expected: TEST_ERRNO=ENAMETOOLONG(36): File name too long
execve03 2 TPASS : execve failed as expected: TEST_ERRNO=ENOENT(2): No such file or directory
lookup_exec_path: lookup_exec_path(): error stat
execve03 3 TPASS : execve failed as expected: TEST_ERRNO=ENOTDIR(20): Not a directory
execve03 4 TPASS : execve failed as expected: TEST_ERRNO=EFAULT(14): Bad address
Error: /tmp/exe0BQ0Va/fake.29225 is not an executable?, errno: 13
execve(): error loading ELF for file /tmp/exe0BQ0Va/fake.29225
execve03 5 TPASS : execve failed as expected: TEST_ERRNO=EACCES(13): Permission denied
Error: file /tmp/exe0BQ0Va/execve03.29225 is zero length
execve(): error loading ELF for file /tmp/exe0BQ0Va/execve03.29225
execve03 6 TPASS : execve failed as expected: TEST_ERRNO=ENOEXEC(8): Exec format error
*** C1039T05: execve03 OK (6)
mmap12 1 TPASS : Functionality of mmap() successful
*** C1039T06: mmap12 OK (1)
bash-4.2$ exit
exit
Script done on Mon Aug 27 11:54:58 2018