KERNEL SELFTESTS: linux_headers_dir is /usr/src/linux-headers-x86_64-rhel-9.4-kselftests-0b67d4b724b4afed2690c21bef418b8a803c5be2 2025-09-27 02:09:09 sed -i s/default_timeout=45/default_timeout=300/ kselftest/runner.sh 2025-09-27 02:09:09 make -j36 TARGETS=clone3 run_tests CC clone3_clear_sighand CC clone3 CC clone3_set_tid CC clone3_cap_checkpoint_restore TAP version 13 1..4 # timeout set to 300 # selftests: clone3: clone3 # TAP version 13 # 1..24 # # clone3() syscall supported # # map_shadow_stack() not supported # # Running test 'simple clone3()' # # [2448] Trying clone3() with flags 0 (size 0) # # I am the parent (2448). My child's pid is 2449 # # I am the child, my PID is 2449 # # [2448] clone3() with flags says: 0 expected 0 # ok 1 simple clone3() # # Running test 'clone3() in a new PID_NS' # # [2448] Trying clone3() with flags 0x20000000 (size 0) # # I am the parent (2448). My child's pid is 2450 # # I am the child, my PID is 1 # # [2448] clone3() with flags says: 0 expected 0 # ok 2 clone3() in a new PID_NS # # Running test 'CLONE_ARGS_SIZE_VER0' # # [2448] Trying clone3() with flags 0 (size 64) # # I am the parent (2448). My child's pid is 2451 # # I am the child, my PID is 2451 # # [2448] clone3() with flags says: 0 expected 0 # ok 3 CLONE_ARGS_SIZE_VER0 # # Running test 'CLONE_ARGS_SIZE_VER0 - 8' # # [2448] Trying clone3() with flags 0 (size 56) # # Invalid argument - Failed to create new process # # [2448] clone3() with flags says: -22 expected -22 # ok 4 CLONE_ARGS_SIZE_VER0 - 8 # # Running test 'sizeof(struct clone_args) + 8' # # [2448] Trying clone3() with flags 0 (size 104) # # I am the parent (2448). My child's pid is 2452 # # I am the child, my PID is 2452 # # [2448] clone3() with flags says: 0 expected 0 # ok 5 sizeof(struct clone_args) + 8 # # Running test 'exit_signal with highest 32 bits non-zero' # # [2448] Trying clone3() with flags 0 (size 0) # # Invalid argument - Failed to create new process # # [2448] clone3() with flags says: -22 expected -22 # ok 6 exit_signal with highest 32 bits non-zero # # Running test 'negative 32-bit exit_signal' # # [2448] Trying clone3() with flags 0 (size 0) # # Invalid argument - Failed to create new process # # [2448] clone3() with flags says: -22 expected -22 # ok 7 negative 32-bit exit_signal # # Running test 'exit_signal not fitting into CSIGNAL mask' # # [2448] Trying clone3() with flags 0 (size 0) # # Invalid argument - Failed to create new process # # [2448] clone3() with flags says: -22 expected -22 # ok 8 exit_signal not fitting into CSIGNAL mask # # Running test 'NSIG < exit_signal < CSIG' # # [2448] Trying clone3() with flags 0 (size 0) # # Invalid argument - Failed to create new process # # [2448] clone3() with flags says: -22 expected -22 # ok 9 NSIG < exit_signal < CSIG # # Running test 'Arguments sizeof(struct clone_args) + 8' # # [2448] Trying clone3() with flags 0 (size 104) # # I am the parent (2448). My child's pid is 2453 # # I am the child, my PID is 2453 # # [2448] clone3() with flags says: 0 expected 0 # ok 10 Arguments sizeof(struct clone_args) + 8 # # Running test 'Arguments sizeof(struct clone_args) + 16' # # [2448] Trying clone3() with flags 0 (size 112) # # Argument list too long - Failed to create new process # # [2448] clone3() with flags says: -7 expected -7 # ok 11 Arguments sizeof(struct clone_args) + 16 # # Running test 'Arguments sizeof(struct clone_arg) * 2' # # [2448] Trying clone3() with flags 0 (size 112) # # Argument list too long - Failed to create new process # # [2448] clone3() with flags says: -7 expected -7 # ok 12 Arguments sizeof(struct clone_arg) * 2 # # Running test 'Arguments > page size' # # [2448] Trying clone3() with flags 0 (size 4104) # # Argument list too long - Failed to create new process # # [2448] clone3() with flags says: -7 expected -7 # ok 13 Arguments > page size # # Running test 'CLONE_ARGS_SIZE_VER0 in a new PID NS' # # [2448] Trying clone3() with flags 0x20000000 (size 64) # # I am the parent (2448). My child's pid is 2454 # # I am the child, my PID is 1 # # [2448] clone3() with flags says: 0 expected 0 # ok 14 CLONE_ARGS_SIZE_VER0 in a new PID NS # # Running test 'CLONE_ARGS_SIZE_VER0 - 8 in a new PID NS' # # [2448] Trying clone3() with flags 0x20000000 (size 56) # # Invalid argument - Failed to create new process # # [2448] clone3() with flags says: -22 expected -22 # ok 15 CLONE_ARGS_SIZE_VER0 - 8 in a new PID NS # # Running test 'sizeof(struct clone_args) + 8 in a new PID NS' # # [2448] Trying clone3() with flags 0x20000000 (size 104) # # I am the parent (2448). My child's pid is 2455 # # I am the child, my PID is 1 # # [2448] clone3() with flags says: 0 expected 0 # ok 16 sizeof(struct clone_args) + 8 in a new PID NS # # Running test 'Arguments > page size in a new PID NS' # # [2448] Trying clone3() with flags 0x20000000 (size 4104) # # Argument list too long - Failed to create new process # # [2448] clone3() with flags says: -7 expected -7 # ok 17 Arguments > page size in a new PID NS # # Running test 'New time NS' # # [2448] Trying clone3() with flags 0x80 (size 0) # # I am the parent (2448). My child's pid is 2456 # # I am the child, my PID is 2456 # # [2448] clone3() with flags says: 0 expected 0 # ok 18 New time NS # # Running test 'exit signal (SIGCHLD) in flags' # # [2448] Trying clone3() with flags 0x11 (size 0) # # Invalid argument - Failed to create new process # # [2448] clone3() with flags says: -22 expected -22 # ok 19 exit signal (SIGCHLD) in flags # # Shadow stack not supported # ok 20 # SKIP Shadow stack on system with shadow stack # # Shadow stack not supported # ok 21 # SKIP Shadow stack with misaligned address # # Shadow stack not supported # ok 22 # SKIP Shadow stack with normal memory # # Shadow stack not supported # ok 23 # SKIP Shadow stack with no token # # Running test 'Shadow stack on system without shadow stack' # # [2448] Trying clone3() with flags 0x100 (size 0) # # Invalid argument - Failed to create new process # # [2448] clone3() with flags says: -22 expected -14 # # [2448] Result (-22) is different than expected (-14) # not ok 24 Shadow stack on system without shadow stack # # 4 skipped test(s) detected. Consider enabling relevant config options to improve coverage. # # Totals: pass:19 fail:1 xfail:0 xpass:0 skip:4 error:0 not ok 1 selftests: clone3: clone3 # exit=1 # timeout set to 300 # selftests: clone3: clone3_clear_sighand # TAP version 13 # 1..1 # # clone3() syscall supported # ok 1 Cleared signal handlers for child process # # Totals: pass:1 fail:0 xfail:0 xpass:0 skip:0 error:0 ok 2 selftests: clone3: clone3_clear_sighand # timeout set to 300 # selftests: clone3: clone3_set_tid # TAP version 13 # 1..29 # # clone3() syscall supported # # /proc/sys/kernel/pid_max 4194304 # # [2494] Trying clone3() with CLONE_SET_TID to 0 and 0x0 # # Invalid argument - Failed to create new process # # [2494] clone3() with CLONE_SET_TID 0 says: -22 - expected -22 # ok 1 invalid size, 0 TID with 33 TIDs and flags 0x0 # # [2494] Trying clone3() with CLONE_SET_TID to 0 and 0x0 # # Invalid argument - Failed to create new process # # [2494] clone3() with CLONE_SET_TID 0 says: -22 - expected -22 # ok 2 invalid size, 0 TID with 64 TIDs and flags 0x0 # # [2494] Trying clone3() with CLONE_SET_TID to 0 and 0x0 # # Invalid argument - Failed to create new process # # [2494] clone3() with CLONE_SET_TID 0 says: -22 - expected -22 # ok 3 invalid size, 0 TID with 65 TIDs and flags 0x0 # # [2494] Trying clone3() with CLONE_SET_TID to 0 and 0x0 # # Invalid argument - Failed to create new process # # [2494] clone3() with CLONE_SET_TID 0 says: -22 - expected -22 # ok 4 invalid size, 0 TID with 1344 TIDs and flags 0x0 # # [2494] Trying clone3() with CLONE_SET_TID to 0 and 0x0 # # Invalid argument - Failed to create new process # # [2494] clone3() with CLONE_SET_TID 0 says: -22 - expected -22 # ok 5 invalid size, 0 TID with 31 TIDs and flags 0x0 # # [2494] Trying clone3() with CLONE_SET_TID to -1 and 0x0 # # Invalid argument - Failed to create new process # # [2494] clone3() with CLONE_SET_TID -1 says: -22 - expected -22 # ok 6 invalid size, TID all 1s with 33 TIDs and flags 0x0 # # [2494] Trying clone3() with CLONE_SET_TID to -1 and 0x0 # # Invalid argument - Failed to create new process # # [2494] clone3() with CLONE_SET_TID -1 says: -22 - expected -22 # ok 7 invalid size, TID all 1s with 64 TIDs and flags 0x0 # # [2494] Trying clone3() with CLONE_SET_TID to -1 and 0x0 # # Invalid argument - Failed to create new process # # [2494] clone3() with CLONE_SET_TID -1 says: -22 - expected -22 # ok 8 invalid size, TID all 1s with 65 TIDs and flags 0x0 # # [2494] Trying clone3() with CLONE_SET_TID to -1 and 0x0 # # Invalid argument - Failed to create new process # # [2494] clone3() with CLONE_SET_TID -1 says: -22 - expected -22 # ok 9 invalid size, TID all 1s with 1344 TIDs and flags 0x0 # # [2494] Trying clone3() with CLONE_SET_TID to -1 and 0x0 # # Invalid argument - Failed to create new process # # [2494] clone3() with CLONE_SET_TID -1 says: -22 - expected -22 # ok 10 invalid size, TID all 1s with 31 TIDs and flags 0x0 # # [2494] Trying clone3() with CLONE_SET_TID to 0 and 0x0 # # Invalid argument - Failed to create new process # # [2494] clone3() with CLONE_SET_TID 0 says: -22 - expected -22 # ok 11 valid size, 0 TID with 1 TIDs and flags 0x0 # # [2494] Trying clone3() with CLONE_SET_TID to -1 and 0x0 # # Invalid argument - Failed to create new process # # [2494] clone3() with CLONE_SET_TID -1 says: -22 - expected -22 # ok 12 valid size, -1 TID with 1 TIDs and flags 0x0 # # [2494] Trying clone3() with CLONE_SET_TID to -1 and 0x0 # # Invalid argument - Failed to create new process # # [2494] clone3() with CLONE_SET_TID -1 says: -22 - expected -22 # ok 13 2 TIDs, -1 and 0 with 2 TIDs and flags 0x0 # # [2494] Trying clone3() with CLONE_SET_TID to -1 and 0x20000000 # # Invalid argument - Failed to create new process # # [2494] clone3() with CLONE_SET_TID -1 says: -22 - expected -22 # ok 14 valid size, -1 TID with 1 TIDs and flags 0x20000000 # # [2494] Trying clone3() with CLONE_SET_TID to 1 and 0x0 # # File exists - Failed to create new process # # [2494] clone3() with CLONE_SET_TID 1 says: -17 - expected -17 # ok 15 duplicate PID 1 with 1 TIDs and flags 0x0 # # [2494] Trying clone3() with CLONE_SET_TID to 1 and 0x20000000 # # I am the parent (2494). My child's pid is 2495 # # I am the child, my PID is 1 (expected 1) # # [2494] clone3() with CLONE_SET_TID 1 says: 0 - expected 0 # ok 16 duplicate PID 1 with 1 TIDs and flags 0x20000000 # # [2494] Trying clone3() with CLONE_SET_TID to 4194304 and 0x0 # # Invalid argument - Failed to create new process # # [2494] clone3() with CLONE_SET_TID 4194304 says: -22 - expected -22 # ok 17 set TID to maximum with 1 TIDs and flags 0x0 # # [2494] Trying clone3() with CLONE_SET_TID to 4194304 and 0x20000000 # # Invalid argument - Failed to create new process # # [2494] clone3() with CLONE_SET_TID 4194304 says: -22 - expected -22 # ok 18 set TID to maximum with 1 TIDs and flags 0x20000000 # # Child has PID 2496 # # [2494] Trying clone3() with CLONE_SET_TID to 2496 and 0x0 # # I am the parent (2494). My child's pid is 2496 # # I am the child, my PID is 2496 (expected 2496) # # [2494] clone3() with CLONE_SET_TID 2496 says: 0 - expected 0 # ok 19 reallocate child TID with 1 TIDs and flags 0x0 # # [2494] Trying clone3() with CLONE_SET_TID to 2496 and 0x20000000 # # Invalid argument - Failed to create new process # # [2494] clone3() with CLONE_SET_TID 2496 says: -22 - expected -22 # ok 20 duplicate child TID with 1 TIDs and flags 0x20000000 # # [2494] Trying clone3() with CLONE_SET_TID to 1 and 0x20000000 # # I am the parent (2494). My child's pid is 2496 # # I am the child, my PID is 1 (expected 1) # # [2494] 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 # # [2494] Trying clone3() with CLONE_SET_TID to 2496 and 0x0 # # Invalid argument - Failed to create new process # # [2494] clone3() with CLONE_SET_TID 2496 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 # # [2494] 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 2496, 42, 1 # # Have PIDs in namespaces: 2496, 42, 1 # ok 29 PIDs in all namespaces as expected # # Totals: pass:29 fail:0 xfail:0 xpass:0 skip:0 error:0 ok 3 selftests: clone3: clone3_set_tid # timeout set to 300 # selftests: clone3: clone3_cap_checkpoint_restore # TAP version 13 # 1..1 # # Starting 1 tests from 1 test cases. # # RUN global.clone3_cap_checkpoint_restore ... # # clone3() syscall supported # # clone3_cap_checkpoint_restore.c:151:clone3_cap_checkpoint_restore:Child has PID 2518 # cap_set_proc: Operation not permitted # # clone3_cap_checkpoint_restore.c:160:clone3_cap_checkpoint_restore:Expected set_capability() (-1) == 0 (0) # # clone3_cap_checkpoint_restore.c:161:clone3_cap_checkpoint_restore:Could not set CAP_CHECKPOINT_RESTORE # # clone3_cap_checkpoint_restore: Test terminated by assertion # # FAIL global.clone3_cap_checkpoint_restore # not ok 1 global.clone3_cap_checkpoint_restore # # FAILED: 0 / 1 tests passed. # # Totals: pass:0 fail:1 xfail:0 xpass:0 skip:0 error:0 not ok 4 selftests: clone3: clone3_cap_checkpoint_restore # exit=1