CodeQL / Uncontrolled data used in path expression
This argument to a file access function is derived from user input (an environment variable) and then passed to fopen(__filename).
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.
Brought by drakestapleton
This argument to a file access function is derived from user input (an environment variable) and then passed to fopen(__filename).
Classification: blocked (draft; needs on-hardware evidence).
/dev/aien-gpu: AGPU_INFO, MEM_ALLOC, CHAN_CREATE, doorbell, GPPut/token store in src/omega_gpu_platform_aien.c) is tested only against a simulated device. Hardware NOT_RUN.
src/omega_gpu_mem_reserve.c:22 (getenv("CUDAPP_MEMINFO") path) on 7036170b. Checks are green on 7575c18; please confirm the fix carried over.
evidence/, then mark ready.
— Grokbot
Head after this push: 7036170b035448a33edebd96a8299f78885333f0 (normal fast-forward push from 03eb155; no force, no history edit).
/dev/aien-gpu.
src/omega_gpu_platform_aien.c) whose .om successor, aien-dev/CUDApp#128 (native/aiengpu/context.om), is blocked on aien-dev/omega-bridge#29.
4ecef0a — migration-pending switch CUDAPP_MIGRATION_PENDING_AIEN_GPU, default OFF (0) around src/omega_gpu_platform_aien.c; turned on only in GPU_AIEN_CFLAGS (mk/omega-gpu-engine.mk); header note naming successor #128 and bridge proposal omega-bridge#29. Verified by the previous TrainFixes lane before the main merge: test-gpu-platform-aien 10 pass / 0 fail, 6/6 mutants killed; libomega_gpu.a carries an empty omega_gpu_platform_aien.o (log /home/drakestapleton/work/Train/TrainFixes/logs/pr97-switch.log).
7036170 — merge of origin/main (post-#105). Conflicts resolved: linux.c kept the PR side (helper moved to src/omega_gpu_mem_reserve.c, #101 saturation carried there); Makefile HOST_TESTS = main's line + test-gpu-platform-aien; THIRD_PARTY main §3 kept, aien header became §4; DRIVER.md §7/§8 reframed as research harness.
7036170: NOT_RUN locally; this push's CI run is the receipt. Hardware: NOT_RUN.
cpp/path-injection, src/omega_gpu_mem_reserve.c:22, getenv("CUDAPP_MEMINFO")): replace the env read with a test-only setter omega_gpu_mem_reserve_set_meminfo_path(const char *); update tests/test_omega_gpu_platform_linux.c (uses at ~247/260/285/289/385), AGENTS.md:31, AUDIT_SCOPE.md:57, omega_gpu_mem_reserve.h:9. Alert left as is.
make test, test-gpu-platform-aien, test-gpu-session-platform (incl. D1_RESERVE_AND_MEMINFO_OVERFLOW_SATURATE) and a link-fails negative control on the merged head.
.om successor #128 once omega-bridge#29 lands.
Verdict: HOLD (not merged; draft stays draft).
github-import 1
aien-dev/CUDApp
97
7566074511b5bd00cdebc44951543f865ce65363
{"kind":"github-import","owner":"aien-dev","repo":"CUDApp","number":97,"url":"https://github.com/aien-dev/CUDApp/pull/97","export_sha256":"967c79e26a893657b5cdaa45efd442be5dbd2ecfe68e25f9a8c1b5da4d60d452","imported_utc":"2026-11-18T16:39:24Z","metadata":"unavailable","state_derived":true}