[BUG] Native descriptor comparison is unavailable on CI runners #113

Open
opened 2026-10-12 23:22:11 +02:00 by erikinkinen · 13 comments
Owner

Summary

LibPosixABI native descriptor checks pass on the development host but fail on
a deployed CI runner because Linux F_DUPFD_QUERY returns EINVAL. Exsh native
controls also fail with ResourceWarnings and interruption output; its truncated
log does not establish that they have the same cause. Neither complete result
can be credited.

Reproduction

Run the original LibPosixABI workflow at
47aee96ebb3210bd58c0cc5880e73cc450d60987 on the deployed runner. Its native
controls call fcntl operation 1027 to compare a retained descriptor with its
duplicate and observe EINVAL. The development host accepts that operation and
distinguishes an independently opened pidfd for the same task. Retain Exsh
564e2b850511fe044366a7e16bc94a1b411ec500 as a related failed run pending its
actual runner probe.

Expected and actual behavior

Use a supported native comparison that distinguishes the same open file
description from a different description, or refuse unsupported prerequisites
before starting child work. An inode, PID or matching metadata cannot substitute
for that comparison. LibPosixABI observes EINVAL; the separate Exsh output
retains ResourceWarnings and interruption without a complete native failure
trace. Both failed results remain separate from the supported-host controls.

Probe F_DUPFD_QUERY and own-process KCMP_FILE on the actual runner before
selecting another mechanism. KCMP_FILE must use the same original current
process for both arguments and demonstrate both duplicate and distinct cases.
Unsupported or denied native semantics remain a refusal; do not widen runner
privileges or weaken the existing custody checks to make the tests pass.

Environment and identity

  • Components: the exact LibPosixABI and Exsh commits above.
  • Configuration: original Linux x86_64 CI host/native control jobs.
  • Guest/image: no guest was launched for this failure.
  • Route: local descriptors and the current process; no foreign process probe.
  • Last known comparison: supported development host; deployed support unproved.

Evidence and prior checks

The LibPosixABI workflow passes its Rust stages before the native
host prerequisite fails. The Exsh workflow fails its native custody
controls; its complete frame proof remains independently unfinished. Exact logs
and the original failure are retained. A local own-process KCMP_FILE probe
distinguishes genuine duplicates from fresh pidfds for the same task, but that
does not establish support under the runner's kernel and sandbox.

Tracking

Track the shared helper and both consumers together. A successful runner probe
is a prerequisite for mechanism selection, followed by independent negative
controls and the complete original workflows. Full compiler/frame admission and
the Phase 6 requirements remain separate.

## Summary LibPosixABI native descriptor checks pass on the development host but fail on a deployed CI runner because Linux F_DUPFD_QUERY returns EINVAL. Exsh native controls also fail with ResourceWarnings and interruption output; its truncated log does not establish that they have the same cause. Neither complete result can be credited. ## Reproduction Run the original LibPosixABI workflow at `47aee96ebb3210bd58c0cc5880e73cc450d60987` on the deployed runner. Its native controls call fcntl operation 1027 to compare a retained descriptor with its duplicate and observe EINVAL. The development host accepts that operation and distinguishes an independently opened pidfd for the same task. Retain Exsh `564e2b850511fe044366a7e16bc94a1b411ec500` as a related failed run pending its actual runner probe. ## Expected and actual behavior Use a supported native comparison that distinguishes the same open file description from a different description, or refuse unsupported prerequisites before starting child work. An inode, PID or matching metadata cannot substitute for that comparison. LibPosixABI observes EINVAL; the separate Exsh output retains ResourceWarnings and interruption without a complete native failure trace. Both failed results remain separate from the supported-host controls. Probe F_DUPFD_QUERY and own-process KCMP_FILE on the actual runner before selecting another mechanism. KCMP_FILE must use the same original current process for both arguments and demonstrate both duplicate and distinct cases. Unsupported or denied native semantics remain a refusal; do not widen runner privileges or weaken the existing custody checks to make the tests pass. ## Environment and identity - Components: the exact LibPosixABI and Exsh commits above. - Configuration: original Linux x86_64 CI host/native control jobs. - Guest/image: no guest was launched for this failure. - Route: local descriptors and the current process; no foreign process probe. - Last known comparison: supported development host; deployed support unproved. ## Evidence and prior checks The [LibPosixABI workflow][abi-ci] passes its Rust stages before the native host prerequisite fails. The [Exsh workflow][shell-ci] fails its native custody controls; its complete frame proof remains independently unfinished. Exact logs and the original failure are retained. A local own-process KCMP_FILE probe distinguishes genuine duplicates from fresh pidfds for the same task, but that does not establish support under the runner's kernel and sandbox. ## Tracking Track the shared helper and both consumers together. A successful runner probe is a prerequisite for mechanism selection, followed by independent negative controls and the complete original workflows. Full compiler/frame admission and the [Phase 6 requirements][phase] remain separate. [abi-ci]: https://git.erikinkinen.fi/erix/lib-posixabi/actions [shell-ci]: https://git.erikinkinen.fi/erix/exsh/actions [phase]: https://git.erikinkinen.fi/erix/integration/issues/65
Author
Owner

