shmget02 / shmget03 in ubuntu_ltp_syscalls failed on F-oem-5.10
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-kernel-tests |
In Progress
|
Undecided
|
Thadeu Lima de Souza Cascardo |
Bug Description
Issue found on 5.10.0-1035.36 with node spitfire.
tst_test.c:1311: TINFO: Timeout per run is 0h 05m 00s
shmget02.c:69: TPASS: shmget(1644298264, 2048, 1024): ENOENT (2)
shmget02.c:69: TPASS: shmget(1627521048, 2048, 1536): EEXIST (17)
shmget02.c:69: TPASS: shmget(1644298264, 0, 1536): EINVAL (22)
shmget02.c:69: TPASS: shmget(1644298264, 184467440736927
shmget02.c:69: TPASS: shmget(1627521048, 4096, 1024): EINVAL (22)
shmget02.c:81: TPASS: shmget(1627521048, 2048, 256): EACCES (13)
shmget02.c:81: TFAIL: shmget(1644298264, 2048, 2560) expected EPERM: ENOMEM (12)
shmget02.c:69: TPASS: shmget(1644298264, 2048, 2560): ENOMEM (12)
Summary:
passed 7
failed 1
broken 0
skipped 0
warnings 0
tag=shmget02 stime=1624946043 dur=0 exit=exited stat=1 core=no cu=0 cs=0
startup='Tue Jun 29 05:54:03 2021'
tst_test.c:1311: TINFO: Timeout per run is 0h 05m 00s
shmget03.c:46: TBROK: shmget failed unexpectedly: ENOSPC (28)
Summary:
passed 0
failed 0
broken 1
skipped 0
warnings 0
tag=shmget03 stime=1624946043 dur=0 exit=exited stat=2 core=no cu=0 cs=2
tags: | added: 5.10 focal oem sru-20210621 ubuntu-ltp-syscalls |
tags: | added: 5.11 aws azure groovy hirsute oracle |
This issue does not exist with 5.10.0-1032.33-oem with LTP head e84209b8d
Bisect shows this is caused by: dfd5785f60acd45 97dcff0075 is the first bad commit dfd5785f60acd45 97dcff0075
4dc493b44a85ee0
commit 4dc493b44a85ee0
Author: Yang Xu <email address hidden>
Date: Thu Jun 24 13:33:47 2021 +0800
syscalls/ shmget* : Convert into new api
1) merge shmget05.c into shmget02.c
2) Use SHMMIN -1 and SHMMAX + 1 to trigger EINVAL error
3) Use SHM_RD, SHM_WR, SHM_RW to trigger EACCES error under unpriviledged user
4) add EPERM error test
5) add ENOMEM error test
6) Use TST_EXP_FAIL2 macro
Signed-off-by: Yang Xu <email address hidden>
Reviewed-by: Cyril Hrubis <email address hidden>
include/lapi/shm.h | 14 ++ syscalls- ipc | 1 - kernel/ syscalls/ ipc/shmget/ .gitignore | 1 - kernel/ syscalls/ ipc/shmget/ Makefile | 4 +- kernel/ syscalls/ ipc/shmget/ shmget02. c | 248 +++++++ ++----- ------- --- kernel/ syscalls/ ipc/shmget/ shmget03. c | 199 +++++-------------- kernel/ syscalls/ ipc/shmget/ shmget04. c | 188 +++++------------- kernel/ syscalls/ ipc/shmget/ shmget05. c | 185 ------------------ kernel/ syscalls/ ipc/shmget/ shmget05. c
runtest/syscalls | 1 -
runtest/
testcases/
testcases/
testcases/
testcases/
testcases/
testcases/
9 files changed, 207 insertions(+), 634 deletions(-)
delete mode 100644 testcases/