Hay
Date
May 12, 2025, 6:11 p.m.

Environment
qemu-armv7
qemu-i386
x15

exit=1timeout set to 45
selftests: clone3: clone3_set_tid
TAP version 13
1..29
# clone3() syscall supported
# /proc/sys/kernel/pid_max 32768
# [388] Trying clone3() with CLONE_SET_TID to 0 and 0x0
# Invalid argument - Failed to create new process
# [388] clone3() with CLONE_SET_TID 0 says: -22 - expected -22
ok 1 invalid size, 0 TID with 33 TIDs and flags 0x0
# [388] Trying clone3() with CLONE_SET_TID to 0 and 0x0
# Invalid argument - Failed to create new process
# [388] clone3() with CLONE_SET_TID 0 says: -22 - expected -22
ok 2 invalid size, 0 TID with 64 TIDs and flags 0x0
# [388] Trying clone3() with CLONE_SET_TID to 0 and 0x0
# Invalid argument - Failed to create new process
# [388] clone3() with CLONE_SET_TID 0 says: -22 - expected -22
ok 3 invalid size, 0 TID with 65 TIDs and flags 0x0
# [388] Trying clone3() with CLONE_SET_TID to 0 and 0x0
# Invalid argument - Failed to create new process
# [388] clone3() with CLONE_SET_TID 0 says: -22 - expected -22
ok 4 invalid size, 0 TID with 1344 TIDs and flags 0x0
# [388] Trying clone3() with CLONE_SET_TID to 0 and 0x0
# Invalid argument - Failed to create new process
# [388] clone3() with CLONE_SET_TID 0 says: -22 - expected -22
ok 5 invalid size, 0 TID with 31 TIDs and flags 0x0
# [388] Trying clone3() with CLONE_SET_TID to -1 and 0x0
# Invalid argument - Failed to create new process
# [388] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 6 invalid size, TID all 1s with 33 TIDs and flags 0x0
# [388] Trying clone3() with CLONE_SET_TID to -1 and 0x0
# Invalid argument - Failed to create new process
# [388] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 7 invalid size, TID all 1s with 64 TIDs and flags 0x0
# [388] Trying clone3() with CLONE_SET_TID to -1 and 0x0
# Invalid argument - Failed to create new process
# [388] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 8 invalid size, TID all 1s with 65 TIDs and flags 0x0
# [388] Trying clone3() with CLONE_SET_TID to -1 and 0x0
# Invalid argument - Failed to create new process
# [388] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 9 invalid size, TID all 1s with 1344 TIDs and flags 0x0
# [388] Trying clone3() with CLONE_SET_TID to -1 and 0x0
# Invalid argument - Failed to create new process
# [388] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 10 invalid size, TID all 1s with 31 TIDs and flags 0x0
# [388] Trying clone3() with CLONE_SET_TID to 0 and 0x0
# Invalid argument - Failed to create new process
# [388] clone3() with CLONE_SET_TID 0 says: -22 - expected -22
ok 11 valid size, 0 TID with 1 TIDs and flags 0x0
# [388] Trying clone3() with CLONE_SET_TID to -1 and 0x0
# Invalid argument - Failed to create new process
# [388] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 12 valid size, -1 TID with 1 TIDs and flags 0x0
# [388] Trying clone3() with CLONE_SET_TID to -1 and 0x0
# Invalid argument - Failed to create new process
# [388] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 13 2 TIDs, -1 and 0 with 2 TIDs and flags 0x0
# [388] Trying clone3() with CLONE_SET_TID to -1 and 0x20000000
# Invalid argument - Failed to create new process
# [388] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 14 valid size, -1 TID with 1 TIDs and flags 0x20000000
# [388] Trying clone3() with CLONE_SET_TID to 1 and 0x0
# File exists - Failed to create new process
# [388] clone3() with CLONE_SET_TID 1 says: -17 - expected -17
ok 15 duplicate PID 1 with 1 TIDs and flags 0x0
# [388] Trying clone3() with CLONE_SET_TID to 1 and 0x20000000
# I am the parent (388). My child's pid is 389
# I am the child, my PID is 1 (expected 1)
# [388] clone3() with CLONE_SET_TID 1 says: 0 - expected 0
ok 16 duplicate PID 1 with 1 TIDs and flags 0x20000000
# [388] Trying clone3() with CLONE_SET_TID to 32768 and 0x0
# Invalid argument - Failed to create new process
# [388] clone3() with CLONE_SET_TID 32768 says: -22 - expected -22
ok 17 set TID to maximum with 1 TIDs and flags 0x0
# [388] Trying clone3() with CLONE_SET_TID to 32768 and 0x20000000
# Invalid argument - Failed to create new process
# [388] clone3() with CLONE_SET_TID 32768 says: -22 - expected -22
ok 18 set TID to maximum with 1 TIDs and flags 0x20000000
# Child has PID 390
# [388] Trying clone3() with CLONE_SET_TID to 390 and 0x0
# I am the parent (388). My child's pid is 390
# I am the child, my PID is 390 (expected 390)
# [388] clone3() with CLONE_SET_TID 390 says: 0 - expected 0
ok 19 reallocate child TID with 1 TIDs and flags 0x0
# [388] Trying clone3() with CLONE_SET_TID to 390 and 0x20000000
# Invalid argument - Failed to create new process
# [388] clone3() with CLONE_SET_TID 390 says: -22 - expected -22
ok 20 duplicate child TID with 1 TIDs and flags 0x20000000
# [388] Trying clone3() with CLONE_SET_TID to 1 and 0x20000000
# I am the parent (388). My child's pid is 390
# I am the child, my PID is 1 (expected 1)
# [388] clone3() with CLONE_SET_TID 1 says: 0 - expected 0
ok 21 create PID 1 in new NS with 2 TIDs and flags 0x20000000
# unshare PID namespace
# [388] Trying clone3() with CLONE_SET_TID to 390 and 0x0
# Invalid argument - Failed to create new process
# [388] clone3() with CLONE_SET_TID 390 says: -22 - expected -22
ok 22 duplicate PID 1 with 1 TIDs and flags 0x0
# [1] Trying clone3() with CLONE_SET_TID to 43 and 0x0
# Invalid argument - Failed to create new process
# [1] clone3() with CLONE_SET_TID 43 says: -22 - expected -22
ok 23 check leak on invalid TID -1 with 2 TIDs and flags 0x0
# [1] Trying clone3() with CLONE_SET_TID to 43 and 0x0
# I am the parent (1). My child's pid is 43
# I am the child, my PID is 43 (expected 43)
# [1] clone3() with CLONE_SET_TID 43 says: 0 - expected 0
ok 24 check leak on invalid specific TID with 2 TIDs and flags 0x0
# Child in PID namespace has PID 1
# [1] Trying clone3() with CLONE_SET_TID to 2 and 0x0
# I am the parent (1). My child's pid is 2
# I am the child, my PID is 2 (expected 2)
# [1] clone3() with CLONE_SET_TID 2 says: 0 - expected 0
ok 25 create PID 2 in child NS with 1 TIDs and flags 0x0
# [1] Trying clone3() with CLONE_SET_TID to 1 and 0x20000000
# Invalid argument - Failed to create new process
# [1] clone3() with CLONE_SET_TID 1 says: -22 - expected -22
ok 26 fail due to invalid TID at level 1 with 3 TIDs and flags 0x20000000
# [1] Trying clone3() with CLONE_SET_TID to 1 and 0x20000000
# Invalid argument - Failed to create new process
# [1] clone3() with CLONE_SET_TID 1 says: -22 - expected -22
ok 27 fail due to too few active PID NSs with 4 TIDs and flags 0x20000000
# [1] Trying clone3() with CLONE_SET_TID to 1 and 0x20000000
# I am the parent (1). My child's pid is 42
# I am the child, my PID is 1 (expected 1)
# [1] Child is ready and waiting
# [388] Child is ready and waiting
# [1] clone3() with CLONE_SET_TID 1 says: 0 - expected 0
ok 28 verify that we have 3 PID NSs with 3 TIDs and flags 0x20000000
# Expecting PIDs 390, 42, 1
# Have PIDs in namespaces: 390, 42, 1
ok 29 PIDs in all namespaces as expected
# Totals: pass:29 fail:0 xfail:0 xpass:0 skip:0 error:0
clone3_clone3_clear_sighand fail

