Hay
Date
May 1, 2025, 8:40 a.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
# [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

exit=1timeout set to 45
selftests: clone3: clone3_set_tid
TAP version 13
1..29
# clone3() syscall supported
# /proc/sys/kernel/pid_max 32768
# [386] Trying clone3() with CLONE_SET_TID to 0 and 0x0
# Invalid argument - Failed to create new process
# [386] clone3() with CLONE_SET_TID 0 says: -22 - expected -22
ok 1 invalid size, 0 TID with 33 TIDs and flags 0x0
# [386] Trying clone3() with CLONE_SET_TID to 0 and 0x0
# Invalid argument - Failed to create new process
# [386] clone3() with CLONE_SET_TID 0 says: -22 - expected -22
ok 2 invalid size, 0 TID with 64 TIDs and flags 0x0
# [386] Trying clone3() with CLONE_SET_TID to 0 and 0x0
# Invalid argument - Failed to create new process
# [386] clone3() with CLONE_SET_TID 0 says: -22 - expected -22
ok 3 invalid size, 0 TID with 65 TIDs and flags 0x0
# [386] Trying clone3() with CLONE_SET_TID to 0 and 0x0
# Invalid argument - Failed to create new process
# [386] clone3() with CLONE_SET_TID 0 says: -22 - expected -22
ok 4 invalid size, 0 TID with 1344 TIDs and flags 0x0
# [386] Trying clone3() with CLONE_SET_TID to 0 and 0x0
# Invalid argument - Failed to create new process
# [386] clone3() with CLONE_SET_TID 0 says: -22 - expected -22
ok 5 invalid size, 0 TID with 31 TIDs and flags 0x0
# [386] Trying clone3() with CLONE_SET_TID to -1 and 0x0
# Invalid argument - Failed to create new process
# [386] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 6 invalid size, TID all 1s with 33 TIDs and flags 0x0
# [386] Trying clone3() with CLONE_SET_TID to -1 and 0x0
# Invalid argument - Failed to create new process
# [386] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 7 invalid size, TID all 1s with 64 TIDs and flags 0x0
# [386] Trying clone3() with CLONE_SET_TID to -1 and 0x0
# Invalid argument - Failed to create new process
# [386] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 8 invalid size, TID all 1s with 65 TIDs and flags 0x0
# [386] Trying clone3() with CLONE_SET_TID to -1 and 0x0
# Invalid argument - Failed to create new process
# [386] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 9 invalid size, TID all 1s with 1344 TIDs and flags 0x0
# [386] Trying clone3() with CLONE_SET_TID to -1 and 0x0
# Invalid argument - Failed to create new process
# [386] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 10 invalid size, TID all 1s with 31 TIDs and flags 0x0
# [386] Trying clone3() with CLONE_SET_TID to 0 and 0x0
# Invalid argument - Failed to create new process
# [386] clone3() with CLONE_SET_TID 0 says: -22 - expected -22
ok 11 valid size, 0 TID with 1 TIDs and flags 0x0
# [386] Trying clone3() with CLONE_SET_TID to -1 and 0x0
# Invalid argument - Failed to create new process
# [386] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 12 valid size, -1 TID with 1 TIDs and flags 0x0
# [386] Trying clone3() with CLONE_SET_TID to -1 and 0x0
# Invalid argument - Failed to create new process
# [386] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 13 2 TIDs, -1 and 0 with 2 TIDs and flags 0x0
# [386] Trying clone3() with CLONE_SET_TID to -1 and 0x20000000
# Invalid argument - Failed to create new process
# [386] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 14 valid size, -1 TID with 1 TIDs and flags 0x20000000
# [386] Trying clone3() with CLONE_SET_TID to 1 and 0x0
# File exists - Failed to create new process
# [386] clone3() with CLONE_SET_TID 1 says: -17 - expected -17
ok 15 duplicate PID 1 with 1 TIDs and flags 0x0
# [386] Trying clone3() with CLONE_SET_TID to 1 and 0x20000000
# I am the parent (386). My child's pid is 387
# I am the child, my PID is 1 (expected 1)
# [386] clone3() with CLONE_SET_TID 1 says: 0 - expected 0
ok 16 duplicate PID 1 with 1 TIDs and flags 0x20000000
# [386] Trying clone3() with CLONE_SET_TID to 32768 and 0x0
# Invalid argument - Failed to create new process
# [386] clone3() with CLONE_SET_TID 32768 says: -22 - expected -22
ok 17 set TID to maximum with 1 TIDs and flags 0x0
# [386] Trying clone3() with CLONE_SET_TID to 32768 and 0x20000000
# Invalid argument - Failed to create new process
# [386] 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 388
# [386] Trying clone3() with CLONE_SET_TID to 388 and 0x0
# I am the parent (386). My child's pid is 388
# I am the child, my PID is 388 (expected 388)
# [386] clone3() with CLONE_SET_TID 388 says: 0 - expected 0
ok 19 reallocate child TID with 1 TIDs and flags 0x0
# [386] Trying clone3() with CLONE_SET_TID to 388 and 0x20000000
# Invalid argument - Failed to create new process
# [386] clone3() with CLONE_SET_TID 388 says: -22 - expected -22
ok 20 duplicate child TID with 1 TIDs and flags 0x20000000
# [386] Trying clone3() with CLONE_SET_TID to 1 and 0x20000000
# I am the parent (386). My child's pid is 388
# I am the child, my PID is 1 (expected 1)
# [386] 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
# [386] Trying clone3() with CLONE_SET_TID to 388 and 0x0
# Invalid argument - Failed to create new process
# [386] clone3() with CLONE_SET_TID 388 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
# [386] 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 388, 42, 1
# Have PIDs in namespaces: 388, 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
# [402] Trying clone3() with CLONE_SET_TID to 0 and 0x0
# Invalid argument - Failed to create new process
# [402] clone3() with CLONE_SET_TID 0 says: -22 - expected -22
ok 1 invalid size, 0 TID with 33 TIDs and flags 0x0
# [402] Trying clone3() with CLONE_SET_TID to 0 and 0x0
# Invalid argument - Failed to create new process
# [402] clone3() with CLONE_SET_TID 0 says: -22 - expected -22
ok 2 invalid size, 0 TID with 64 TIDs and flags 0x0
# [402] Trying clone3() with CLONE_SET_TID to 0 and 0x0
# Invalid argument - Failed to create new process
# [402] clone3() with CLONE_SET_TID 0 says: -22 - expected -22
ok 3 invalid size, 0 TID with 65 TIDs and flags 0x0
# [402] Trying clone3() with CLONE_SET_TID to 0 and 0x0
# Invalid argument - Failed to create new process
# [402] clone3() with CLONE_SET_TID 0 says: -22 - expected -22
ok 4 invalid size, 0 TID with 1344 TIDs and flags 0x0
# [402] Trying clone3() with CLONE_SET_TID to 0 and 0x0
# Invalid argument - Failed to create new process
# [402] clone3() with CLONE_SET_TID 0 says: -22 - expected -22
ok 5 invalid size, 0 TID with 31 TIDs and flags 0x0
# [402] Trying clone3() with CLONE_SET_TID to -1 and 0x0
# Invalid argument - Failed to create new process
# [402] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 6 invalid size, TID all 1s with 33 TIDs and flags 0x0
# [402] Trying clone3() with CLONE_SET_TID to -1 and 0x0
# Invalid argument - Failed to create new process
# [402] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 7 invalid size, TID all 1s with 64 TIDs and flags 0x0
# [402] Trying clone3() with CLONE_SET_TID to -1 and 0x0
# Invalid argument - Failed to create new process
# [402] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 8 invalid size, TID all 1s with 65 TIDs and flags 0x0
# [402] Trying clone3() with CLONE_SET_TID to -1 and 0x0
# Invalid argument - Failed to create new process
# [402] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 9 invalid size, TID all 1s with 1344 TIDs and flags 0x0
# [402] Trying clone3() with CLONE_SET_TID to -1 and 0x0
# Invalid argument - Failed to create new process
# [402] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 10 invalid size, TID all 1s with 31 TIDs and flags 0x0
# [402] Trying clone3() with CLONE_SET_TID to 0 and 0x0
# Invalid argument - Failed to create new process
# [402] clone3() with CLONE_SET_TID 0 says: -22 - expected -22
ok 11 valid size, 0 TID with 1 TIDs and flags 0x0
# [402] Trying clone3() with CLONE_SET_TID to -1 and 0x0
# Invalid argument - Failed to create new process
# [402] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 12 valid size, -1 TID with 1 TIDs and flags 0x0
# [402] Trying clone3() with CLONE_SET_TID to -1 and 0x0
# Invalid argument - Failed to create new process
# [402] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 13 2 TIDs, -1 and 0 with 2 TIDs and flags 0x0
# [402] Trying clone3() with CLONE_SET_TID to -1 and 0x20000000
# Invalid argument - Failed to create new process
# [402] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 14 valid size, -1 TID with 1 TIDs and flags 0x20000000
# [402] Trying clone3() with CLONE_SET_TID to 1 and 0x0
# File exists - Failed to create new process
# [402] clone3() with CLONE_SET_TID 1 says: -17 - expected -17
ok 15 duplicate PID 1 with 1 TIDs and flags 0x0
# [402] Trying clone3() with CLONE_SET_TID to 1 and 0x20000000
# I am the parent (402). My child's pid is 403
# I am the child, my PID is 1 (expected 1)
# [402] clone3() with CLONE_SET_TID 1 says: 0 - expected 0
ok 16 duplicate PID 1 with 1 TIDs and flags 0x20000000
# [402] Trying clone3() with CLONE_SET_TID to 32768 and 0x0
# Invalid argument - Failed to create new process
# [402] clone3() with CLONE_SET_TID 32768 says: -22 - expected -22
ok 17 set TID to maximum with 1 TIDs and flags 0x0
# [402] Trying clone3() with CLONE_SET_TID to 32768 and 0x20000000
# Invalid argument - Failed to create new process
# [402] 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 404
# [402] Trying clone3() with CLONE_SET_TID to 404 and 0x0
# I am the parent (402). My child's pid is 404
# I am the child, my PID is 404 (expected 404)
# [402] clone3() with CLONE_SET_TID 404 says: 0 - expected 0
ok 19 reallocate child TID with 1 TIDs and flags 0x0
# [402] Trying clone3() with CLONE_SET_TID to 404 and 0x20000000
# Invalid argument - Failed to create new process
# [402] clone3() with CLONE_SET_TID 404 says: -22 - expected -22
ok 20 duplicate child TID with 1 TIDs and flags 0x20000000
# [402] Trying clone3() with CLONE_SET_TID to 1 and 0x20000000
# I am the parent (402). My child's pid is 404
# I am the child, my PID is 1 (expected 1)
# [402] 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
# [402] Trying clone3() with CLONE_SET_TID to 404 and 0x0
# Invalid argument - Failed to create new process
# [402] clone3() with CLONE_SET_TID 404 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
# [402] 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 404, 42, 1
# Have PIDs in namespaces: 404, 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
# [399] Trying clone3() with CLONE_SET_TID to 0 and 0x0
# Invalid argument - Failed to create new process
# [399] clone3() with CLONE_SET_TID 0 says: -22 - expected -22
ok 1 invalid size, 0 TID with 33 TIDs and flags 0x0
# [399] Trying clone3() with CLONE_SET_TID to 0 and 0x0
# Invalid argument - Failed to create new process
# [399] clone3() with CLONE_SET_TID 0 says: -22 - expected -22
ok 2 invalid size, 0 TID with 64 TIDs and flags 0x0
# [399] Trying clone3() with CLONE_SET_TID to 0 and 0x0
# Invalid argument - Failed to create new process
# [399] clone3() with CLONE_SET_TID 0 says: -22 - expected -22
ok 3 invalid size, 0 TID with 65 TIDs and flags 0x0
# [399] Trying clone3() with CLONE_SET_TID to 0 and 0x0
# Invalid argument - Failed to create new process
# [399] clone3() with CLONE_SET_TID 0 says: -22 - expected -22
ok 4 invalid size, 0 TID with 1344 TIDs and flags 0x0
# [399] Trying clone3() with CLONE_SET_TID to 0 and 0x0
# Invalid argument - Failed to create new process
# [399] clone3() with CLONE_SET_TID 0 says: -22 - expected -22
ok 5 invalid size, 0 TID with 31 TIDs and flags 0x0
# [399] Trying clone3() with CLONE_SET_TID to -1 and 0x0
# Invalid argument - Failed to create new process
# [399] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 6 invalid size, TID all 1s with 33 TIDs and flags 0x0
# [399] Trying clone3() with CLONE_SET_TID to -1 and 0x0
# Invalid argument - Failed to create new process
# [399] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 7 invalid size, TID all 1s with 64 TIDs and flags 0x0
# [399] Trying clone3() with CLONE_SET_TID to -1 and 0x0
# Invalid argument - Failed to create new process
# [399] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 8 invalid size, TID all 1s with 65 TIDs and flags 0x0
# [399] Trying clone3() with CLONE_SET_TID to -1 and 0x0
# Invalid argument - Failed to create new process
# [399] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 9 invalid size, TID all 1s with 1344 TIDs and flags 0x0
# [399] Trying clone3() with CLONE_SET_TID to -1 and 0x0
# Invalid argument - Failed to create new process
# [399] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 10 invalid size, TID all 1s with 31 TIDs and flags 0x0
# [399] Trying clone3() with CLONE_SET_TID to 0 and 0x0
# Invalid argument - Failed to create new process
# [399] clone3() with CLONE_SET_TID 0 says: -22 - expected -22
ok 11 valid size, 0 TID with 1 TIDs and flags 0x0
# [399] Trying clone3() with CLONE_SET_TID to -1 and 0x0
# Invalid argument - Failed to create new process
# [399] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 12 valid size, -1 TID with 1 TIDs and flags 0x0
# [399] Trying clone3() with CLONE_SET_TID to -1 and 0x0
# Invalid argument - Failed to create new process
# [399] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 13 2 TIDs, -1 and 0 with 2 TIDs and flags 0x0
# [399] Trying clone3() with CLONE_SET_TID to -1 and 0x20000000
# Invalid argument - Failed to create new process
# [399] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 14 valid size, -1 TID with 1 TIDs and flags 0x20000000
# [399] Trying clone3() with CLONE_SET_TID to 1 and 0x0
# File exists - Failed to create new process
# [399] clone3() with CLONE_SET_TID 1 says: -17 - expected -17
ok 15 duplicate PID 1 with 1 TIDs and flags 0x0
# [399] Trying clone3() with CLONE_SET_TID to 1 and 0x20000000
# I am the parent (399). My child's pid is 400
# I am the child, my PID is 1 (expected 1)
# [399] clone3() with CLONE_SET_TID 1 says: 0 - expected 0
ok 16 duplicate PID 1 with 1 TIDs and flags 0x20000000
# [399] Trying clone3() with CLONE_SET_TID to 32768 and 0x0
# Invalid argument - Failed to create new process
# [399] clone3() with CLONE_SET_TID 32768 says: -22 - expected -22
ok 17 set TID to maximum with 1 TIDs and flags 0x0
# [399] Trying clone3() with CLONE_SET_TID to 32768 and 0x20000000
# Invalid argument - Failed to create new process
# [399] 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 401
# [399] Trying clone3() with CLONE_SET_TID to 401 and 0x0
# I am the parent (399). My child's pid is 401
# I am the child, my PID is 401 (expected 401)
# [399] clone3() with CLONE_SET_TID 401 says: 0 - expected 0
ok 19 reallocate child TID with 1 TIDs and flags 0x0
# [399] Trying clone3() with CLONE_SET_TID to 401 and 0x20000000
# Invalid argument - Failed to create new process
# [399] clone3() with CLONE_SET_TID 401 says: -22 - expected -22
ok 20 duplicate child TID with 1 TIDs and flags 0x20000000
# [399] Trying clone3() with CLONE_SET_TID to 1 and 0x20000000
# I am the parent (399). My child's pid is 401
# I am the child, my PID is 1 (expected 1)
# [399] 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
# [399] Trying clone3() with CLONE_SET_TID to 401 and 0x0
# Invalid argument - Failed to create new process
# [399] clone3() with CLONE_SET_TID 401 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
# [399] 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 401, 42, 1
# Have PIDs in namespaces: 401, 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
# [868] Trying clone3() with CLONE_SET_TID to 0 and 0x0
# Invalid argument - Failed to create new process
# [868] clone3() with CLONE_SET_TID 0 says: -22 - expected -22
ok 1 invalid size, 0 TID with 33 TIDs and flags 0x0
# [868] Trying clone3() with CLONE_SET_TID to 0 and 0x0
# Invalid argument - Failed to create new process
# [868] clone3() with CLONE_SET_TID 0 says: -22 - expected -22
ok 2 invalid size, 0 TID with 64 TIDs and flags 0x0
# [868] Trying clone3() with CLONE_SET_TID to 0 and 0x0
# Invalid argument - Failed to create new process
# [868] clone3() with CLONE_SET_TID 0 says: -22 - expected -22
ok 3 invalid size, 0 TID with 65 TIDs and flags 0x0
# [868] Trying clone3() with CLONE_SET_TID to 0 and 0x0
# Invalid argument - Failed to create new process
# [868] clone3() with CLONE_SET_TID 0 says: -22 - expected -22
ok 4 invalid size, 0 TID with 1344 TIDs and flags 0x0
# [868] Trying clone3() with CLONE_SET_TID to 0 and 0x0
# Invalid argument - Failed to create new process
# [868] clone3() with CLONE_SET_TID 0 says: -22 - expected -22
ok 5 invalid size, 0 TID with 31 TIDs and flags 0x0
# [868] Trying clone3() with CLONE_SET_TID to -1 and 0x0
# Invalid argument - Failed to create new process
# [868] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 6 invalid size, TID all 1s with 33 TIDs and flags 0x0
# [868] Trying clone3() with CLONE_SET_TID to -1 and 0x0
# Invalid argument - Failed to create new process
# [868] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 7 invalid size, TID all 1s with 64 TIDs and flags 0x0
# [868] Trying clone3() with CLONE_SET_TID to -1 and 0x0
# Invalid argument - Failed to create new process
# [868] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 8 invalid size, TID all 1s with 65 TIDs and flags 0x0
# [868] Trying clone3() with CLONE_SET_TID to -1 and 0x0
# Invalid argument - Failed to create new process
# [868] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 9 invalid size, TID all 1s with 1344 TIDs and flags 0x0
# [868] Trying clone3() with CLONE_SET_TID to -1 and 0x0
# Invalid argument - Failed to create new process
# [868] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 10 invalid size, TID all 1s with 31 TIDs and flags 0x0
# [868] Trying clone3() with CLONE_SET_TID to 0 and 0x0
# Invalid argument - Failed to create new process
# [868] clone3() with CLONE_SET_TID 0 says: -22 - expected -22
ok 11 valid size, 0 TID with 1 TIDs and flags 0x0
# [868] Trying clone3() with CLONE_SET_TID to -1 and 0x0
# Invalid argument - Failed to create new process
# [868] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 12 valid size, -1 TID with 1 TIDs and flags 0x0
# [868] Trying clone3() with CLONE_SET_TID to -1 and 0x0
# Invalid argument - Failed to create new process
# [868] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 13 2 TIDs, -1 and 0 with 2 TIDs and flags 0x0
# [868] Trying clone3() with CLONE_SET_TID to -1 and 0x20000000
# Invalid argument - Failed to create new process
# [868] clone3() with CLONE_SET_TID -1 says: -22 - expected -22
ok 14 valid size, -1 TID with 1 TIDs and flags 0x20000000
# [868] Trying clone3() with CLONE_SET_TID to 1 and 0x0
# File exists - Failed to create new process
# [868] clone3() with CLONE_SET_TID 1 says: -17 - expected -17
ok 15 duplicate PID 1 with 1 TIDs and flags 0x0
# [868] Trying clone3() with CLONE_SET_TID to 1 and 0x20000000
# I am the parent (868). My child's pid is 869
# I am the child, my PID is 1 (expected 1)
# [868] clone3() with CLONE_SET_TID 1 says: 0 - expected 0
ok 16 duplicate PID 1 with 1 TIDs and flags 0x20000000
# [868] Trying clone3() with CLONE_SET_TID to 32768 and 0x0
# I[   55.036102] <LAVA_SIGNAL_TESTCASE TEST_CASE_ID=clone3_clone3_clear_sighand RESULT=fail>
nvalid 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