[BUG] C ABI reaper uses ambient task discovery #8

Closed
opened 2026-10-15 05:08:58 +02:00 by erikinkinen · 2 comments
Owner

Summary

The C ABI probe reaper discovers its task list through global procfs state instead of receiving an observation handle from its caller.

Reproduction

At b2b494c4, scripts/c_abi_child_custody.py, Reaper.execution calls os.listdir("/proc/self/task"). Both signal admission and teardown depend on this lookup. The driver supplies no task-observation input.

Expected and actual behavior

The caller should transfer actual procfs and task-directory handles. The driver should derive a narrow observation bound to its own task generation and namespace, retire the broad source, and pass that observation to each deadline and command reaper.

The current implementation resolves the observation source globally. Missing, foreign or retired input should refuse before native effects; an uncertain cleanup must retain the original owner.

Environment and identity

LibPosixABI b2b494c40f561c931d84e3dfe266ca67f01d99b9 on feature/posix-compat. This concerns the host probe driver’s reviewed Linux x86_64/glibc custody path.

Evidence and prior checks

Source review identifies the lookup. The repair must preserve complete native signal and callback admission, cancellation, pidfd ownership and uncertain-close handling, and keep observation descriptors out of probe children.

Tracking

Phase completion.

  • Transfer explicit observation inputs through the CLI, deadline and runner.
  • Retire the broad source and preserve original native ownership on failure.
  • Cover genuine ownership, foreign and retired inputs, callbacks, descriptor inheritance and uncertain close.
  • Update the caller contract and technical manual.
## Summary The C ABI probe reaper discovers its task list through global procfs state instead of receiving an observation handle from its caller. ## Reproduction At `b2b494c4`, `scripts/c_abi_child_custody.py`, `Reaper.execution` calls `os.listdir("/proc/self/task")`. Both signal admission and teardown depend on this lookup. The driver supplies no task-observation input. ## Expected and actual behavior The caller should transfer actual procfs and task-directory handles. The driver should derive a narrow observation bound to its own task generation and namespace, retire the broad source, and pass that observation to each deadline and command reaper. The current implementation resolves the observation source globally. Missing, foreign or retired input should refuse before native effects; an uncertain cleanup must retain the original owner. ## Environment and identity LibPosixABI `b2b494c40f561c931d84e3dfe266ca67f01d99b9` on `feature/posix-compat`. This concerns the host probe driver’s reviewed Linux x86_64/glibc custody path. ## Evidence and prior checks Source review identifies the lookup. The repair must preserve complete native signal and callback admission, cancellation, pidfd ownership and uncertain-close handling, and keep observation descriptors out of probe children. ## Tracking [Phase completion](https://git.erikinkinen.fi/erix/integration/issues/65). - [x] Transfer explicit observation inputs through the CLI, deadline and runner. - [x] Retire the broad source and preserve original native ownership on failure. - [x] Cover genuine ownership, foreign and retired inputs, callbacks, descriptor inheritance and uncertain close. - [x] Update the caller contract and technical manual.
Author
Owner

The source repair is published in 8e5a5090. The driver transfers actual procfs/task descriptor pairs, derives a narrow observation and retires the broad source before any reaper borrows it. Original signal, child and uncertain-close custody remains required. The technical manual update follows.

The source repair is published in `8e5a5090`. The driver transfers actual procfs/task descriptor pairs, derives a narrow observation and retires the broad source before any reaper borrows it. Original signal, child and uncertain-close custody remains required. The technical manual update follows.
Author
Owner

The driver repair is published in 8e5a5090, with the matching manual in Docs b4632304. Caller-owned observation handles now replace global task discovery; broad intake retires before reaper use, and probe children inherit no observation descriptors. Closing this defect; the wider authority audit remains open.

The driver repair is published in [8e5a5090](https://git.erikinkinen.fi/erix/lib-posixabi/commit/8e5a5090bee6cc0ba813519d6eb6fa97fee90987), with the matching manual in [Docs b4632304](https://git.erikinkinen.fi/erix/docs/commit/b46323049588e48ffb03d5e05a6d064104809326). Caller-owned observation handles now replace global task discovery; broad intake retires before reaper use, and probe children inherit no observation descriptors. Closing this defect; the wider authority audit remains open.
erikinkinen added this to the Alpha 1 milestone 2026-10-30 09:34:51 +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/lib-posixabi#8
No description provided.