CUDA++: AIEN’s GPU machine-code toolchain, runtime and driver client for NVIDIA GPUs without the CUDA toolkit. Hardware coverage and driver replacement limits are explicit.
fix: restrict clean-user cleanup to accounts created by this run
merged44e7cb9a6cacd03d #130 · opened 2026-10-27 05:34 UTC · closed 2026-10-29 01:33 UTC · merged 2026-10-29 01:33 UTC
Imported from GitHub aien-dev/CUDApp#130, by drakestapleton
Labels: ready-to-merge
Base 67f3135ef88d8f520dfc15a2b2bc3264f53f0d6a · Head 274de4b41b737016dd3ec7d6187909425b2d077c
Merged on GitHub as eab71f898045db3842a6ceef8d5decaf3503a570; reachable from main 21d8de285f713adf09e0d6ba6db2b37139d0674e (observed 2026-11-18T16:38:28Z)
drakestapleton wrote on 2026-10-27 05:34 UTC
Evidence
Head 274de4b41b737016dd3ec7d6187909425b2d077c, based on main 67f3135ef88d8f520dfc15a2b2bc3264f53f0d6a. The published Git tree exactly matches the locally verified, independently reviewed tree.
bash tests/dx/clean_user_cleanup_test.sh: 23 passed, 0 failed, exit 0. All privilege, network and GPU-entry commands are nondelegating mocks.
The same final test against the original #118 script: 19 passed, 4 failed, exit 1.
Mutation controls reject early ownership, missing ownership, clock-only names, ignored temporary-directory failure, and unexpected privileged commands.
Bash syntax and whitespace checks pass. Independent review found no outstanding findings.
Local make test and make -j2 both exit 2 because the x86_64 assembler rejects unchanged AArch64 barrier instructions: omega_blackwell_engine.c:393,558; parallel build also reaches omega_blackwell_submit.c:284,377,541,622. This remains a local architecture limitation; the ARM64 CI results below are measured separately.
Exact-head CI
All workflows completed successfully for head 274de4b41b737016dd3ec7d6187909425b2d077c. The synthetic PR test-merge tree matches the reviewed head tree exactly.
The #118 harness installs its exit trap before account creation. If useradd fails because the candidate name already exists, the old cleanup still attempts to kill that account's processes and remove its home.
Record ownership only after successful account creation.
Clean up the account only when this invocation owns it.
Derive the candidate from the random temporary-directory suffix rather than UTC seconds alone.
Abort before account setup if temporary-directory creation fails.
Retain mocked regressions in the existing test-hello-sim target, exercised by ARM64 hello-sim CI.
Refs #118. Three files only. No runtime, driver, C, encoder, API, README, historical receipt, or gate weakening.
Limits
No real account creation/deletion, privileged command, GPU/device run, installation, service change, merge, or deployment was performed for this repair. Real-account and GB10/GPU validation are NOT_RUN; ARM64 host-only CI completed as recorded above. The change is ready for maintainer review; this does not claim completed qualification or authorize merging.
Apply it
git checkout -b patch-44e7cb9a6cacd03d67f3135ef88d8f520dfc15a2b2bc3264f53f0d6a
curl -fsSL https://interplane.io/drakestapleton/CUDApp/patches/44e7cb9a6cacd03d.patch | git am