Hay
Date
May 7, 2025, 7:09 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
# [380] Trying clone3() with CLONE_SET_TID to 0 and 0x0
# Invalid argument - Failed to create new process
# [380] clone3() with CLONE_SET_TID 0 says: -22 - expected -22
ok 1 invalid size, 0 TID with 33 TIDs and flags 0x0
# [380] Trying clone3() with CLONE_SET_TID to 0 and 0x0
# Invalid argument - Failed to create new process
# [380] clone3() with CLONE_SET_TID 0 says: -22 - expected -22
ok 2 invalid size, 0 TID with 64 TIDs and flags 0x0
# [380] Trying clone3() with CLONE_SET_TID to 0 and 0x0
# Invalid argument - Failed to create new process
# [380] clone3() with CLONE_SET_TID 0 says: -22 - expected -22
ok 3 invalid size, 0 TID with 65 TIDs and flags 0x0
# [380] Trying clone3() with CLONE_SET_TID to 0 and 0x0
# Invalid argument - Failed to create new process
# [380] clone3() with CLONE_SET_TID 0 says: -22 - expected -22
ok 4 invalid size, 0 TID with 1344 TIDs and flags 0x0
# [380] Trying clone3() with CLONE_SET_TID to 0 and 0x0
# Invalid argument - Failed to create new process
# [380] clone3() with CLONE_SET_TID 0 says: -22 - expected -22
ok 5 invalid size, 0 TID with 31 TIDs and flags 0x0
# [380] Trying clone3() with CLONE_SET_TID to -1 and 0x0
# Invalid argument - Failed to create new process
# [380] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 6 invalid size, TID all 1s with 33 TIDs and flags 0x0
# [380] Trying clone3() with CLONE_SET_TID to -1 and 0x0
# Invalid argument - Failed to create new process
# [380] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 7 invalid size, TID all 1s with 64 TIDs and flags 0x0
# [380] Trying clone3() with CLONE_SET_TID to -1 and 0x0
# Invalid argument - Failed to create new process
# [380] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 8 invalid size, TID all 1s with 65 TIDs and flags 0x0
# [380] Trying clone3() with CLONE_SET_TID to -1 and 0x0
# Invalid argument - Failed to create new process
# [380] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 9 invalid size, TID all 1s with 1344 TIDs and flags 0x0
# [380] Trying clone3() with CLONE_SET_TID to -1 and 0x0
# Invalid argument - Failed to create new process
# [380] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 10 invalid size, TID all 1s with 31 TIDs and flags 0x0
# [380] Trying clone3() with CLONE_SET_TID to 0 and 0x0
# Invalid argument - Failed to create new process
# [380] clone3() with CLONE_SET_TID 0 says: -22 - expected -22
ok 11 valid size, 0 TID with 1 TIDs and flags 0x0
# [380] Trying clone3() with CLONE_SET_TID to -1 and 0x0
# Invalid argument - Failed to create new process
# [380] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 12 valid size, -1 TID with 1 TIDs and flags 0x0
# [380] Trying clone3() with CLONE_SET_TID to -1 and 0x0
# Invalid argument - Failed to create new process
# [380] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 13 2 TIDs, -1 and 0 with 2 TIDs and flags 0x0
# [380] Trying clone3() with CLONE_SET_TID to -1 and 0x20000000
# Invalid argument - Failed to create new process
# [380] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 14 valid size, -1 TID with 1 TIDs and flags 0x20000000
# [380] Trying clone3() with CLONE_SET_TID to 1 and 0x0
# File exists - Failed to create new process
# [380] clone3() with CLONE_SET_TID 1 says: -17 - expected -17
ok 15 duplicate PID 1 with 1 TIDs and flags 0x0
# [380] Trying clone3() with CLONE_SET_TID to 1 and 0x20000000
# I am the child, my PID is 1 (expected 1)
# I am the parent (380). My child's pid is 381
# [380] clone3() with CLONE_SET_TID 1 says: 0 - expected 0
ok 16 duplicate PID 1 with 1 TIDs and flags 0x20000000
# [380] Trying clone3() with CLONE_SET_TID to 32768 and 0x0
# Invalid argument - Failed to create new process
# [380] clone3() with CLONE_SET_TID 32768 says: -22 - expected -22
ok 17 set TID to maximum with 1 TIDs and flags 0x0
# [380] Trying clone3() with CLONE_SET_TID to 32768 and 0x20000000
# Invalid argument - Failed to create new process
# [380] 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 382
# [380] Trying clone3() with CLONE_SET_TID to 382 and 0x0
# I am the parent (380). My child's pid is 382
# I am the child, my PID is 382 (expected 382)
# [380] clone3() with CLONE_SET_TID 382 says: 0 - expected 0
ok 19 reallocate child TID with 1 TIDs and flags 0x0
# [380] Trying clone3() with CLONE_SET_TID to 382 and 0x20000000
# Invalid argument - Failed to create new process
# [380] clone3() with CLONE_SET_TID 382 says: -22 - expected -22
ok 20 duplicate child TID with 1 TIDs and flags 0x20000000
# [380] Trying clone3() with CLONE_SET_TID to 1 and 0x20000000
# I am the child, my PID is 1 (expected 1)
# I am the parent (380). My child's pid is 382
# [380] 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
# [380] Trying clone3() with CLONE_SET_TID to 382 and 0x0
# Invalid argument - Failed to create new process
# [380] clone3() with CLONE_SET_TID 382 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 child, my PID is 1 (expected 1)
# [1] Child is ready and waiting
# I am the parent (1). My child's pid is 42
# [380] 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 382, 42, 1
# Have PIDs in namespaces: 382, 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
# [380] Trying clone3() with CLONE_SET_TID to 0 and 0x0
# Invalid argument - Failed to create new process
# [380] clone3() with CLONE_SET_TID 0 says: -22 - expected -22
ok 1 invalid size, 0 TID with 33 TIDs and flags 0x0
# [380] Trying clone3() with CLONE_SET_TID to 0 and 0x0
# Invalid argument - Failed to create new process
# [380] clone3() with CLONE_SET_TID 0 says: -22 - expected -22
ok 2 invalid size, 0 TID with 64 TIDs and flags 0x0
# [380] Trying clone3() with CLONE_SET_TID to 0 and 0x0
# Invalid argument - Failed to create new process
# [380] clone3() with CLONE_SET_TID 0 says: -22 - expected -22
ok 3 invalid size, 0 TID with 65 TIDs and flags 0x0
# [380] Trying clone3() with CLONE_SET_TID to 0 and 0x0
# Invalid argument - Failed to create new process
# [380] clone3() with CLONE_SET_TID 0 says: -22 - expected -22
ok 4 invalid size, 0 TID with 1344 TIDs and flags 0x0
# [380] Trying clone3() with CLONE_SET_TID to 0 and 0x0
# Invalid argument - Failed to create new process
# [380] clone3() with CLONE_SET_TID 0 says: -22 - expected -22
ok 5 invalid size, 0 TID with 31 TIDs and flags 0x0
# [380] Trying clone3() with CLONE_SET_TID to -1 and 0x0
# Invalid argument - Failed to create new process
# [380] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 6 invalid size, TID all 1s with 33 TIDs and flags 0x0
# [380] Trying clone3() with CLONE_SET_TID to -1 and 0x0
# Invalid argument - Failed to create new process
# [380] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 7 invalid size, TID all 1s with 64 TIDs and flags 0x0
# [380] Trying clone3() with CLONE_SET_TID to -1 and 0x0
# Invalid argument - Failed to create new process
# [380] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 8 invalid size, TID all 1s with 65 TIDs and flags 0x0
# [380] Trying clone3() with CLONE_SET_TID to -1 and 0x0
# Invalid argument - Failed to create new process
# [380] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 9 invalid size, TID all 1s with 1344 TIDs and flags 0x0
# [380] Trying clone3() with CLONE_SET_TID to -1 and 0x0
# Invalid argument - Failed to create new process
# [380] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 10 invalid size, TID all 1s with 31 TIDs and flags 0x0
# [380] Trying clone3() with CLONE_SET_TID to 0 and 0x0
# Invalid argument - Failed to create new process
# [380] clone3() with CLONE_SET_TID 0 says: -22 - expected -22
ok 11 valid size, 0 TID with 1 TIDs and flags 0x0
# [380] Trying clone3() with CLONE_SET_TID to -1 and 0x0
# Invalid argument - Failed to create new process
# [380] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 12 valid size, -1 TID with 1 TIDs and flags 0x0
# [380] Trying clone3() with CLONE_SET_TID to -1 and 0x0
# Invalid argument - Failed to create new process
# [380] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 13 2 TIDs, -1 and 0 with 2 TIDs and flags 0x0
# [380] Trying clone3() with CLONE_SET_TID to -1 and 0x20000000
# Invalid argument - Failed to create new process
# [380] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 14 valid size, -1 TID with 1 TIDs and flags 0x20000000
# [380] Trying clone3() with CLONE_SET_TID to 1 and 0x0
# File exists - Failed to create new process
# [380] clone3() with CLONE_SET_TID 1 says: -17 - expected -17
ok 15 duplicate PID 1 with 1 TIDs and flags 0x0
# [380] Trying clone3() with CLONE_SET_TID to 1 and 0x20000000
# I am the child, my PID is 1 (expected 1)
# I am the parent (380). My child's pid is 381
# [380] clone3() with CLONE_SET_TID 1 says: 0 - expected 0
ok 16 duplicate PID 1 with 1 TIDs and flags 0x20000000
# [380] Trying clone3() with CLONE_SET_TID to 32768 and 0x0
# Invalid argument - Failed to create new process
# [380] clone3() with CLONE_SET_TID 32768 says: -22 - expected -22
ok 17 set TID to maximum with 1 TIDs and flags 0x0
# [380] Trying clone3() with CLONE_SET_TID to 32768 and 0x20000000
# Invalid argument - Failed to create new process
# [380] 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 382
# [380] Trying clone3() with CLONE_SET_TID to 382 and 0x0
# I am the child, my PID is 382 (expected 382)
# I am the parent (380). My child's pid is 382
# [380] clone3() with CLONE_SET_TID 382 says: 0 - expected 0
ok 19 reallocate child TID with 1 TIDs and flags 0x0
# [380] Trying clone3() with CLONE_SET_TID to 382 and 0x20000000
# Invalid argument - Failed to create new process
# [380] clone3() with CLONE_SET_TID 382 says: -22 - expected -22
ok 20 duplicate child TID with 1 TIDs and flags 0x20000000
# [380] Trying clone3() with CLONE_SET_TID to 1 and 0x20000000
# I am the parent (380). My child's pid is 382
# I am the child, my PID is 1 (expected 1)
# [380] 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
# [380] Trying clone3() with CLONE_SET_TID to 382 and 0x0
# Invalid argument - Failed to create new process
# [380] clone3() with CLONE_SET_TID 382 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
# [380] 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 382, 42, 1
# Have PIDs in namespaces: 382, 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
# [385] Trying clone3() with CLONE_SET_TID to 0 and 0x0
# Invalid argument - Failed to create new process
# [385] clone3() with CLONE_SET_TID 0 says: -22 - expected -22
ok 1 invalid size, 0 TID with 33 TIDs and flags 0x0
# [385] Trying clone3() with CLONE_SET_TID to 0 and 0x0
# Invalid argument - Failed to create new process
# [385] clone3() with CLONE_SET_TID 0 says: -22 - expected -22
ok 2 invalid size, 0 TID with 64 TIDs and flags 0x0
# [385] Trying clone3() with CLONE_SET_TID to 0 and 0x0
# Invalid argument - Failed to create new process
# [385] clone3() with CLONE_SET_TID 0 says: -22 - expected -22
ok 3 invalid size, 0 TID with 65 TIDs and flags 0x0
# [385] Trying clone3() with CLONE_SET_TID to 0 and 0x0
# Invalid argument - Failed to create new process
# [385] clone3() with CLONE_SET_TID 0 says: -22 - expected -22
ok 4 invalid size, 0 TID with 1344 TIDs and flags 0x0
# [385] Trying clone3() with CLONE_SET_TID to 0 and 0x0
# Invalid argument - Failed to create new process
# [385] clone3() with CLONE_SET_TID 0 says: -22 - expected -22
ok 5 invalid size, 0 TID with 31 TIDs and flags 0x0
# [385] Trying clone3() with CLONE_SET_TID to -1 and 0x0
# Invalid argument - Failed to create new process
# [385] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 6 invalid size, TID all 1s with 33 TIDs and flags 0x0
# [385] Trying clone3() with CLONE_SET_TID to -1 and 0x0
# Invalid argument - Failed to create new process
# [385] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 7 invalid size, TID all 1s with 64 TIDs and flags 0x0
# [385] Trying clone3() with CLONE_SET_TID to -1 and 0x0
# Invalid argument - Failed to create new process
# [385] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 8 invalid size, TID all 1s with 65 TIDs and flags 0x0
# [385] Trying clone3() with CLONE_SET_TID to -1 and 0x0
# Invalid argument - Failed to create new process
# [385] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 9 invalid size, TID all 1s with 1344 TIDs and flags 0x0
# [385] Trying clone3() with CLONE_SET_TID to -1 and 0x0
# Invalid argument - Failed to create new process
# [385] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 10 invalid size, TID all 1s with 31 TIDs and flags 0x0
# [385] Trying clone3() with CLONE_SET_TID to 0 and 0x0
# Invalid argument - Failed to create new process
# [385] clone3() with CLONE_SET_TID 0 says: -22 - expected -22
ok 11 valid size, 0 TID with 1 TIDs and flags 0x0
# [385] Trying clone3() with CLONE_SET_TID to -1 and 0x0
# Invalid argument - Failed to create new process
# [385] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 12 valid size, -1 TID with 1 TIDs and flags 0x0
# [385] Trying clone3() with CLONE_SET_TID to -1 and 0x0
# Invalid argument - Failed to create new process
# [385] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 13 2 TIDs, -1 and 0 with 2 TIDs and flags 0x0
# [385] Trying clone3() with CLONE_SET_TID to -1 and 0x20000000
# Invalid argument - Failed to create new process
# [385] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 14 valid size, -1 TID with 1 TIDs and flags 0x20000000
# [385] Trying clone3() with CLONE_SET_TID to 1 and 0x0
# File exists - Failed to create new process
# [385] clone3() with CLONE_SET_TID 1 says: -17 - expected -17
ok 15 duplicate PID 1 with 1 TIDs and flags 0x0
# [385] Trying clone3() with CLONE_SET_TID to 1 and 0x20000000
# I am the parent (385). My child's pid is 386
# I am the child, my PID is 1 (expected 1)
# [385] clone3() with CLONE_SET_TID 1 says: 0 - expected 0
ok 16 duplicate PID 1 with 1 TIDs and flags 0x20000000
# [385] Trying clone3() with CLONE_SET_TID to 32768 and 0x0
# Invalid argument - Failed to create new process
# [385] clone3() with CLONE_SET_TID 32768 says: -22 - expected -22
ok 17 set TID to maximum with 1 TIDs and flags 0x0
# [385] Trying clone3() with CLONE_SET_TID to 32768 and 0x20000000
# Invalid argument - Failed to create new process
# [385] 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 387
# [385] Trying clone3() with CLONE_SET_TID to 387 and 0x0
# I am the parent (385). My child's pid is 387
# I am the child, my PID is 387 (expected 387)
# [385] clone3() with CLONE_SET_TID 387 says: 0 - expected 0
ok 19 reallocate child TID with 1 TIDs and flags 0x0
# [385] Trying clone3() with CLONE_SET_TID to 387 and 0x20000000
# Invalid argument - Failed to create new process
# [385] clone3() with CLONE_SET_TID 387 says: -22 - expected -22
ok 20 duplicate child TID with 1 TIDs and flags 0x20000000
# [385] Trying clone3() with CLONE_SET_TID to 1 and 0x20000000
# I am the parent (385). My child's pid is 387
# I am the child, my PID is 1 (expected 1)
# [385] 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
# [385] Trying clone3() with CLONE_SET_TID to 387 and 0x0
# Invalid argument - Failed to create new process
# [385] clone3() with CLONE_SET_TID 387 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 child, my PID is 1 (expected 1)
# [1] Child is ready and waiting
# I am the parent (1). My child's pid is 42
# [385] 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 387, 42, 1
# Have PIDs in namespaces: 387, 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
# [384] Trying clone3() with CLONE_SET_TID to 0 and 0x0
# Invalid argument - Failed to create new process
# [384] clone3() with CLONE_SET_TID 0 says: -22 - expected -22
ok 1 invalid size, 0 TID with 33 TIDs and flags 0x0
# [384] Trying clone3() with CLONE_SET_TID to 0 and 0x0
# Invalid argument - Failed to create new process
# [384] clone3() with CLONE_SET_TID 0 says: -22 - expected -22
ok 2 invalid size, 0 TID with 64 TIDs and flags 0x0
# [384] Trying clone3() with CLONE_SET_TID to 0 and 0x0
# Invalid argument - Failed to create new process
# [384] clone3() with CLONE_SET_TID 0 says: -22 - expected -22
ok 3 invalid size, 0 TID with 65 TIDs and flags 0x0
# [384] Trying clone3() with CLONE_SET_TID to 0 and 0x0
# Invalid argument - Failed to create new process
# [384] clone3() with CLONE_SET_TID 0 says: -22 - expected -22
ok 4 invalid size, 0 TID with 1344 TIDs and flags 0x0
# [384] Trying clone3() with CLONE_SET_TID to 0 and 0x0
# Invalid argument - Failed to create new process
# [384] clone3() with CLONE_SET_TID 0 says: -22 - expected -22
ok 5 invalid size, 0 TID with 31 TIDs and flags 0x0
# [384] Trying clone3() with CLONE_SET_TID to -1 and 0x0
# Invalid argument - Failed to create new process
# [384] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 6 invalid size, TID all 1s with 33 TIDs and flags 0x0
# [384] Trying clone3() with CLONE_SET_TID to -1 and 0x0
# Invalid argument - Failed to create new process
# [384] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 7 invalid size, TID all 1s with 64 TIDs and flags 0x0
# [384] Trying clone3() with CLONE_SET_TID to -1 and 0x0
# Invalid argument - Failed to create new process
# [384] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 8 invalid size, TID all 1s with 65 TIDs and flags 0x0
# [384] Trying clone3() with CLONE_SET_TID to -1 and 0x0
# Invalid argument - Failed to create new process
# [384] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 9 invalid size, TID all 1s with 1344 TIDs and flags 0x0
# [384] Trying clone3() with CLONE_SET_TID to -1 and 0x0
# Invalid argument - Failed to create new process
# [384] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 10 invalid size, TID all 1s with 31 TIDs and flags 0x0
# [384] Trying clone3() with CLONE_SET_TID to 0 and 0x0
# Invalid argument - Failed to create new process
# [384] clone3() with CLONE_SET_TID 0 says: -22 - expected -22
ok 11 valid size, 0 TID with 1 TIDs and flags 0x0
# [384] Trying clone3() with CLONE_SET_TID to -1 and 0x0
# Invalid argument - Failed to create new process
# [384] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 12 valid size, -1 TID with 1 TIDs and flags 0x0
# [384] Trying clone3() with CLONE_SET_TID to -1 and 0x0
# Invalid argument - Failed to create new process
# [384] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 13 2 TIDs, -1 and 0 with 2 TIDs and flags 0x0
# [384] Trying clone3() with CLONE_SET_TID to -1 and 0x20000000
# Invalid argument - Failed to create new process
# [384] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 14 valid size, -1 TID with 1 TIDs and flags 0x20000000
# [384] Trying clone3() with CLONE_SET_TID to 1 and 0x0
# File exists - Failed to create new process
# [384] clone3() with CLONE_SET_TID 1 says: -17 - expected -17
ok 15 duplicate PID 1 with 1 TIDs and flags 0x0
# [384] Trying clone3() with CLONE_SET_TID to 1 and 0x20000000
# I am the child, my PID is 1 (expected 1)
# I am the parent (384). My child's pid is 385
# [384] clone3() with CLONE_SET_TID 1 says: 0 - expected 0
ok 16 duplicate PID 1 with 1 TIDs and flags 0x20000000
# [384] Trying clone3() with CLONE_SET_TID to 32768 and 0x0
# Invalid argument - Failed to create new process
# [384] clone3() with CLONE_SET_TID 32768 says: -22 - expected -22
ok 17 set TID to maximum with 1 TIDs and flags 0x0
# [384] Trying clone3() with CLONE_SET_TID to 32768 and 0x20000000
# Invalid argument - Failed to create new process
# [384] 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 386
# [384] Trying clone3() with CLONE_SET_TID to 386 and 0x0
# I am the parent (384). My child's pid is 386
# I am the child, my PID is 386 (expected 386)
# [384] clone3() with CLONE_SET_TID 386 says: 0 - expected 0
ok 19 reallocate child TID with 1 TIDs and flags 0x0
# [384] Trying clone3() with CLONE_SET_TID to 386 and 0x20000000
# Invalid argument - Failed to create new process
# [384] clone3() with CLONE_SET_TID 386 says: -22 - expected -22
ok 20 duplicate child TID with 1 TIDs and flags 0x20000000
# [384] Trying clone3() with CLONE_SET_TID to 1 and 0x20000000
# I am the child, my PID is 1 (expected 1)
# I am the parent (384). My child's pid is 386
# [384] 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
# [384] Trying clone3() with CLONE_SET_TID to 386 and 0x0
# Invalid argument - Failed to create new process
# [384] clone3() with CLONE_SET_TID 386 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
# [384] 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 386, 42, 1
# Have PIDs in namespaces: 386, 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
# [864] Trying clone3() with CLONE_SET_TID to 0 and 0x0
# Invalid argument - Failed to create new process
# [864] clone3() with CLONE_SET_TID 0 says: -22 - expected -22
ok 1 invalid size, 0 TID with 33 TIDs and flags 0x0
# [864] Trying clone3() with CLONE_SET_TID to 0 and 0x0
# Invalid argument - Failed to create new process
# [864] clone3() with CLONE_SET_TID 0 says: -22 - expected -22
ok 2 invalid size, 0 TID with 64 TIDs and flags 0x0
# [864] Trying clone3() with CLONE_SET_TID to 0 and 0x0
# Invalid argument - Failed to create new process
# [864] clone3() with CLONE_SET_TID 0 says: -22 - expected -22
ok 3 invalid size, 0 TID with 65 TIDs and flags 0x0
# [864] Trying clone3() with CLONE_SET_TID to 0 and 0x0
# Invalid argument - Failed to create new process
# [864] clone3() with CLONE_SET_TID 0 says: -22 - expected -22
ok 4 invalid size, 0 TID with 1344 TIDs and flags 0x0
# [864] Trying clone3() with CLONE_SET_TID to 0 and 0x0
# Invalid argument - Failed to create new process
# [864] clone3() with CLONE_SET_TID 0 says: -22 - expected -22
ok 5 invalid size, 0 TID with 31 TIDs and flags 0x0
# [864] Trying clone3() with CLONE_SET_TID to -1 and 0x0
# Invalid argument - Failed to create new process
# [864] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 6 invalid size, TID all 1s with 33 TIDs and flags 0x0
# [864] Trying clone3() with CLONE_SET_TID to -1 and 0x0
# Invalid argument - Failed to create new process
# [864] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 7 invalid size, TID all 1s with 64 TIDs and flags 0x0
# [864] Trying clone3() with CLONE_SET_TID to -1 and 0x0
# Invalid argument - Failed to create new process
# [864] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 8 invalid size, TID all 1s with 65 TIDs and flags 0x0
# [864] Trying clone3() with CLONE_SET_TID to -1 and 0x0
# Invalid argument - Failed to create new process
# [864] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 9 invalid size, TID all 1s with 1344 TIDs and flags 0x0
# [864] Trying clone3() with CLONE_SET_TID to -1 and 0x0
# Invalid argument - Failed to create new process
# [864] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 10 invalid size, TID all 1s with 31 TIDs and flags 0x0
# [864] Trying clone3() with CLONE_SET_TID to 0 and 0x0
# Invalid argument - Failed to create new process
# [864] clone3() with CLONE_SET_TID 0 says: -22 - expected -22
ok 11 valid size, 0 TID with 1 TIDs and flags 0x0
# [864] Trying clone3() with CLONE_SET_TID to -1 and 0x0
# Invalid argument - Failed to create new process
# [864] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 12 valid size, -1 TID with 1 TIDs and flags 0x0
# [864] Trying clone3() with CLONE_SET_TID to -1 and 0x0
# Invalid argument - Failed to create new process
# [864] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 13 2 TIDs, -1 and 0 with 2 TIDs and flags 0x0
# [864] Trying clone3() with CLONE_SET_TID to -1 and 0x20000000
# Invalid argument - Failed to create new process
# [864] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 14 valid size, -1 TID with 1 TIDs and flags 0x20000000
# [864] Trying clone3() with CLONE_SET_TID to 1 and 0x0
# File exists - Failed to create new process
# [864] clone3() with CLONE_SET_TID 1 says: -17 - expected -17
ok 15 duplicate PID 1 with 1 TIDs and flags 0x0
# [864] Trying clone3() with CLONE_SET_TID to 1 and 0x20000000
# I am the parent (864). My child's pid is 865
# I am the child, my PID is 1 (expected 1)
# [864] clone3() with CLONE_SET_TID 1 says: 0 - expected 0
ok 16 duplicate PID 1 with 1 TIDs and flags 0x20000000
# [864] Trying clone3() with CLONE_SET_TID to 32768 and 0x0
# Invalid argument - Failed to create new process
# [864] clone3() with CLONE_SET_TID 32768 says: -22 - expected -22
ok 17 set TID [   84.550842] <LAVA_SIGNAL_TESTCASE TEST_CASE_ID=clone3_clone3_clear_sighand RESULT=fail>
to maximum with 1 TIDs and flags 0x0
# [864] Trying clone3() with CLONE_SET_TID to 32768 and 0x20000000
# Invalid argument - Failed to create new process
# [864] clone3() with CLONE_SET_TID[   84.579437] <LAVA_SIGNAL_TESTCASE TEST_CASE_ID=clone3_clone3_set_tid_invalid_size_0_TID_with_33_TIDs_and_flags_0x0 RESULT=pass>
 32768 says: -22 - expected -22
