interplane.Get Omega
Read in your language

omega-mv

Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance.

Brought by drakestapleton

branch main Branches Tags History

omega-mv / evidence / kfd / 20261112-review / README.md

63 lines · 3200 bytes Raw Blame History Rendered
1# KFD review repairs
2
3This directory supersedes no historical receipt. It records the changes requested
4by the independent `grok-4.7` review of the preceding KFD head.
5Commands and their actual exits live in the adjacent logs; an incomplete or
6nonzero log is not a passing receipt. The compiler hash files are generated.
7
8## Changes and controls
9
10- RUNTIME_ENABLE is no longer admitted. The launcher needs no debugger runtime:
11 Linux v6.18 `drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c`,
12 `register_process` (1404–1441), calls `update_qpd`; its v9 implementation in
13 `kfd_device_queue_manager_v9.c` initializes process SH_MEM_CONFIG (including
14 F8_MODE for GC 9.4.3/9.4.4) and SH_MEM_BASES itself. This is a named upstream
15 source, not a claim about an unobserved notebook kernel.
16- The C header oracle enumerates every AMDKFD_IOC macro in the installed UAPI.
17 Every sibling outside the explicit admitted list must compile with error 9 on
18 both targets. A compiler mutant admitting DBG_TRAP demonstrates that the
19 sibling control detects an expanded allowlist.
20- kfdmap checks the descriptor's character-device class and number. It accepts
21 a DRM render device or the same device number as `/dev/kfd`, never a regular
22 file or another character device. Existing mapnew remains the ordinary-file
23 test route. Native and QEMU refusal cases cover regular files, `/dev/null`
24 and invalid descriptors. A compiler fd-class mutant must allow the otherwise
25 refused regular file.
26- Literal wrong header lengths are compile error 9. Computed wrong lengths
27 remain trap 3 before the syscall. Separate compiler mutants remove the
28 compile-time and runtime checks and must be detected.
29
30`fdtrace.c` is an independent AArch64 ptrace instrument. It changes only stat
31metadata at the syscall boundary; actual mmap backing is a memfd, never a GPU.
32It exercises accepted DRM/KFD classes, wrong render minor, mismatched device
33numbers, non-character KFD metadata, regular files and fstat failure. The
34accepted cases touch the final word of a span above 64 GiB. These are synthetic
35CPU trust-boundary checks, not device qualification. Every AMD device row is
36NOT_RUN. The x86 refusal cases run through qemu-x86_64; successful real render
37or KFD mappings on either architecture remain NOT_RUN.
38
39The new stack pathname immediate is calculated, not typed from memory:
40`Python: int.from_bytes(b'/dev/kfd', 'little') -> 7234587703011271727` (bytes).
41The device-number masks and Linux stat layouts retain the preceding C/Wolfram
42oracle provenance; the native trace writes `struct stat` from the installed C
43headers rather than a duplicate byte layout.
44
45## Invocation
46
47CPU prefix:
48
49```
50flock ~/handoffs/hive/queen/pool-4-5.lock nice -n 10 taskset -c 4,5
51```
52
53Qualification command (the conjunction stops at its first nonzero exit):
54
55```
56sh seed/omega-from-seed.sh &&
57python3 tests/kfd/check.py --record-history &&
58PHYSICS_DIR=/nonexistent PHYSICS_LOCK_CHECK=0 tests/gates/run.sh seed
59```
60
61Compatibility and repository evidence checks are recorded separately. Historical
62evidence stays unchanged. No GPU, service, sudo, remote write, merge or deployment
63is authorized by or performed for this repair.