LTP TIMEOUT-class audit
2026-11-07 · P0-class rule: a TIMEOUT is a "cannot-run" verdict, prioritized over optimization work · source doc docs/test/ltp-timeout-audit.md
Scope: every 13 TIMEOUT + 1 WEDGE row of the r27 census (1,869-case list, main@e23d3c3f, x86_64+KVM). Method: each row re-run one-test-per-boot on current main (
scripts/test/ltpscan/scan-x86_64.py --chunk 1; the in-guest runner gives each test a 30 s budget, then pid-1 SIGTERMs it and records rc=143), with the LTP 20240524 sources open beside the serials.§1Result: where the 14 rows belong
| Class | Rows | Notes |
|---|---|---|
| Kernel defect (fixed) | 1 | ptrace06's lost exec-trap stop + errno mapping for bad PEEK/POKE/REGS/SIGINFO parameters (f558181b) |
| Test/list defect | 11 | 9 by-design resident helpers + shmat1 (the 64-bit signal-recovery block is excluded by #ifdef __i386__) + mmap1 (274,152 verify iterations pass inside the budget, then the LTP-internal timeout TBROKs it) |
| Known lost-wake family | 1 | openfile — owned by the lost-wake producer hunt (produced on the TraceRing::push side) |
| Slow, not hung | 1 | ht_affinity — zero TFAIL, roughly one affinity mask per 30 s budget; needs a timing dig |
After the fix, the ptrace family 01/02/03/05/06/11 all PASS one-per-boot.
§2Row-by-row disposition
| Case | Class on main | Verdict | Evidence |
|---|---|---|---|
| ptrace06 | TIMEOUT | fixed → PASS | the tracer blocked in its first wait4: a TRACEME'd vfork+exec child never took the exec SIGTRAP stop. The fix queues the trap at the exec commit point; do_signal's traced arm converts it to the tracer-reported stop. Plus EIO errno mapping for bad parameters |
| shmat1 | CRASH 5/5 | test defect on x86_64 | the SIGSEGV recovery block is #ifdef __i386__; the 64-bit body is fprintf("caught signal %d -- exiting"); exit(-1). The test's designed shm-detach race fires within ~200 iterations on our timing; all 5 crashes fault at exactly map_address (kernel USEGV-FOR forensics). The kernel side is verified correct by probes: thread-directed fault delivery, SA_SIGINFO handler replacement and siglongjmp recovery all work. The test also runs alarm(exec_time*3600) = 24 h by design |
| openfile | TIMEOUT | known lost-wake family | main parks in futex (join) after "Creating Reading Threads"; the reader threads are gone. STRAGGLER-RESCUE fired in-boot and recovered one lost mid-exit thread, but the join's wake was already lost. Owned by the lost-wake producer hunt |
| ht_affinity | TIMEOUT | slow progress, not a wedge | zero TFAIL; ~one affinity mask per 30 s budget (loop = cpu_count masks × child spawn + sleep(1) sync, twice) |
| mmap1 | FAIL(int) | slow by design | 274,152 verify iterations PASS inside the 30 s budget, then the LTP-internal timeout TBROKs it (the r26 census already documents this budget/racy class) |
| cgroup_fj_proc | TIMEOUT | by-design helper | do {...} while (test_switch) — runs until its parent suite signals it |
| cgroup_regression_fork_processes | TIMEOUT | by-design helper | while (1) fork loop |
| cpuctl_fj_cpu-hog | TIMEOUT | by-design helper | sigsuspend waiting for the parent's SIGUSR1 |
| fork_exec_loop | TIMEOUT | by-design helper | while (1) fork+exec loop (the freezer suite's load generator) |
| memcg_test_2 | TIMEOUT | by-design helper | while (1) |
| memcg_test_4 | TIMEOUT | by-design helper | while (1) sleep(1) |
| pids_task2 | TIMEOUT | by-design helper | pause() |
| pthserv | TIMEOUT | by-design helper | for (;;) accept loop (a server until killed) |
| timed_forkbomb | TIMEOUT | by-design helper | reads its bomb program from stdin (the parent pipes it); standalone it blocks on scanf |
| mmap1 (WEDGE row) | — | as above | the r27 WEDGE row is the same test under chunked load |
§3Follow-ups
- Census hygiene: the 9 by-design resident helpers should carry a BY-DESIGN marker in future censuses (runner-side list or verdict post-processing) so they stop reading as kernel TIMEOUT regressions.
- The r28 census: will pick up the ptrace06 PASS and these reclassifications.
- ht_affinity: a per-step timing dig (affinity syscall + signal handshake cost).
- openfile: rides the lost-wake producer hunt; the rescue machinery bounds its damage to sub-second.