The owner now checks duplicate and independent self descriptors before starting a child at 4e5ffa12345626e0df186f4175d5f272d5c7803a. Unsupported comparisons acquire no command child; uncertain preflight cleanup retains its original claims.

The runner probe is still waiting. No alternative backend or additional privilege has been enabled. LibCstd selects this owner at c857382164a867aee6211d6aa600b667c35e9cad; the C ABI driver has the corresponding preflight at ceb99766ecbc6e0ca23ceae285ff7d44ad8c2e5d.

The owner now checks duplicate and independent self descriptors before starting a child at `4e5ffa12345626e0df186f4175d5f272d5c7803a`. Unsupported comparisons acquire no command child; uncertain preflight cleanup retains its original claims. The runner probe is still waiting. No alternative backend or additional privilege has been enabled. LibCstd selects this owner at `c857382164a867aee6211d6aa600b667c35e9cad`; the C ABI driver has the corresponding preflight at `ceb99766ecbc6e0ca23ceae285ff7d44ad8c2e5d`.
Author
Owner

The separate diagnostic in 0e3538d has now run in the existing container. On the deployed Linux 6.8.12 runner, F_DUPFD_QUERY returns EINVAL and KCMP_FILE returns EPERM, including comparisons within the original process. Both support flags are false, and cleanup is confirmed.

This explains why the existing comparison paths cannot admit ownership on that runner. The diagnostic preserves its observations; it does not make the full CI or owner admission pass. A supported solution still needs the same original open-file-description proof.