ok 18 set TID to maximum with 1 TIDs and flags 0x20000000
# Child has PID 866
# [864] Trying clone3() with CLONE_SET_TID to 866 and 0x0
# I am the parent (8[   84.604797] <LAVA_SIGNAL_TESTCASE TEST_CASE_ID=clone3_clone3_set_tid_invalid_size_0_TID_with_64_TIDs_and_flags_0x0 RESULT=pass>
64). My child's pid is 866
# I am the child, my PID is 866 (expected 866)
# [864] clone3() with CLONE_SET_TID 866 says: 0 - expected 0
ok 19 reallocate child TID with 1 TIDs and flags 0x0
[   84.632019] <LAVA_SIGNAL_TESTCASE TEST_CASE_ID=clone3_clone3_set_tid_invalid_size_0_TID_with_65_TIDs_and_flags_0x0 RESULT=pass>
# [864] Trying clone3() with CLONE_SET_TID to 866 and 0x20000000
# Invalid argument - Failed to create new process
# [864] clone3() with CLONE_SET_TID 866 says: -22 - expected -22
ok 20 dup[   84.660491] <LAVA_SIGNAL_TESTCASE TEST_CASE_ID=clone3_clone3_set_tid_invalid_size_0_TID_with_1344_TIDs_and_flags_0x0 RESULT=pass>
licate child TID with 1 TIDs and flags 0x20000000
# [864] Trying clone3() with CLONE_SET_TID to 1 and 0x20000000
# I am the parent (864). My child's pid is 866
# I am the child, my PID is 1[   84.689147] <LAVA_SIGNAL_TESTCASE TEST_CASE_ID=clone3_clone3_set_tid_invalid_size_0_TID_with_31_TIDs_and_flags_0x0 RESULT=pass>
 (expected 1)
# [864] 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
# [864] Trying clone3() with [   84.717376] <LAVA_SIGNAL_TESTCASE TEST_CASE_ID=clone3_clone3_set_tid_invalid_size_TID_all_1s_with_33_TIDs_and_flags_0x0 RESULT=pass>
clone3_clone3_clear_sighand fail