exit=1timeout set to 45
selftests: clone3: clone3_set_tid
TAP version 13
1..29
# clone3() syscall supported
# /proc/sys/kernel/pid_max 32768
# [387] Trying clone3() with CLONE_SET_TID to 0 and 0x0
# Invalid argument - Failed to create new process
# [387] clone3() with CLONE_SET_TID 0 says: -22 - expected -22
ok 1 invalid size, 0 TID with 33 TIDs and flags 0x0
# [387] Trying clone3() with CLONE_SET_TID to 0 and 0x0
# Invalid argument - Failed to create new process
# [387] clone3() with CLONE_SET_TID 0 says: -22 - expected -22
ok 2 invalid size, 0 TID with 64 TIDs and flags 0x0
# [387] Trying clone3() with CLONE_SET_TID to 0 and 0x0
# Invalid argument - Failed to create new process
# [387] clone3() with CLONE_SET_TID 0 says: -22 - expected -22
ok 3 invalid size, 0 TID with 65 TIDs and flags 0x0
# [387] Trying clone3() with CLONE_SET_TID to 0 and 0x0
# Invalid argument - Failed to create new process
# [387] clone3() with CLONE_SET_TID 0 says: -22 - expected -22
ok 4 invalid size, 0 TID with 1344 TIDs and flags 0x0
# [387] Trying clone3() with CLONE_SET_TID to 0 and 0x0
# Invalid argument - Failed to create new process
# [387] clone3() with CLONE_SET_TID 0 says: -22 - expected -22
ok 5 invalid size, 0 TID with 31 TIDs and flags 0x0
# [387] Trying clone3() with CLONE_SET_TID to -1 and 0x0
# Invalid argument - Failed to create new process
# [387] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 6 invalid size, TID all 1s with 33 TIDs and flags 0x0
# [387] Trying clone3() with CLONE_SET_TID to -1 and 0x0
# Invalid argument - Failed to create new process
# [387] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 7 invalid size, TID all 1s with 64 TIDs and flags 0x0
# [387] Trying clone3() with CLONE_SET_TID to -1 and 0x0
# Invalid argument - Failed to create new process
# [387] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 8 invalid size, TID all 1s with 65 TIDs and flags 0x0
# [387] Trying clone3() with CLONE_SET_TID to -1 and 0x0
# Invalid argument - Failed to create new process
# [387] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 9 invalid size, TID all 1s with 1344 TIDs and flags 0x0
# [387] Trying clone3() with CLONE_SET_TID to -1 and 0x0
# Invalid argument - Failed to create new process
# [387] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 10 invalid size, TID all 1s with 31 TIDs and flags 0x0
# [387] Trying clone3() with CLONE_SET_TID to 0 and 0x0
# Invalid argument - Failed to create new process
# [387] clone3() with CLONE_SET_TID 0 says: -22 - expected -22
ok 11 valid size, 0 TID with 1 TIDs and flags 0x0
# [387] Trying clone3() with CLONE_SET_TID to -1 and 0x0
# Invalid argument - Failed to create new process
# [387] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 12 valid size, -1 TID with 1 TIDs and flags 0x0
# [387] Trying clone3() with CLONE_SET_TID to -1 and 0x0
# Invalid argument - Failed to create new process
# [387] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 13 2 TIDs, -1 and 0 with 2 TIDs and flags 0x0
# [387] Trying clone3() with CLONE_SET_TID to -1 and 0x20000000
# Invalid argument - Failed to create new process
# [387] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 14 valid size, -1 TID with 1 TIDs and flags 0x20000000
# [387] Trying clone3() with CLONE_SET_TID to 1 and 0x0
# File exists - Failed to create new process
# [387] clone3() with CLONE_SET_TID 1 says: -17 - expected -17
ok 15 duplicate PID 1 with 1 TIDs and flags 0x0
# [387] Trying clone3() with CLONE_SET_TID to 1 and 0x20000000
# I am the parent (387). My child's pid is 388
# I am the child, my PID is 1 (expected 1)
# [387] clone3() with CLONE_SET_TID 1 says: 0 - expected 0
ok 16 duplicate PID 1 with 1 TIDs and flags 0x20000000
# [387] Trying clone3() with CLONE_SET_TID to 32768 and 0x0
# Invalid argument - Failed to create new process
# [387] clone3() with CLONE_SET_TID 32768 says: -22 - expected -22
ok 17 set TID to maximum with 1 TIDs and flags 0x0
# [387] Trying clone3() with CLONE_SET_TID to 32768 and 0x20000000
# Invalid argument - Failed to create new process
# [387] clone3() with CLONE_SET_TID 32768 says: -22 - expected -22
ok 18 set TID to maximum with 1 TIDs and flags 0x20000000
# Child has PID 389
# [387] Trying clone3() with CLONE_SET_TID to 389 and 0x0
# I am the parent (387). My child's pid is 389
# I am the child, my PID is 389 (expected 389)
# [387] clone3() with CLONE_SET_TID 389 says: 0 - expected 0
ok 19 reallocate child TID with 1 TIDs and flags 0x0
# [387] Trying clone3() with CLONE_SET_TID to 389 and 0x20000000
# Invalid argument - Failed to create new process
# [387] clone3() with CLONE_SET_TID 389 says: -22 - expected -22
ok 20 duplicate child TID with 1 TIDs and flags 0x20000000
# [387] Trying clone3() with CLONE_SET_TID to 1 and 0x20000000
# I am the parent (387). My child's pid is 389
# I am the child, my PID is 1 (expected 1)
# [387] clone3() with CLONE_SET_TID 1 says: 0 - expected 0
ok 21 create PID 1 in new NS with 2 TIDs and flags 0x20000000
# unshare PID namespace
# [387] Trying clone3() with CLONE_SET_TID to 389 and 0x0
# Invalid argument - Failed to create new process
# [387] clone3() with CLONE_SET_TID 389 says: -22 - expected -22
ok 22 duplicate PID 1 with 1 TIDs and flags 0x0
# [1] Trying clone3() with CLONE_SET_TID to 43 and 0x0
# Invalid argument - Failed to create new process
# [1] clone3() with CLONE_SET_TID 43 says: -22 - expected -22
ok 23 check leak on invalid TID -1 with 2 TIDs and flags 0x0
# [1] Trying clone3() with CLONE_SET_TID to 43 and 0x0
# I am the parent (1). My child's pid is 43
# I am the child, my PID is 43 (expected 43)
# [1] clone3() with CLONE_SET_TID 43 says: 0 - expected 0
ok 24 check leak on invalid specific TID with 2 TIDs and flags 0x0
# Child in PID namespace has PID 1
# [1] Trying clone3() with CLONE_SET_TID to 2 and 0x0
# I am the parent (1). My child's pid is 2
# I am the child, my PID is 2 (expected 2)
# [1] clone3() with CLONE_SET_TID 2 says: 0 - expected 0
ok 25 create PID 2 in child NS with 1 TIDs and flags 0x0
# [1] Trying clone3() with CLONE_SET_TID to 1 and 0x20000000
# Invalid argument - Failed to create new process
# [1] clone3() with CLONE_SET_TID 1 says: -22 - expected -22
ok 26 fail due to invalid TID at level 1 with 3 TIDs and flags 0x20000000
# [1] Trying clone3() with CLONE_SET_TID to 1 and 0x20000000
# Invalid argument - Failed to create new process
# [1] clone3() with CLONE_SET_TID 1 says: -22 - expected -22
ok 27 fail due to too few active PID NSs with 4 TIDs and flags 0x20000000
# [1] Trying clone3() with CLONE_SET_TID to 1 and 0x20000000
# I am the parent (1). My child's pid is 42
# I am the child, my PID is 1 (expected 1)
# [1] Child is ready and waiting
# [387] Child is ready and waiting
# [1] clone3() with CLONE_SET_TID 1 says: 0 - expected 0
ok 28 verify that we have 3 PID NSs with 3 TIDs and flags 0x20000000
# Expecting PIDs 389, 42, 1
# Have PIDs in namespaces: 389, 42, 1
ok 29 PIDs in all namespaces as expected
# Totals: pass:29 fail:0 xfail:0 xpass:0 skip:0 error:0
clone3_clone3_clear_sighand fail

