Skip to content

Commit

Permalink
zdtm: add pidfd store based pid reuse test
Browse files Browse the repository at this point in the history
This is just a symlink to the original transition/pid_reuse test with
the right options passed to trigger the pidfd store based pid reuse
detection code path.

Pidfd store based detection is supported only in RPC mode which
requires passing a unix socket fd to be used as pidfd store and
the kernel should support pidfd_open and pidfd_getfd syscalls
{'feature': 'pidfd_store'} for this test to work.

Signed-off-by: Zeyad Yasser <zeyady98@gmail.com>
  • Loading branch information
ZeyadYasser committed Apr 20, 2021
1 parent 9f0cd78 commit 11d367d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/ci/run-ci-tests.sh
Expand Up @@ -251,7 +251,8 @@ make -C test/others/rpc/ run
./test/zdtm.py run -t zdtm/transition/maps007 --pre 2 --page-server
./test/zdtm.py run -t zdtm/transition/maps007 --pre 2 --page-server --dedup

./test/zdtm.py run -t zdtm/transition/pid_reuse --pre 2
./test/zdtm.py run -t zdtm/transition/pid_reuse --pre 2 # start time based pid reuse detection
./test/zdtm.py run -t zdtm/transition/pidfd_store_sk --rpc --pre 2 # pidfd based pid reuse detection

./test/zdtm.py run -t zdtm/static/socket-tcp-local --norst

Expand Down
1 change: 1 addition & 0 deletions test/zdtm/transition/Makefile
Expand Up @@ -22,6 +22,7 @@ TST_NOFILE = \
shmem \
lazy-thp \
pid_reuse \
pidfd_store_sk \


TST_FILE = \
Expand Down
1 change: 1 addition & 0 deletions test/zdtm/transition/pidfd_store_sk.c
1 change: 1 addition & 0 deletions test/zdtm/transition/pidfd_store_sk.desc
@@ -0,0 +1 @@
{'flags': 'suid pre-dump-notify', 'opts': '--pidfd-store', 'feature': 'pidfd_store'}

0 comments on commit 11d367d

Please sign in to comment.