117 lines
4.6 KiB
Plaintext
117 lines
4.6 KiB
Plaintext
*** C1381T01 start *******************************
|
|
** Case 1: specified MAP_HUGETLB
|
|
[OK] munmap returned -1 and errno: EINVAL
|
|
** Case 2: size is aligned on large page
|
|
[OK] munmap returned -1 and errno: EINVAL
|
|
** Case 3: size is NOT aligned on large page
|
|
[OK] munamp succceeded
|
|
*** C1381T01 PASSED ******************************
|
|
|
|
*** C1381T02 start *******************************
|
|
futex_wake04 0 TINFO : Hugepagesize 536870912
|
|
futex_wake04 1 TPASS : Hi hydra, thread2 awake!
|
|
*** C1381T02 PASSED (1)
|
|
|
|
*** C1381T03 start *******************************
|
|
tst_test.c:1096: INFO: Timeout per run is 0h 05m 00s
|
|
shmat01.c:147: PASS: shmat() succeeded to attach NULL address
|
|
shmat01.c:147: PASS: shmat() succeeded to attach aligned address
|
|
shmat01.c:147: PASS: shmat() succeeded to attach unaligned address with SHM_RND
|
|
shmat01.c:147: PASS: shmat() succeeded to attach aligned address with SHM_READONLY, and got S IGSEGV on write
|
|
|
|
Summary:
|
|
passed 4
|
|
failed 0
|
|
skipped 0
|
|
warnings 0
|
|
*** C1381T03 PASSED (4)
|
|
|
|
*** C1381T04 start *******************************
|
|
tst_test.c:1096: INFO: Timeout per run is 0h 05m 00s
|
|
shmat02.c:68: PASS: shmat() failed as expected: EINVAL
|
|
shmat02.c:68: PASS: shmat() failed as expected: EINVAL
|
|
shmat02.c:68: PASS: shmat() failed as expected: EACCES
|
|
|
|
Summary:
|
|
passed 3
|
|
failed 0
|
|
skipped 0
|
|
warnings 0
|
|
*** C1381T04 PASSED (3)
|
|
|
|
*** C1381T05 start *******************************
|
|
tst_test.c:1096: INFO: Timeout per run is 0h 05m 00s
|
|
shmat03.c:75: INFO: Attempting to attach shared memory to null page
|
|
shmat03.c:91: INFO: Mapped shared memory to 0x1000001e0000
|
|
shmat03.c:98: PASS: The kernel assigned a different VM address
|
|
shmat03.c:101: INFO: Touching shared memory to see if anything strange happens
|
|
|
|
Summary:
|
|
passed 1
|
|
failed 0
|
|
skipped 0
|
|
warnings 0
|
|
*** C1381T05 PASSED (1)
|
|
|
|
*** C1381T06 start *******************************
|
|
shmctl01 1 TPASS : pid, size, # of attaches and mode are correct - pass #1
|
|
shmctl01 2 TPASS : pid, size, # of attaches and mode are correct - pass #2
|
|
shmctl01 3 TPASS : new mode and change time are correct
|
|
shmctl01 4 TPASS : get correct shared memory limits
|
|
shmctl01 5 TPASS : get correct shared memory id
|
|
shmctl01 6 TPASS : SHM_LOCK is set
|
|
shmctl01 7 TPASS : SHM_LOCK is cleared
|
|
shmctl01 8 TPASS : shared memory appears to be removed
|
|
*** C1381T06 PASSED (8)
|
|
|
|
*** C1381T07 start *******************************
|
|
shmctl02 1 TPASS : expected failure - errno = 13 : Permission denied
|
|
shmctl02 2 TPASS : expected failure - errno = 14 : Bad address
|
|
shmctl02 3 TPASS : expected failure - errno = 14 : Bad address
|
|
shmctl02 4 TPASS : expected failure - errno = 22 : Invalid argument
|
|
shmctl02 5 TPASS : expected failure - errno = 22 : Invalid argument
|
|
shmctl02 6 TCONF : shmctl02.c:138: shmctl() did not fail for non-root user.This may be okay for your distribution.
|
|
shmctl02 7 TCONF : shmctl02.c:138: shmctl() did not fail for non-root user.This may be okay for your distribution.
|
|
*** C1381T07 PASSED (5)
|
|
|
|
*** C1381T08 start *******************************
|
|
shmctl03 1 TPASS : expected failure - errno = 13 : Permission denied
|
|
shmctl03 2 TPASS : expected failure - errno = 1 : Operation not permitted
|
|
shmctl03 3 TPASS : expected failure - errno = 1 : Operation not permitted
|
|
*** C1381T08 PASSED (3)
|
|
|
|
*** C1381T09 start *******************************
|
|
shmctl04 1 TPASS : SHM_INFO call succeeded
|
|
*** C1381T09 PASSED (1)
|
|
|
|
*** C1381T10 start *******************************
|
|
shmdt01 1 TPASS : shared memory detached correctly
|
|
*** C1381T10 PASSED (1)
|
|
|
|
*** C1381T11 start *******************************
|
|
shmdt02 1 TPASS : expected failure - errno = 22 : Invalid argument
|
|
*** C1381T11 PASSED (1)
|
|
|
|
*** C1381T12 start *******************************
|
|
shmget01 1 TPASS : size, pid & mode are correct
|
|
*** C1381T12 PASSED (1)
|
|
|
|
*** C1381T13 start *******************************
|
|
shmget02 1 TPASS : expected failure - errno = 22 : Invalid argument
|
|
shmget02 2 TPASS : expected failure - errno = 22 : Invalid argument
|
|
shmget02 3 TPASS : expected failure - errno = 17 : File exists
|
|
shmget02 4 TPASS : expected failure - errno = 2 : No such file or directory
|
|
*** C1381T13 PASSED (4)
|
|
|
|
*** C1381T14 start *******************************
|
|
shmget03 1 TPASS : expected failure - errno = 28 : No space left on device
|
|
*** C1381T14 PASSED (1)
|
|
|
|
*** C1381T15 start *******************************
|
|
shmget04 1 TPASS : expected failure - errno = 13 : Permission denied
|
|
*** C1381T15 PASSED (1)
|
|
|
|
*** C1381T16 start *******************************
|
|
shmget05 1 TPASS : expected failure - errno = 13 : Permission denied
|
|
*** C1381T16 PASSED (1)
|