<8>[   14.962649] <LAVA_SIGNAL_TESTCASE TEST_CASE_ID=clone3_clone3 RESULT=pass>
exit=1timeout set to 45
selftests: clone3: clone3_set_tid
TAP version 13
1..29
# clone3() syscall supported
# /proc/sys/kernel/pid_max 32768
# [401] Trying clone3() with CLONE_SET_TID to 0 and 0x0
# Invalid argument - Failed to create new process
# [401] clone3() with CLONE_SET_TID 0 says: -22 - expected -22
ok 1 invalid size, 0 TID with 33 TIDs and flags 0x0
# [401] Trying clone3() with CLONE_SET_TID to 0 and 0x0
# Invalid argument - Failed to create new process
# [401] clone3() with CLONE_SET_TID 0 says: -22 - expected -22
ok 2 invalid size, 0 TID with 64 TIDs and flags 0x0
# [401] Trying clone3() with CLONE_SET_TID to 0 and 0x0
# Invalid argument - Failed to create new process
# [401] clone3() with CLONE_SET_TID 0 says: -22 - expected -22
ok 3 invalid size, 0 TID with 65 TIDs and flags 0x0
# [401] Trying clone3() with CLONE_SET_TID to 0 and 0x0
# Invalid argument - Failed to create new process
# [401] clone3() with CLONE_SET_TID 0 says: -22 - expected -22
ok 4 invalid size, 0 TID with 1344 TIDs and flags 0x0
# [401] Trying clone3() with CLONE_SET_TID to 0 and 0x0
# Invalid argument - Failed to create new process
# [401] clone3() with CLONE_SET_TID 0 says: -22 - expected -22
ok 5 invalid size, 0 TID with 31 TIDs and flags 0x0
# [401] Trying clone3() with CLONE_SET_TID to -1 and 0x0
# Invalid argument - Failed to create new process
# [401] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 6 invalid size, TID all 1s with 33 TIDs and flags 0x0
# [401] Trying clone3() with CLONE_SET_TID to -1 and 0x0
# Invalid argument - Failed to create new process
# [401] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 7 invalid size, TID all 1s with 64 TIDs and flags 0x0
# [401] Trying clone3() with CLONE_SET_TID to -1 and 0x0
# Invalid argument - Failed to create new process
# [401] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 8 invalid size, TID all 1s with 65 TIDs and flags 0x0
# [401] Trying clone3() with CLONE_SET_TID to -1 and 0x0
# Invalid argument - Failed to create new process
# [401] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 9 invalid size, TID all 1s with 1344 TIDs and flags 0x0
# [401] Trying clone3() with CLONE_SET_TID to -1 and 0x0
# Invalid argument - Failed to create new process
# [401] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 10 invalid size, TID all 1s with 31 TIDs and flags 0x0
# [401] Trying clone3() with CLONE_SET_TID to 0 and 0x0
# Invalid argument - Failed to create new process
# [401] clone3() with CLONE_SET_TID 0 says: -22 - expected -22
ok 11 valid size, 0 TID with 1 TIDs and flags 0x0
# [401] Trying clone3() with CLONE_SET_TID to -1 and 0x0
# Invalid argument - Failed to create new process
# [401] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 12 valid size, -1 TID with 1 TIDs and flags 0x0
# [401] Trying clone3() with CLONE_SET_TID to -1 and 0x0
# Invalid argument - Failed to create new process
# [401] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 13 2 TIDs, -1 and 0 with 2 TIDs and flags 0x0
# [401] Trying clone3() with CLONE_SET_TID to -1 and 0x20000000
# Invalid argument - Failed to create new process
# [401] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 14 valid size, -1 TID with 1 TIDs and flags 0x20000000
# [401] Trying clone3() with CLONE_SET_TID to 1 and 0x0
# File exists - Failed to create new process
# [401] clone3() with CLONE_SET_TID 1 says: -17 - expected -17
ok 15 duplicate PID 1 with 1 TIDs and flags 0x0
# [401] Trying clone3() with CLONE_SET_TID to 1 and 0x20000000
# I am the parent (401). My child's pid is 402
# I am the child, my PID is 1 (expected 1)
# [401] clone3() with CLONE_SET_TID 1 says: 0 - expected 0
ok 16 duplicate PID 1 with 1 TIDs and flags 0x20000000
# [401] Trying clone3() with CLONE_SET_TID to 32768 and 0x0
# Invalid argument - Failed to create new process
# [401] clone3() with CLONE_SET_TID 32768 says: -22 - expected -22
ok 17 set TID to maximum with 1 TIDs and flags 0x0
# [401] Trying clone3() with CLONE_SET_TID to 32768 and 0x20000000
# Invalid argument - Failed to create new process
# [401] clone3() with CLONE_SET_TID 32768 says: -22 - expected -22
ok 18 set TID to maximum with 1 TIDs and flags 0x20000000
# Child has PID 403
# [401] Trying clone3() with CLONE_SET_TID to 403 and 0x0
# I am the parent (401). My child's pid is 403
# I am the child, my PID is 403 (expected 403)
# [401] clone3() with CLONE_SET_TID 403 says: 0 - expected 0
ok 19 reallocate child TID with 1 TIDs and flags 0x0
# [401] Trying clone3() with CLONE_SET_TID to 403 and 0x20000000
# Invalid argument - Failed to create new process
# [401] clone3() with CLONE_SET_TID 403 says: -22 - expected -22
ok 20 duplicate child TID with 1 TIDs and flags 0x20000000
# [401] Trying clone3() with CLONE_SET_TID to 1 and 0x20000000
# I am the parent (401). My child's pid is 403
# I am the child, my PID is 1 (expected 1)
# [401] clone3() with CLONE_SET_TID 1 says: 0 - expected 0
ok 21 create PID 1 in new NS with 2 TIDs and flags 0x20000000
# unshare PID namespace
# [401] Trying clone3() with CLONE_SET_TID to 403 and 0x0
# Invalid argument - Failed to create new process
# [401] clone3() with CLONE_SET_TID 403 says: -22 - expected -22
ok 22 duplicate PID 1 with 1 TIDs and flags 0x0
# [1] Trying clone3() with CLONE_SET_TID to 43 and 0x0
# Invalid argument - Failed to create new process
# [1] clone3() with CLONE_SET_TID 43 says: -22 - expected -22
ok 23 check leak on invalid TID -1 with 2 TIDs and flags 0x0
# [1] Trying clone3() with CLONE_SET_TID to 43 and 0x0
# I am the parent (1). My child's pid is 43
# I am the child, my PID is 43 (expected 43)
# [1] clone3() with CLONE_SET_TID 43 says: 0 - expected 0
ok 24 check leak on invalid specific TID with 2 TIDs and flags 0x0
# Child in PID namespace has PID 1
# [1] Trying clone3() with CLONE_SET_TID to 2 and 0x0
# I am the parent (1). My child's pid is 2
# I am the child, my PID is 2 (expected 2)
# [1] clone3() with CLONE_SET_TID 2 says: 0 - expected 0
ok 25 create PID 2 in child NS with 1 TIDs and flags 0x0
# [1] Trying clone3() with CLONE_SET_TID to 1 and 0x20000000
# Invalid argument - Failed to create new process
# [1] clone3() with CLONE_SET_TID 1 says: -22 - expected -22
ok 26 fail due to invalid TID at level 1 with 3 TIDs and flags 0x20000000
# [1] Trying clone3() with CLONE_SET_TID to 1 and 0x20000000
# Invalid argument - Failed to create new process
# [1] clone3() with CLONE_SET_TID 1 says: -22 - expected -22
ok 27 fail due to too few active PID NSs with 4 TIDs and flags 0x20000000
# [1] Trying clone3() with CLONE_SET_TID to 1 and 0x20000000
# I am the parent (1). My child's pid is 42
# I am the child, my PID is 1 (expected 1)
# [1] Child is ready and waiting
# [401] Child is ready and waiting
# [1] clone3() with CLONE_SET_TID 1 says: 0 - expected 0
ok 28 verify that we have 3 PID NSs with 3 TIDs and flags 0x20000000
# Expecting PIDs 403, 42, 1
# Have PIDs in namespaces: 403, 42, 1
ok 29 PIDs in all namespaces as expected
# Totals: pass:29 fail:0 xfail:0 xpass:0 skip:0 error:0
clone3_clone3_clear_sighand fail

