shmobj: support large page
Change-Id: I104c1b8551b87f5cbfedb13262e77c00c38e9643
This commit is contained in:
committed by
Masamichi Takagi
parent
d2db639853
commit
47aec70f5f
255
test/issues/1458/aarch64_result.log
Normal file
255
test/issues/1458/aarch64_result.log
Normal file
@@ -0,0 +1,255 @@
|
||||
*** C1458T01 start *******************************
|
||||
** Map pgshift:21 Unmap pgshift:16
|
||||
** Case 1: specified MAP_HUGETLB
|
||||
[OK] munamp succceeded
|
||||
[OK] data is correct
|
||||
[OK] Occurred SEGV on unmap area
|
||||
[OK] data is correct
|
||||
** Case 2: size is aligned on large page
|
||||
[OK] munamp succceeded
|
||||
[OK] data is correct
|
||||
[OK] Occurred SEGV on unmap area
|
||||
[OK] data is correct
|
||||
** Case 3: size is NOT aligned on large page
|
||||
[OK] munamp succceeded
|
||||
[OK] data is correct
|
||||
[OK] Occurred SEGV on unmap area
|
||||
[OK] data is correct
|
||||
** Map pgshift:29 Unmap pgshift:16
|
||||
** Case 1: specified MAP_HUGETLB
|
||||
[OK] munamp succceeded
|
||||
[OK] data is correct
|
||||
[OK] Occurred SEGV on unmap area
|
||||
[OK] data is correct
|
||||
** Case 2: size is aligned on large page
|
||||
[OK] munamp succceeded
|
||||
[OK] data is correct
|
||||
[OK] Occurred SEGV on unmap area
|
||||
[OK] data is correct
|
||||
** Case 3: size is NOT aligned on large page
|
||||
[OK] munamp succceeded
|
||||
[OK] data is correct
|
||||
[OK] Occurred SEGV on unmap area
|
||||
[OK] data is correct
|
||||
** Map pgshift:29 Unmap pgshift:21
|
||||
** Case 1: specified MAP_HUGETLB
|
||||
[OK] munamp succceeded
|
||||
[OK] data is correct
|
||||
[OK] Occurred SEGV on unmap area
|
||||
[OK] data is correct
|
||||
** Case 2: size is aligned on large page
|
||||
[OK] munamp succceeded
|
||||
[OK] data is correct
|
||||
[OK] Occurred SEGV on unmap area
|
||||
[OK] data is correct
|
||||
** Case 3: size is NOT aligned on large page
|
||||
[OK] munamp succceeded
|
||||
[OK] data is correct
|
||||
[OK] Occurred SEGV on unmap area
|
||||
[OK] data is correct
|
||||
*** C1458T01 PASSED ******************************
|
||||
*** C1458T02 start *******************************
|
||||
** Map pgshift:21 Unmap pgshift:16
|
||||
** Case 1: specified MAP_HUGETLB
|
||||
[OK] munamp succceeded
|
||||
[OK] Occurred SEGV on unmap area
|
||||
[OK] data is correct
|
||||
** Case 2: size is aligned on large page
|
||||
[OK] munamp succceeded
|
||||
[OK] Occurred SEGV on unmap area
|
||||
[OK] data is correct
|
||||
** Case 3: size is NOT aligned on large page
|
||||
[OK] munamp succceeded
|
||||
[OK] Occurred SEGV on unmap area
|
||||
[OK] data is correct
|
||||
** Map pgshift:29 Unmap pgshift:16
|
||||
** Case 1: specified MAP_HUGETLB
|
||||
[OK] munamp succceeded
|
||||
[OK] Occurred SEGV on unmap area
|
||||
[OK] data is correct
|
||||
** Case 2: size is aligned on large page
|
||||
[OK] munamp succceeded
|
||||
[OK] Occurred SEGV on unmap area
|
||||
[OK] data is correct
|
||||
** Case 3: size is NOT aligned on large page
|
||||
[OK] munamp succceeded
|
||||
[OK] Occurred SEGV on unmap area
|
||||
[OK] data is correct
|
||||
** Map pgshift:29 Unmap pgshift:21
|
||||
** Case 1: specified MAP_HUGETLB
|
||||
[OK] munamp succceeded
|
||||
[OK] Occurred SEGV on unmap area
|
||||
[OK] data is correct
|
||||
** Case 2: size is aligned on large page
|
||||
[OK] munamp succceeded
|
||||
[OK] Occurred SEGV on unmap area
|
||||
[OK] data is correct
|
||||
** Case 3: size is NOT aligned on large page
|
||||
[OK] munamp succceeded
|
||||
[OK] Occurred SEGV on unmap area
|
||||
[OK] data is correct
|
||||
*** C1458T02 PASSED ******************************
|
||||
*** C1458T03 start *******************************
|
||||
** Map pgshift:21 Unmap pgshift:16
|
||||
** Case 1: specified MAP_HUGETLB
|
||||
shmid: 4141
|
||||
[OK] munamp succceeded
|
||||
[OK] Occurred SEGV on unmap area
|
||||
[OK] data is correct
|
||||
[OK] shmctl(IPC_RMID) succeeded
|
||||
** Case 2: size is aligned on large page
|
||||
shmid: 69678
|
||||
[OK] munamp succceeded
|
||||
[OK] Occurred SEGV on unmap area
|
||||
[OK] data is correct
|
||||
[OK] shmctl(IPC_RMID) succeeded
|
||||
** Case 3: size is NOT aligned on large page
|
||||
shmid: 135215
|
||||
[OK] munamp succceeded
|
||||
[OK] Occurred SEGV on unmap area
|
||||
[OK] data is correct
|
||||
[OK] shmctl(IPC_RMID) succeeded
|
||||
** Map pgshift:29 Unmap pgshift:16
|
||||
** Case 1: specified MAP_HUGETLB
|
||||
shmid: 4144
|
||||
[OK] munamp succceeded
|
||||
[OK] Occurred SEGV on unmap area
|
||||
[OK] data is correct
|
||||
[OK] shmctl(IPC_RMID) succeeded
|
||||
** Case 2: size is aligned on large page
|
||||
shmid: 69681
|
||||
[OK] munamp succceeded
|
||||
[OK] Occurred SEGV on unmap area
|
||||
[OK] data is correct
|
||||
[OK] shmctl(IPC_RMID) succeeded
|
||||
** Case 3: size is NOT aligned on large page
|
||||
shmid: 135218
|
||||
[OK] munamp succceeded
|
||||
[OK] Occurred SEGV on unmap area
|
||||
[OK] data is correct
|
||||
[OK] shmctl(IPC_RMID) succeeded
|
||||
** Map pgshift:29 Unmap pgshift:21
|
||||
** Case 1: specified MAP_HUGETLB
|
||||
shmid: 4147
|
||||
[OK] munamp succceeded
|
||||
[OK] Occurred SEGV on unmap area
|
||||
[OK] data is correct
|
||||
[OK] shmctl(IPC_RMID) succeeded
|
||||
** Case 2: size is aligned on large page
|
||||
shmid: 69684
|
||||
[OK] munamp succceeded
|
||||
[OK] Occurred SEGV on unmap area
|
||||
[OK] data is correct
|
||||
[OK] shmctl(IPC_RMID) succeeded
|
||||
** Case 3: size is NOT aligned on large page
|
||||
shmid: 135221
|
||||
[OK] munamp succceeded
|
||||
[OK] Occurred SEGV on unmap area
|
||||
[OK] data is correct
|
||||
[OK] shmctl(IPC_RMID) succeeded
|
||||
*** C1458T03 PASSED ******************************
|
||||
mcstop+release.sh ... done
|
||||
mcreboot.sh -e hugetlbfs_on_demand -c 12-59 -m 7G@4,7G@5,7G@6,7G@7 ... done
|
||||
*** LTP-shmat01 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 SIGSEGV on write
|
||||
|
||||
Summary:
|
||||
passed 4
|
||||
failed 0
|
||||
skipped 0
|
||||
warnings 0
|
||||
*** PASSED (4)
|
||||
|
||||
*** LTP-shmat02 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
|
||||
*** PASSED (3)
|
||||
|
||||
*** LTP-shmat03 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 0x1000001c0000
|
||||
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
|
||||
*** PASSED (1)
|
||||
|
||||
*** LTP-shmctl01 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
|
||||
*** PASSED (8)
|
||||
|
||||
*** LTP-shmctl02 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.
|
||||
*** PASSED (5)
|
||||
|
||||
*** LTP-shmctl03 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
|
||||
*** PASSED (3)
|
||||
|
||||
*** LTP-shmctl04 start *******************************
|
||||
shmctl04 1 TPASS : SHM_INFO call succeeded
|
||||
*** PASSED (1)
|
||||
|
||||
*** LTP-shmdt01 start *******************************
|
||||
shmdt01 1 TPASS : shared memory detached correctly
|
||||
*** PASSED (1)
|
||||
|
||||
*** LTP-shmdt02 start *******************************
|
||||
shmdt02 1 TPASS : expected failure - errno = 22 : Invalid argument
|
||||
*** PASSED (1)
|
||||
|
||||
*** LTP-shmget01 start *******************************
|
||||
shmget01 1 TPASS : size, pid & mode are correct
|
||||
*** PASSED (1)
|
||||
|
||||
*** LTP-shmget02 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
|
||||
*** PASSED (4)
|
||||
|
||||
*** LTP-shmget03 start *******************************
|
||||
shmget03 1 TPASS : expected failure - errno = 28 : No space left on device
|
||||
*** PASSED (1)
|
||||
|
||||
*** LTP-shmget04 start *******************************
|
||||
shmget04 1 TPASS : expected failure - errno = 13 : Permission denied
|
||||
*** PASSED (1)
|
||||
|
||||
*** LTP-shmget05 start *******************************
|
||||
shmget05 1 TPASS : expected failure - errno = 13 : Permission denied
|
||||
*** PASSED (1)
|
||||
|
||||
Reference in New Issue
Block a user