The separate diagnostic in [0e3538d](https://git.erikinkinen.fi/erix/integration/commit/0e3538dca0e372ad10fb5cb77024c8ebc667f80a) has now run in the existing container. On the deployed Linux 6.8.12 runner, `F_DUPFD_QUERY` returns `EINVAL` and `KCMP_FILE` returns `EPERM`, including comparisons within the original process. Both support flags are false, and cleanup is confirmed. This explains why the existing comparison paths cannot admit ownership on that runner. The diagnostic preserves its observations; it does not make the full CI or owner admission pass. A supported solution still needs the same original open-file-description proof.
Author
Owner

All 74 helper references across 73 component workflows now select the signed native process helper. The current fleet has 73 failed full workflows, with the repaired owner refusing descriptor comparison before ordinary child work. The CStd jobs retain their terse first-command Errno 22 result separately from the direct native-query tracebacks.

The standalone runner diagnostic remains evidence of unsupported comparison, and grants no full-CI acceptance. Current local component results are retained where source inputs match; fresh full CI remains open. No weaker identity check or container-isolation change has been introduced.

All 74 helper references across 73 component workflows now select the signed native process helper. The current fleet has 73 failed full workflows, with the repaired owner refusing descriptor comparison before ordinary child work. The CStd jobs retain their terse first-command Errno 22 result separately from the direct native-query tracebacks. The standalone runner diagnostic remains evidence of unsupported comparison, and grants no full-CI acceptance. Current local component results are retained where source inputs match; fresh full CI remains open. No weaker identity check or container-isolation change has been introduced.
Author
Owner

The full push run for d5e877cf fails during native admission: the Rust job records error 22, and image-profile preflight now reports the original OSError; errno=22. Its Markdown job passes. The earlier profile message did not retain an errno, so its cause remains recorded as unknown. The current runner prerequisite remains open.

The full push run for [d5e877cf](https://git.erikinkinen.fi/erix/integration/commit/d5e877cf878f61cf8d07438699b1bd4a9b483789) fails during native admission: the Rust job records error 22, and image-profile preflight now reports the original `OSError; errno=22`. Its Markdown job passes. The earlier profile message did not retain an errno, so its cause remains recorded as unknown. The current runner prerequisite remains open.
Author
Owner

The new run on c9f2b52b still fails native descriptor admission with errno22 in the Rust job and image preflight in the Integration job. Both reach the runner prerequisite tracked here; the Markdown job passes.

The [new run](https://git.erikinkinen.fi/erix/integration/actions/runs/2553) on [c9f2b52b](https://git.erikinkinen.fi/erix/integration/commit/c9f2b52b149bd056856b2594e497595c8b49365e) still fails native descriptor admission with errno22 in the Rust job and image preflight in the Integration job. Both reach the runner prerequisite tracked here; the Markdown job passes.
Author
Owner

Exact Integration run 2562 checks out 94344102689818a9d0099f6af66e8c41ccb05bdd. Rust stops at native descriptor admission in cargo_source_metadata.py:367 with errno22 before compilation. Integration passes all twenty pure source-size tests, then both native syntax-runner tests stop at the same admission before their child commands. Later image and VM stages do not run. Markdown passes all 44 files; all three job logs are available.

The previous run 2559 at 1f6b576f is retained separately. The Metadata helper is unchanged; the runner prerequisite remains unresolved.

Exact Integration [run 2562](https://git.erikinkinen.fi/erix/integration/actions/runs/2562) checks out `94344102689818a9d0099f6af66e8c41ccb05bdd`. Rust stops at native descriptor admission in `cargo_source_metadata.py:367` with errno22 before compilation. Integration passes all twenty pure source-size tests, then both native syntax-runner tests stop at the same admission before their child commands. Later image and VM stages do not run. Markdown passes all 44 files; all three job logs are available. The previous [run 2559](https://git.erikinkinen.fi/erix/integration/actions/runs/2559) at `1f6b576f` is retained separately. The Metadata helper is unchanged; the runner prerequisite remains unresolved.
Author
Owner

Current Integration push 2568 at feaea0bed0bc97be79d952920dae8c5c1cc5b990 still refuses F_DUPFD_QUERY with EINVAL before Rust compilation and syntax-runner child commands. Its read-only probe also reports KCMP_FILE unavailable with EPERM. Later image/VM stages do not run. The source and command checks stay intact; this remains a runner prerequisite.

[Current Integration push 2568](https://git.erikinkinen.fi/erix/integration/actions/runs/2568) at `feaea0bed0bc97be79d952920dae8c5c1cc5b990` still refuses F_DUPFD_QUERY with EINVAL before Rust compilation and syntax-runner child commands. Its read-only probe also reports KCMP_FILE unavailable with EPERM. Later image/VM stages do not run. The source and command checks stay intact; this remains a runner prerequisite.
Author
Owner

The current Integration run and Cstd run still refuse descriptor admission with errno 22 before compilation or assembly. Integration passes its 20 pure size controls; the later build and VM stages do not run. No runner change or unchanged retry has been made.

The current [Integration run](https://git.erikinkinen.fi/erix/integration/actions/runs/2574) and [Cstd run](https://git.erikinkinen.fi/erix/lib-cstd/actions/runs/50) still refuse descriptor admission with errno 22 before compilation or assembly. Integration passes its 20 pure size controls; the later build and VM stages do not run. No runner change or unchanged retry has been made.
Author
Owner

The original pushes for Integration a95990ca and Cstd b15c0452 still stop at descriptor admission with errno22 before compilation. Integration passes its 20 source-size controls, then both syntax-runner controls fail admission; Cstd passes nine archive controls before assembly admission fails. Markdown passes in both repositories. All six exact-head job logs are available. Later compiler, native, image and VM gates remain unrun; no rerun or guard change was made.

The original pushes for [Integration a95990ca](https://git.erikinkinen.fi/erix/integration/actions/runs/2580) and [Cstd b15c0452](https://git.erikinkinen.fi/erix/lib-cstd/actions/runs/54) still stop at descriptor admission with errno22 before compilation. Integration passes its 20 source-size controls, then both syntax-runner controls fail admission; Cstd passes nine archive controls before assembly admission fails. Markdown passes in both repositories. All six exact-head job logs are available. Later compiler, native, image and VM gates remain unrun; no rerun or guard change was made.
Author
Owner

Original Integration 4ee33eb8 push CI still refuses F_DUPFD_QUERY with errno 22 before compilation; later profiler, image and VM gates remain unrun. It passes 20 source-size controls and 44 Markdown files, while both syntax-runner controls fail at admission. Docs e66ff449 completes its 45 tests, 65 Markdown files and 3,336-page manual with zero final diagnostics. Cstd and LibPosixABI retain their original pre-compilation refusals. No runner change or unchanged retry has been made.

Original [Integration 4ee33eb8 push CI](https://git.erikinkinen.fi/erix/integration/actions/runs/2589) still refuses F_DUPFD_QUERY with errno 22 before compilation; later profiler, image and VM gates remain unrun. It passes 20 source-size controls and 44 Markdown files, while both syntax-runner controls fail at admission. [Docs e66ff449](https://git.erikinkinen.fi/erix/docs/actions/runs/1605) completes its 45 tests, 65 Markdown files and 3,336-page manual with zero final diagnostics. Cstd and LibPosixABI retain their original pre-compilation refusals. No runner change or unchanged retry has been made.
Author
Owner

Original Integration 50b12fcc push CI still stops at descriptor-admission fcntl with errno 22; compiler, profiler, image and VM gates are unrun. It passes 20 source-size controls and 44 Markdown files, while both syntax-runner controls fail at admission. Docs 3fb1be80 passes 66 Markdown files but its manual job stops after the exact Python-helper checkout with “Invalid argument”. That log identifies neither the native call site nor errno; the documentation units and manual build are unrun. All five reached job logs are available. No runner change or unchanged retry has been made.

Original [Integration 50b12fcc push CI](https://git.erikinkinen.fi/erix/integration/actions/runs/2592) still stops at descriptor-admission fcntl with errno 22; compiler, profiler, image and VM gates are unrun. It passes 20 source-size controls and 44 Markdown files, while both syntax-runner controls fail at admission. [Docs 3fb1be80](https://git.erikinkinen.fi/erix/docs/actions/runs/1607) passes 66 Markdown files but its manual job stops after the exact Python-helper checkout with “Invalid argument”. That log identifies neither the native call site nor errno; the documentation units and manual build are unrun. All five reached job logs are available. No runner change or unchanged retry has been made.
Author
Owner

The runner diagnostic now runs on Linux 6.14.0-1-pve and passes the required comparison: a real duplicate returns 1, while an independently opened descriptor for the same task returns 0. Both have errno 0 and cleanup is confirmed. KCMP still returns EPERM; no fallback or additional privilege is enabled.

The 75 failed component workflows are being dispatched once at their current commits on the repaired environment. Their original failed runs remain retained. Successful owner admission and the later build, unit, image and VM stages will be assessed from these new runs.

The [runner diagnostic](https://git.erikinkinen.fi/erix/integration/actions/runs/2595) now runs on Linux 6.14.0-1-pve and passes the required comparison: a real duplicate returns 1, while an independently opened descriptor for the same task returns 0. Both have errno 0 and cleanup is confirmed. KCMP still returns EPERM; no fallback or additional privilege is enabled. The 75 failed component workflows are being dispatched once at their current commits on the repaired environment. Their original failed runs remain retained. Successful owner admission and the later build, unit, image and VM stages will be assessed from these new runs.
Author
Owner

The actual runner diagnostic now observes Linux 6.14.0-1-pve: a genuine duplicate compares equal, an independently opened descriptor for the same task compares different, and cleanup completes. KCMP_FILE remains denied; no privilege or fallback was added. Current CI passes in 71 repositories. Remaining failures are the reserved-signal admission, parser fixture inputs, AES arithmetic, rootd’s original helper-fetch timeout and Exsh’s unfinished cleanup-frame gate. Original failed runs remain retained.

The actual [runner diagnostic](https://git.erikinkinen.fi/erix/integration/actions/runs/2595) now observes Linux 6.14.0-1-pve: a genuine duplicate compares equal, an independently opened descriptor for the same task compares different, and cleanup completes. KCMP_FILE remains denied; no privilege or fallback was added. Current CI passes in 71 repositories. Remaining failures are the [reserved-signal admission](https://git.erikinkinen.fi/erix/integration/issues/118), [parser fixture inputs](https://git.erikinkinen.fi/erix/integration/issues/119), [AES arithmetic](https://git.erikinkinen.fi/erix/lib-aes/issues/3), rootd’s original helper-fetch timeout and Exsh’s unfinished cleanup-frame gate. Original failed runs remain retained.
erikinkinen added this to the Alpha 1 milestone 2026-10-30 09:39:16 +01:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
erix/integration#113
No description provided.