exit=1timeout set to 45
selftests: clone3: clone3_set_tid
TAP version 13
1..29
# clone3() syscall supported
# /proc/sys/kernel/pid_max 32768
# [401] Trying clone3() with CLONE_SET_TID to 0 and 0x0
# Invalid argument - Failed to create new process
# [401] clone3() with CLONE_SET_TID 0 says: -22 - expected -22
ok 1 invalid size, 0 TID with 33 TIDs and flags 0x0
# [401] Trying clone3() with CLONE_SET_TID to 0 and 0x0
# Invalid argument - Failed to create new process
# [401] clone3() with CLONE_SET_TID 0 says: -22 - expected -22
ok 2 invalid size, 0 TID with 64 TIDs and flags 0x0
# [401] Trying clone3() with CLONE_SET_TID to 0 and 0x0
# Invalid argument - Failed to create new process
# [401] clone3() with CLONE_SET_TID 0 says: -22 - expected -22
ok 3 invalid size, 0 TID with 65 TIDs and flags 0x0
# [401] Trying clone3() with CLONE_SET_TID to 0 and 0x0
# Invalid argument - Failed to create new process
# [401] clone3() with CLONE_SET_TID 0 says: -22 - expected -22
ok 4 invalid size, 0 TID with 1344 TIDs and flags 0x0
# [401] Trying clone3() with CLONE_SET_TID to 0 and 0x0
# Invalid argument - Failed to create new process
# [401] clone3() with CLONE_SET_TID 0 says: -22 - expected -22
ok 5 invalid size, 0 TID with 31 TIDs and flags 0x0
# [401] Trying clone3() with CLONE_SET_TID to -1 and 0x0
# Invalid argument - Failed to create new process
# [401] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 6 invalid size, TID all 1s with 33 TIDs and flags 0x0
# [401] Trying clone3() with CLONE_SET_TID to -1 and 0x0
# Invalid argument - Failed to create new process
# [401] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 7 invalid size, TID all 1s with 64 TIDs and flags 0x0
# [401] Trying clone3() with CLONE_SET_TID to -1 and 0x0
# Invalid argument - Failed to create new process
# [401] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 8 invalid size, TID all 1s with 65 TIDs and flags 0x0
# [401] Trying clone3() with CLONE_SET_TID to -1 and 0x0
# Invalid argument - Failed to create new process
# [401] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 9 invalid size, TID all 1s with 1344 TIDs and flags 0x0
# [401] Trying clone3() with CLONE_SET_TID to -1 and 0x0
# Invalid argument - Failed to create new process
# [401] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 10 invalid size, TID all 1s with 31 TIDs and flags 0x0
# [401] Trying clone3() with CLONE_SET_TID to 0 and 0x0
# Invalid argument - Failed to create new process
# [401] clone3() with CLONE_SET_TID 0 says: -22 - expected -22
ok 11 valid size, 0 TID with 1 TIDs and flags 0x0
# [401] Trying clone3() with CLONE_SET_TID to -1 and 0x0
# Invalid argument - Failed to create new process
# [401] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 12 valid size, -1 TID with 1 TIDs and flags 0x0
# [401] Trying clone3() with CLONE_SET_TID to -1 and 0x0
# Invalid argument - Failed to create new process
# [401] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 13 2 TIDs, -1 and 0 with 2 TIDs and flags 0x0
# [401] Trying clone3() with CLONE_SET_TID to -1 and 0x20000000
# Invalid argument - Failed to create new process
# [401] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 14 valid size, -1 TID with 1 TIDs and flags 0x20000000
# [401] Trying clone3() with CLONE_SET_TID to 1 and 0x0
# File exists - Failed to create new process
# [401] clone3() with CLONE_SET_TID 1 says: -17 - expected -17
ok 15 duplicate PID 1 with 1 TIDs and flags 0x0
# [401] Trying clone3() with CLONE_SET_TID to 1 and 0x20000000
# I am the parent (401). My child's pid is 402
# I am the child, my PID is 1 (expected 1)
# [401] clone3() with CLONE_SET_TID 1 says: 0 - expected 0
ok 16 duplicate PID 1 with 1 TIDs and flags 0x20000000
# [401] Trying clone3() with CLONE_SET_TID to 32768 and 0x0
# Invalid argument - Failed to create new process
# [401] clone3() with CLONE_SET_TID 32768 says: -22 - expected -22
ok 17 set TID to maximum with 1 TIDs and flags 0x0
# [401] Trying clone3() with CLONE_SET_TID to 32768 and 0x20000000
# Invalid argument - Failed to create new process
# [401] clone3() with CLONE_SET_TID 32768 says: -22 - expected -22
ok 18 set TID to maximum with 1 TIDs and flags 0x20000000
# Child has PID 403
# [401] Trying clone3() with CLONE_SET_TID to 403 and 0x0
# I am the parent (401). My child's pid is 403
# I am the child, my PID is 403 (expected 403)
# [401] clone3() with CLONE_SET_TID 403 says: 0 - expected 0
ok 19 reallocate child TID with 1 TIDs and flags 0x0
# [401] Trying clone3() with CLONE_SET_TID to 403 and 0x20000000
# Invalid argument - Failed to create new process
# [401] clone3() with CLONE_SET_TID 403 says: -22 - expected -22
ok 20 duplicate child TID with 1 TIDs and flags 0x20000000
# [401] Trying clone3() with CLONE_SET_TID to 1 and 0x20000000
# I am the parent (401). My child's pid is 403
# I am the child, my PID is 1 (expected 1)
# [401] clone3() with CLONE_SET_TID 1 says: 0 - expected 0
ok 21 create PID 1 in new NS with 2 TIDs and flags 0x20000000
# unshare PID namespace
# [401] Trying clone3() with CLONE_SET_TID to 403 and 0x0
# Invalid argument - Failed to create new process
# [401] clone3() with CLONE_SET_TID 403 says: -22 - expected -22
ok 22 duplicate PID 1 with 1 TIDs and flags 0x0
# [1] Trying clone3() with CLONE_SET_TID to 43 and 0x0
# Invalid argument - Failed to create new process
# [1] clone3() with CLONE_SET_TID 43 says: -22 - expected -22
ok 23 check leak on invalid TID -1 with 2 TIDs and flags 0x0
# [1] Trying clone3() with CLONE_SET_TID to 43 and 0x0
# I am the parent (1). My child's pid is 43
# I am the child, my PID is 43 (expected 43)
# [1] clone3() with CLONE_SET_TID 43 says: 0 - expected 0
ok 24 check leak on invalid specific TID with 2 TIDs and flags 0x0
# Child in PID namespace has PID 1
# [1] Trying clone3() with CLONE_SET_TID to 2 and 0x0
# I am the parent (1). My child's pid is 2
# I am the child, my PID is 2 (expected 2)
# [1] clone3() with CLONE_SET_TID 2 says: 0 - expected 0
ok 25 create PID 2 in child NS with 1 TIDs and flags 0x0
# [1] Trying clone3() with CLONE_SET_TID to 1 and 0x20000000
# Invalid argument - Failed to create new process
# [1] clone3() with CLONE_SET_TID 1 says: -22 - expected -22
ok 26 fail due to invalid TID at level 1 with 3 TIDs and flags 0x20000000
# [1] Trying clone3() with CLONE_SET_TID to 1 and 0x20000000
# Invalid argument - Failed to create new process
# [1] clone3() with CLONE_SET_TID 1 says: -22 - expected -22
ok 27 fail due to too few active PID NSs with 4 TIDs and flags 0x20000000
# [1] Trying clone3() with CLONE_SET_TID to 1 and 0x20000000
# I am the parent (1). My child's pid is 42
# I am the child, my PID is 1 (expected 1)
# [1] Child is ready and waiting
# [401] Child is ready and waiting
# [1] clone3() with CLONE_SET_TID 1 says: 0 - expected 0
ok 28 verify that we have 3 PID NSs with 3 TIDs and flags 0x20000000
# Expecting PIDs 403, 42, 1
# Have PIDs in namespaces: 403, 42, 1
ok 29 PIDs in all namespaces as expected
# Totals: pass:29 fail:0 xfail:0 xpass:0 skip:0 error:0
clone3_clone3_clear_sighand fail

