next-20230124: LTP: shmctl01.c:120: TFAIL: after child shmdt() shm_nattcg=20 expected 0

From: Naresh Kamboju
Date: Wed Jan 25 2023 - 10:11:53 EST


LTP syscalls shmctl01 test failed on Linux next-20230124 tag across all the
available architectures with following error logs,

tst_test.c:1524: TINFO: Timeout per run is 0h 05m 00s
shmctl01.c:256: TINFO: shm_id=9 maps to kernel index=9
shmctl01.c:220: TINFO: Basic checks
shmctl01.c:175: TPASS: IPC_STAT: shm_segsz=2048
shmctl01.c:182: TPASS: IPC_STAT: shm_cpid=103946
shmctl01.c:189: TPASS: IPC_STAT: shm_ctime=1674621556 in range
<1674621556,1674621556>
shmctl01.c:175: TPASS: SHM_STAT: shm_segsz=2048
shmctl01.c:182: TPASS: SHM_STAT: shm_cpid=103946
shmctl01.c:189: TPASS: SHM_STAT: shm_ctime=1674621556 in range
<1674621556,1674621556>
shmctl01.c:220: TINFO: Children attach SHM
shmctl01.c:116: TPASS: before child shmat() shm_nattch=0
shmctl01.c:116: TPASS: after child shmat() shm_nattch=20
shmctl01.c:120: TFAIL: after child shmdt() shm_nattcg=20 expected 0
shmctl01.c:220: TINFO: Chidlren inherit SHM
shmctl01.c:116: TPASS: inherited after fork() shm_nattch=21
shmctl01.c:120: TFAIL: after child shmdt() shm_nattcg=21 expected 1
shmctl01.c:120: TFAIL: after parent shmdt() shm_nattcg=21 expected 0

Reported-by: Linux Kernel Functional Testing <lkft@xxxxxxxxxx>

Test logs:
https://qa-reports.linaro.org/lkft/linux-next-master/build/next-20230124/testrun/14344836/suite/ltp-syscalls/test/shmat01/details/
https://qa-reports.linaro.org/lkft/linux-next-master/build/next-20230125/testrun/14356742/suite/ltp-syscalls/test/shmat01/log

Test history:
https://qa-reports.linaro.org/lkft/linux-next-master/build/next-20230125/testrun/14356742/suite/ltp-syscalls/test/shmat01/history/

metadata:
git_ref: master
git_repo: https://gitlab.com/Linaro/lkft/mirrors/next/linux-next
git_sha: a54df7622717a40ddec95fd98086aff8ba7839a6
git_describe: next-20230124
kernel_version: 6.2.0-rc5
kernel-config:
https://storage.tuxsuite.com/public/linaro/lkft/builds/2Kl19cvIBraXOcZpBGCPzCajGAs/config
build-url: https://gitlab.com/Linaro/lkft/mirrors/next/linux-next/-/pipelines/755587911
artifact-location:
https://storage.tuxsuite.com/public/linaro/lkft/builds/2Kl19cvIBraXOcZpBGCPzCajGAs/
toolchain: gcc-11

--
Linaro LKFT
https://lkft.linaro.org