exit=1timeout set to 45
selftests: clone3: clone3_set_tid
TAP version 13
1..29
# clone3() syscall supported
# /proc/sys/kernel/pid_max 32768
# [859] Trying clone3() with CLONE_SET_TID to 0 and 0x0
# Invalid argument - Failed to create new process
# [859] clone3() with CLONE_SET_TID 0 says: -22 - expected -22
ok 1 invalid size, 0 TID with 33 TIDs and flags 0x0
# [859] Trying clone3() with CLONE_SET_TID to 0 and 0x0
# Invalid argument - Failed to create new process
# [859] clone3() with CLONE_SET_TID 0 says: -22 - expected -22
ok 2 invalid size, 0 TID with 64 TIDs and flags 0x0
# [859] Trying clone3() with CLONE_SET_TID to 0 and 0x0
# Invalid argument - Failed to create new process
# [859] clone3() with CLONE_SET_TID 0 says: -22 - expected -22
ok 3 invalid size, 0 TID with 65 TIDs and flags 0x0
# [859] Trying clone3() with CLONE_SET_TID to 0 and 0x0
# Invalid argument - Failed to create new process
# [859] clone3() with CLONE_SET_TID 0 says: -22 - expected -22
ok 4 invalid size, 0 TID with 1344 TIDs and flags 0x0
# [859] Trying clone3() with CLONE_SET_TID to 0 and 0x0
# Invalid argument - Failed to create new process
# [859] clone3() with CLONE_SET_TID 0 says: -22 - expected -22
ok 5 invalid size, 0 TID with 31 TIDs and flags 0x0
# [859] Trying clone3() with CLONE_SET_TID to -1 and 0x0
# Invalid argument - Failed to create new process
# [859] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 6 invalid size, TID all 1s with 33 TIDs and flags 0x0
# [859] Trying clone3() with CLONE_SET_TID to -1 and 0x0
# Invalid argument - Failed to create new process
# [859] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 7 invalid size, TID all 1s with 64 TIDs and flags 0x0
# [859] Trying clone3() with CLONE_SET_TID to -1 and 0x0
# Invalid argument - Failed to create new process
# [859] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 8 invalid size, TID all 1s with 65 TIDs and flags 0x0
# [859] Trying clone3() with CLONE_SET_TID to -1 and 0x0
# Invalid argument - Failed to create new process
# [859] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 9 invalid size, TID all 1s with 1344 TIDs and flags 0x0
# [859] Trying clone3() with CLONE_SET_TID to -1 and 0x0
# Invalid argument - Failed to create new process
# [859] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 10 invalid size, TID all 1s with 31 TIDs and flags 0x0
# [859] Trying clone3() with CLONE_SET_TID to 0 and 0x0
# Invalid argument - Failed to create new process
# [859] clone3() with CLONE_SET_TID 0 says: -22 - expected -22
ok 11 valid size, 0 TID with 1 TIDs and flags 0x0
# [859] Trying clone3() with CLONE_SET_TID to -1 and 0x0
# Invalid argument - Failed to create new process
# [859] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 12 valid size, -1 TID with 1 TIDs and flags 0x0
# [859] Trying clone3() with CLONE_SET_TID to -1 and 0x0
# Invalid argument - Failed to create new process
# [859] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 13 2 TIDs, -1 and 0 with 2 TIDs and flags 0x0
# [859] Trying clone3() with CLONE_SET_TID to -1 and 0x20000000
# Invalid argument - Failed to create new process
# [859] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 14 valid size, -1 TID with 1 TIDs and flags 0x20000000
# [859] Trying clone3() with CLONE_SET_TID to 1 and 0x0
# File exists - Failed to create new process
# [859] clone3() with CLONE_SET_TID 1 says: -17 - expected -17
ok 15 duplicate PID 1 with 1 TIDs and flags 0x0
# [859] Trying clone3() with CLONE_SET_TID to 1 and 0x20000000
# I am the parent (859). My child's pid is 860
# I am the child, my PID is 1 (expected 1)
# [859] clone3() with CLONE_SET_TID 1 says: 0 - expected 0
ok 16 duplicate PID 1 with 1 TIDs and flags 0x20000000
# [859] Trying clone3() with CLONE_SET_TID to 32768 and 0x0
# Inv[   55.371307] <LAVA_SIGNAL_TESTCASE TEST_CASE_ID=clone3_clone3_clear_sighand RESULT=fail>
alid argument - Failed to create new process
clone3_clone3_clear_sighand fail

exit=1timeout set to 45
selftests: clone3: clone3_set_tid
TAP version 13
1..29
# clone3() syscall supported
# /proc/sys/kernel/pid_max 32768
# [855] Trying clone3() with CLONE_SET_TID to 0 and 0x0
# Invalid argument - Failed to create new process
# [855] clone3() with CLONE_SET_TID 0 says: -22 - expected -22
ok 1 invalid size, 0 TID with 33 TIDs and flags 0x0
# [855] Trying clone3() with CLONE_SET_TID to 0 and 0x0
# Invalid argument - Failed to create new process
# [855] clone3() with CLONE_SET_TID 0 says: -22 - expected -22
ok 2 invalid size, 0 TID with 64 TIDs and flags 0x0
# [855] Trying clone3() with CLONE_SET_TID to 0 and 0x0
# Invalid argument - Failed to create new process
# [855] clone3() with CLONE_SET_TID 0 says: -22 - expected -22
ok 3 invalid size, 0 TID with 65 TIDs and flags 0x0
# [855] Trying clone3() with CLONE_SET_TID to 0 and 0x0
# Invalid argument - Failed to create new process
# [855] clone3() with CLONE_SET_TID 0 says: -22 - expected -22
ok 4 invalid size, 0 TID with 1344 TIDs and flags 0x0
# [855] Trying clone3() with CLONE_SET_TID to 0 and 0x0
# Invalid argument - Failed to create new process
# [855] clone3() with CLONE_SET_TID 0 says: -22 - expected -22
ok 5 invalid size, 0 TID with 31 TIDs and flags 0x0
# [855] Trying clone3() with CLONE_SET_TID to -1 and 0x0
# Invalid argument - Failed to create new process
# [855] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 6 invalid size, TID all 1s with 33 TIDs and flags 0x0
# [855] Trying clone3() with CLONE_SET_TID to -1 and 0x0
# Invalid argument - Failed to create new process
# [855] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 7 invalid size, TID all 1s with 64 TIDs and flags 0x0
# [855] Trying clone3() with CLONE_SET_TID to -1 and 0x0
# Invalid argument - Failed to create new process
# [855] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 8 invalid size, TID all 1s with 65 TIDs and flags 0x0
# [855] Trying clone3() with CLONE_SET_TID to -1 and 0x0
# Invalid argument - Failed to create new process
# [855] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 9 invalid size, TID all 1s with 1344 TIDs and flags 0x0
# [855] Trying clone3() with CLONE_SET_TID to -1 and 0x0
# Invalid argument - Failed to create new process
# [855] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 10 invalid size, TID all 1s with 31 TIDs and flags 0x0
# [855] Trying clone3() with CLONE_SET_TID to 0 and 0x0
# Invalid argument - Failed to create new process
# [855] clone3() with CLONE_SET_TID 0 says: -22 - expected -22
ok 11 valid size, 0 TID with 1 TIDs and flags 0x0
# [855] Trying clone3() with CLONE_SET_TID to -1 and 0x0
# Invalid argument - Failed to create new process
# [855] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 12 valid size, -1 TID with 1 TIDs and flags 0x0
# [855] Trying clone3() with CLONE_SET_TID to -1 and 0x0
# Invalid argument - Failed to create new process
# [855] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 13 2 TIDs, -1 and 0 with 2 TIDs and flags 0x0
# [855] Trying clone3() with CLONE_SET_TID to -1 and 0x20000000
# Invalid argument - Failed to create new process
# [855] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 14 valid size, -1 TID with 1 TIDs and flags 0x20000000
# [855] Trying clone3() with CLONE_SET_TID to 1 and 0x0
# File exists - Failed to create new process
# [855] clone3() with CLONE_SET_TID 1 says: -17 - expected -17
ok 15 duplicate PID 1 with 1 TIDs and flags 0x0
# [855] Trying clone3() with CLONE_SET_TID to 1 and 0x20000000
# I am the parent (855). My child's pid is 856
# I am the child, my PID is 1 (expected 1)
# [855] clone3() with CLONE_SET_TID 1 says: 0 - expected 0
ok 16 duplicate PID 1 with 1 TIDs and flags 0x20000000
# [855] Trying clone3() with CLONE_SET_TID to 32768 and 0x0
clone3_clone3_clear_sighand fail