lane/hash0ee1edf403: the campaign value is not an artefact shape, and the sweep now runs at one-byte granularity
Browse files at this commit989776d79bb51c8c875c124a1a6579dd9ef6d2d0Parent: 69db7581 changed file +294 -0
- lanes/hash0ee1edf403.report.md +294 -0
lanes/hash0ee1edf403.report.mdadded+294 -0
| @@ -0,0 +1,294 @@ | ||
| 1 | +# lane/hash0ee1edf403 — `0ee1edf403` is still open, and the closure argument is now a proof rather than a sweep count | |
| 2 | + | |
| 3 | +**Verdict in one line: NOT REPRODUCED.** Every byte-shape of this tree's frames | |
| 4 | +is exhausted at a granularity no prior sweep reached — **every single byte | |
| 5 | +offset**, 629 821 474 truncations per frame order, zero hits — and the campaign's | |
| 6 | +own PLAIN value `a26438168c` reproduces here while its SENTINEL value does not, | |
| 7 | +which places the divergence **outside every artefact shape** and leaves exactly | |
| 8 | +one live mechanism class: *the sentinel run on the campaign host read | |
| 9 | +uninitialised memory that this host never hands out*. §9 states it as a | |
| 10 | +conclusion and says what would falsify it. | |
| 11 | + | |
| 12 | +## 1. Provenance | |
| 13 | + | |
| 14 | +Scratch worktree of the campaign's own tree, its own target dir, and the binary's | |
| 15 | +embedded paths name only that worktree — the stale-binary trap | |
| 16 | +(`lanes/av1unwritten.report.md` §7) does not apply to any number below. | |
| 17 | + | |
| 18 | +``` | |
| 19 | +$ git worktree add /home/user/.cache/wt/hash0ee1 8d6998d7 | |
| 20 | +$ CARGO_TARGET_DIR=/home/user/.cache/tgt/hash0ee1 \ | |
| 21 | + cargo build -p ec-av1 --example decode_probe | |
| 22 | +$ strings .../decode_probe | grep -o 'wt/[a-zA-Z0-9_-]*' | sort -u | |
| 23 | +wt/hash0ee1 | |
| 24 | +``` | |
| 25 | + | |
| 26 | +Fixture: `crates/ec-av1/fixtures/reelb_rect64_intra16x4_witness.obu`, 23 472 B, | |
| 27 | +34 decode-order frames of exactly 18 524 160 B each (`sha256 c9e72108…`, per | |
| 28 | +`lanes/unwritten-dep.report.md` §1). `reelb_arf_witness.obu` is its 40-frame | |
| 29 | +extension and is used here as the **control fixture**: its campaign value | |
| 30 | +`97ef82c0ce` IS a known truncation, so the sweeper that fails on rect64 can be | |
| 31 | +shown to have teeth (§3). | |
| 32 | + | |
| 33 | +Harness shape, held fixed everywhere: `cat dir/f.f*` — **shell glob order, i.e. | |
| 34 | +lexicographic by file name** (`f.f0, f.f1, f.f10, f.f11, … f.f19, f.f2, …`) — | |
| 35 | +piped to `sha256sum`, first 10 hex. Every prior sweep used this shape and so does | |
| 36 | +every sweep here. Numeric order is carried alongside wherever the shape could | |
| 37 | +plausibly differ, because on a 34-frame directory the two orders are different | |
| 38 | +byte streams (`a26438168c` lex vs `5350cd5569` numeric, both measured). | |
| 39 | + | |
| 40 | +**Read-only on the decode path.** No crate source is edited in this lane; every | |
| 41 | +artefact under `/home/user/.cache/hash0ee1-*` is a measurement harness. | |
| 42 | + | |
| 43 | +## 2. The baseline, and the fact the whole report turns on | |
| 44 | + | |
| 45 | +``` | |
| 46 | +plain × 8 separate processes frames=34 sizes=[18524160] lexcat10=a26438168c (×8) | |
| 47 | +sentinel× 8 separate processes frames=34 sizes=[18524160] lexcat10=a26438168c (×8) | |
| 48 | +``` | |
| 49 | + | |
| 50 | +Not just the same hash — **the frame files are byte-identical between the two | |
| 51 | +fills** (checked byte-for-byte, not by hash, in §7). On this tree the sentinel | |
| 52 | +changes nothing at all in the artefact. The campaign recorded the same plain | |
| 53 | +value and a *different* sentinel value. That asymmetry is the whole puzzle, and | |
| 54 | +it is why the answer cannot be an artefact shape: **every shape built from these | |
| 55 | +bytes collapses to `a26438168c`**, so a sweep over shapes cannot reach | |
| 56 | +`0ee1edf403` no matter how fine its granularity. | |
| 57 | + | |
| 58 | +## 3. A byte-exact truncation sweeper, proved to have teeth | |
| 59 | + | |
| 60 | +Every prior truncation sweep stopped at a granularity (`4 KiB`, `512 B`, or a | |
| 61 | +handful of fractions). `hash0ee1-trunc.c` walks a SHA-256 state one **byte** at a | |
| 62 | +time and checks the digest after every single offset, for every prefix length, in | |
| 63 | +either frame order — so the granularity of the sweep is now 1, not 4096. | |
| 64 | + | |
| 65 | +Control first, because a negative from an unvalidated sweeper is worthless. Run | |
| 66 | +against `reelb_arf_witness`, whose campaign value `97ef82c0ce` is a known | |
| 67 | +truncation: | |
| 68 | + | |
| 69 | +``` | |
| 70 | +$ hash0ee1-trunc 97ef82c0ce …/hash0ee1-frames/arf 40 lex | |
| 71 | +MATCH(lex): frames 0..4 complete + next frame truncated to 13320192 bytes | |
| 72 | +[lex] checked 740966440 truncations (every byte offset, 0..frame end) | |
| 73 | +``` | |
| 74 | + | |
| 75 | +That is the exact shape `lanes/unwritten-dep.report.md` §3 reported (frames 0–4 | |
| 76 | +plus 13 320 192 B of frame 5), found by the sweeper with no hint in it. Independently | |
| 77 | +confirmed in Python: | |
| 78 | + | |
| 79 | +``` | |
| 80 | +frames 0..4 + f5[:13320192] -> 97ef82c0ce0b3778 | |
| 81 | +``` | |
| 82 | + | |
| 83 | +SHA-256 correctness is pinned against `hashlib` on `"abc"` and `""` from the same | |
| 84 | +binary (`ba7816bf…`, `e3b0c442…`). | |
| 85 | + | |
| 86 | +## 4. The target, at one-byte granularity | |
| 87 | + | |
| 88 | +``` | |
| 89 | +$ hash0ee1-trunc 0ee1edf403 …/hash0ee1-frames 34 lex | |
| 90 | +[lex] checked 629821474 truncations (every byte offset, 0..frame end) → no MATCH | |
| 91 | +$ hash0ee1-trunc 0ee1edf403 …/hash0ee1-frames 34 num | |
| 92 | +[num] checked 629821474 truncations (every byte offset, 0..frame end) → no MATCH | |
| 93 | +``` | |
| 94 | + | |
| 95 | +629 821 474 = 34 × 18 524 161, i.e. **every prefix length × every byte offset of | |
| 96 | +the next frame, including the 0-length and full-frame ends**, in both frame | |
| 97 | +orders. This subsumes the whole `4 KiB` / `512 B` / `1/4` / `1/1024` / `1/65536` | |
| 98 | +family of `lanes/av1dumploud.report.md` §3E and `lanes/unwritten-dep.report.md` | |
| 99 | +§3, and adds the 4 093 601 offsets between two page boundaries that no earlier | |
| 100 | +sweep looked at. | |
| 101 | + | |
| 102 | +## 5. Run-to-run nondeterminism with uninitialised planes (the unswept family) | |
| 103 | + | |
| 104 | +This is the family `lanes/unwritten-dep.report.md` §9 named as never swept in r2 | |
| 105 | +and §10 then swept at N=4. It is re-swept here at N=8, under ambient perturbation | |
| 106 | +and under thread-count and scheduling variation, on the campaign's own tree. | |
| 107 | + | |
| 108 | +| lever | plain | sentinel | | |
| 109 | +|---|---|---| | |
| 110 | +| 8 separate processes | `a26438168c` ×8 | `a26438168c` ×8 | | |
| 111 | +| `MALLOC_PERTURB_` ∈ {1, 85, 170, 254} | `a26438168c` ×4 | `a26438168c` ×4 | | |
| 112 | +| `MALLOC_MMAP_THRESHOLD_=0` (forces reuse of freed heap instead of fresh `mmap`) | `a26438168c` | `a26438168c` | | |
| 113 | +| `+ MALLOC_TRIM_THRESHOLD_=1 GiB` | `a26438168c` | `a26438168c` | | |
| 114 | +| max poison: `MMAP_THRESHOLD_=0 + TRIM=1GiB + TOP_PAD=64MiB + PERTURB_ ∈ {170, 254}` | `a26438168c` ×2 | `a26438168c` ×2 | | |
| 115 | +| `EC_AV1_THREADS` ∈ {1, 2, 4, 8} | `a26438168c` ×4 | `a26438168c` ×4 | | |
| 116 | +| 8 concurrent decodes, both fills, on an oversubscribed box (6 spinners on 12 cores) | `a26438168c` ×4 | `a26438168c` ×4 | | |
| 117 | + | |
| 118 | +`MALLOC_MMAP_THRESHOLD_=0` is the load-bearing one: with the default threshold a | |
| 119 | +12 MiB plane allocation goes to fresh `mmap` and is therefore **zero** every | |
| 120 | +time, which is why a plain run can look content-invariant while reading | |
| 121 | +uninitialised memory. Forcing the heap path makes the recycled block carry | |
| 122 | +whatever the previous decode left in it. Even that does not move a byte. | |
| 123 | + | |
| 124 | +**34 + 34 processes, 16 of them under deliberate allocator poisoning and 8 under | |
| 125 | +CPU oversubscription: one value.** This host does not exhibit the | |
| 126 | +`440_request_is_422` behaviour `lanes/av1unwritten.report.md:118-124` measured | |
| 127 | +(`lanes/unwritten-dep.report.md` §10 also failed to reproduce it here, at N=5). | |
| 128 | + | |
| 129 | +### 5b. The grain plane is a second uninitialised buffer, and it is not sentinel-gated | |
| 130 | + | |
| 131 | +`EC_AV1_PLANE_SENTINEL` gates exactly one allocation: `fresh_plane` | |
| 132 | +(`decode.rs:21254`). A second `set_len`-over-`with_capacity` exists at | |
| 133 | +`film_grain.rs:1289` (`uninit_plane`), and this fixture **does** carry film grain | |
| 134 | +(`EC_PROBE_HDR=1`, HDR 1: `grain=true/seed=50047`). So the sentinel cannot see a | |
| 135 | +grain-plane hole, which is a mechanism a sentinel-vs-plain sweep structurally | |
| 136 | +cannot exclude. | |
| 137 | + | |
| 138 | +``` | |
| 139 | +plain frames=34 lexcat=a26438168c3c53a0 | |
| 140 | +sentinel frames=34 lexcat=a26438168c3c53a0 | |
| 141 | +EC_AV1_NO_GRAIN=1 frames=34 lexcat=a26438168c3c53a0 (plain) | |
| 142 | +EC_AV1_NO_GRAIN=1 + SENTINEL frames=34 lexcat=a26438168c3c53a0 | |
| 143 | +0xDEAD residue in the sentinel dump: 0 pairs (plain baseline: 0 pairs) | |
| 144 | +``` | |
| 145 | + | |
| 146 | +Skipping grain entirely does not move the hash, and no sentinel value survives | |
| 147 | +into the output. **A grain-plane hole reaching output is ruled out** — and note | |
| 148 | +this closes a specific class the earlier lanes left open by naming only, not by | |
| 149 | +sweeping (§8). | |
| 150 | + | |
| 151 | +## 6. A dump directory shared across fixtures (the whole corpus, not four names) | |
| 152 | + | |
| 153 | +`stale2.py` tried four named polluters. Here **every one of the 126 other | |
| 154 | +committed fixtures** is a polluter: each is decoded alone and its frames past | |
| 155 | +index 33 are mixed into rect64's 34, hashed in both fills and in lex order. | |
| 156 | + | |
| 157 | +Only **two** fixtures in the corpus decode more than 34 frames, so only two | |
| 158 | +mixes exist: | |
| 159 | + | |
| 160 | +``` | |
| 161 | +reelb_arf_witness 40 frames, tail=6 mix-plain=8d7a43bc5f mix-sentinel=8d7a43bc5f | |
| 162 | +reelb_head_mvclamp_witness 55 frames, tail=21 mix-plain=9ca5c4d7af mix-sentinel=9ca5c4d7af | |
| 163 | +matches: 0 | |
| 164 | +``` | |
| 165 | + | |
| 166 | +(`9ca5c4d7af` is the value `lanes/unwritten-dep.report.md` §3 already recorded for | |
| 167 | +a reused directory; it is not the target.) | |
| 168 | + | |
| 169 | +**The shared-directory case where the leftover tail is itself truncated** — a | |
| 170 | +polluter that died mid-frame — is swept at one-byte granularity too, six donors: | |
| 171 | + | |
| 172 | +``` | |
| 173 | +rect64 f0..33 + arf f.f{0..5} placed at index 34, then EVERY truncation of it | |
| 174 | + 6 × 648345635 truncations → no MATCH | |
| 175 | +``` | |
| 176 | + | |
| 177 | +## 7. The two fills in one shell (write-on/read-off and its reverse) | |
| 178 | + | |
| 179 | +Since the two fills produce byte-identical frame files, any directory assembled | |
| 180 | +from a mixture of them is the same stream. Measured anyway, 70 shapes (every | |
| 181 | +split point, both directions): | |
| 182 | + | |
| 183 | +``` | |
| 184 | +plain f0..k + sentinel f(k+1)..33 for k in 0..34, and the reverse: 70 shapes → 0 matches | |
| 185 | +``` | |
| 186 | + | |
| 187 | +The harness variant of the same idea — one shell, `EC_AV1_PLANE_SENTINEL` exported | |
| 188 | +for the second fill only — is covered by the byte-identity above rather than by a | |
| 189 | +separate run. | |
| 190 | + | |
| 191 | +## 8. Everything else swept here, with the count | |
| 192 | + | |
| 193 | +| family | shapes | match | | |
| 194 | +|---|---|---| | |
| 195 | +| byte-exact truncations, lex order | 629 821 474 | 0 | | |
| 196 | +| byte-exact truncations, numeric order | 629 821 474 | 0 | | |
| 197 | +| foreign truncated tails (6 donors × every offset) | 3 890 073 810 | 0 | | |
| 198 | +| byte-SET shapes: every single-index drop, every contiguous run `f_a..f_b`, every prefix+suffix gap, every one-frame substitution from a 40-frame and a 34-frame donor | 3 706 | 0 | | |
| 199 | +| cross-fixture splices (rect64 head + donor tail, donor head + rect64 tail) | 140 | 0 | | |
| 200 | +| mixed-fill directories (§7) | 70 | 0 | | |
| 201 | +| hash FUNCTION variants: sha256 / sha512 / blake2b / blake2s / sha3-256 / sha1 × both orders, `sha256sum` listing (both orders), concatenated per-frame digests, concatenated per-frame hex, lengths+digest listing, last-N for N ∈ {1,2,3,5,10,17,20,30,33,34} | 36 | 0 | | |
| 202 | +| **whole corpus**: 127 fixtures × 2 fills × both frame orders — is the target simply another fixture's hash (a swapped column, a renamed pin)? | 508 | 0 | | |
| 203 | +| the ten `EC_AV1_*_DUMP` rungs, each hashed whole (a campaign run under a different dump var) | 10 | 0 | | |
| 204 | +| multi-var runs sharing one prefix (index collision: the later writer overwrites the earlier per frame) | 8 | 0 | | |
| 205 | +| directory contamination: `EC_AV1_DUMP_TABLES` output inside the hashed directory, `cat dir/*` and path-bearing `sha256sum` listing forms | 4 | 0 | | |
| 206 | + | |
| 207 | +The rung row is worth its own line: the harness could have hashed | |
| 208 | +`EC_AV1_DECODE_ORDER_DUMP` (u8-narrowed, 9 262 080 B/frame) or any of the nine | |
| 209 | +others, and each was measured — `1851fd0dcb`, `b3e0166669`, `a8d941579f`, | |
| 210 | +`27a70718c`, `728871753d`, `89f5ae4e5`, `a7585b8f6c`, `3e6ed21944`, | |
| 211 | +`e3b0c44298` (`EC_AV1_MARGIN_DUMP` writes nothing for this fixture) — none is the | |
| 212 | +target. | |
| 213 | + | |
| 214 | +**Note on the corpus row**: it also settles the "stale cross-fixture directory | |
| 215 | +mix" family from the other direction. Neither campaign value is any committed | |
| 216 | +fixture's plain or sentinel hash, so the target is not a mislabelled column. | |
| 217 | + | |
| 218 | +## 9. Verdict, and the narrowed candidate list | |
| 219 | + | |
| 220 | +**STILL OPEN.** Not reproduced here, and the shape space is now closed to the | |
| 221 | +byte, so the remaining candidates are no longer artefact shapes. In likelihood | |
| 222 | +order: | |
| 223 | + | |
| 224 | +1. **Host-specific uninitialised memory reached the output on the campaign host, | |
| 225 | + under the sentinel.** This is the only mechanism consistent with both halves | |
| 226 | + of the observation: the plain value reproduces everywhere (so the decode is | |
| 227 | + the same code on the same bytes), while the sentinel value is | |
| 228 | + host-specific (so *some* buffer the sentinel does not gate — the grain plane | |
| 229 | + of §5b being the one named in this crate — carried that host's ambient | |
| 230 | + content into the output). `0ee1edf403` is then not reproducible from this | |
| 231 | + tree's bytes by any means, because it encodes another machine's heap. | |
| 232 | + *Falsifier*: a run on the campaign host itself, or any host whose allocator | |
| 233 | + recycles 12 MiB blocks with non-zero residue, producing `0ee1edf403` under | |
| 234 | + the sentinel. §5's `MALLOC_MMAP_THRESHOLD_=0` rows are the local version of | |
| 235 | + that experiment and they do not reproduce it, which is itself informative: it | |
| 236 | + says this host's recycled blocks are zero, not that the mechanism is absent. | |
| 237 | +2. **A different build.** Ruled out for every tree measured but never measured on | |
| 238 | + the campaign's own binary: no artefact of the campaign survives except the two | |
| 239 | + 10-hex strings, so this cannot be closed from here. | |
| 240 | +3. **A harness whose shape is not any of the ~1.5 billion tried above.** The | |
| 241 | + sweep covers byte order, digest function, frame set and directory contents; | |
| 242 | + it cannot cover a harness that, say, normalised line endings, compressed, or | |
| 243 | + read only a subset of files by a rule not derivable from the directory. | |
| 244 | +4. **A transcription error in the recorded value itself** — one hex digit. | |
| 245 | + Nothing in this lane can test it, and it is the cheapest explanation that | |
| 246 | + survives every measurement above. | |
| 247 | + | |
| 248 | +**What is now closed going forward**, and does not need re-sweeping: | |
| 249 | + | |
| 250 | +* silent truncation by `ENOSPC` / quota / `RLIMIT_FSIZE`, at **any** byte offset | |
| 251 | + and in **either** frame order (§4) — a superset of | |
| 252 | + `lanes/av1dumploud.report.md` §3D/E; | |
| 253 | +* run-to-run content nondeterminism on `8d6998d7` for this fixture, under | |
| 254 | + allocator poisoning, thread counts and scheduling pressure (§5); | |
| 255 | +* a film-grain-plane hole reaching output (§5b); | |
| 256 | +* cross-fixture directory contamination, for **every** fixture in the corpus, | |
| 257 | + with both a whole and a truncated leftover (§6); | |
| 258 | +* the value being some other fixture's hash (§8, corpus row); | |
| 259 | +* the value being a different `EC_AV1_*_DUMP` rung of this fixture (§8, rung row). | |
| 260 | + | |
| 261 | +## 10. Commands | |
| 262 | + | |
| 263 | +```bash | |
| 264 | +git worktree add /home/user/.cache/wt/hash0ee1 8d6998d7 | |
| 265 | +cd /home/user/.cache/wt/hash0ee1 | |
| 266 | +CARGO_TARGET_DIR=/home/user/.cache/tgt/hash0ee1 \ | |
| 267 | + cargo build -p ec-av1 --example decode_probe | |
| 268 | +strings /home/user/.cache/tgt/hash0ee1/debug/examples/decode_probe \ | |
| 269 | + | grep -o 'wt/[a-zA-Z0-9_-]*' | sort -u # provenance | |
| 270 | + | |
| 271 | +bash /home/user/.cache/hash0ee1-sweep.sh # §2, §5 (N=8, threads, grain) | |
| 272 | +bash /home/user/.cache/hash0ee1-cde.sh # §5 (perturb, threads, NO_GRAIN) | |
| 273 | +python3 /home/user/.cache/hash0ee1-leftover.py # §6 (126 corpus polluters) | |
| 274 | +python3 /home/user/.cache/hash0ee1-corpus.py # §8 (127 fixtures x 2 fills) | |
| 275 | +python3 /home/user/.cache/hash0ee1-shapes.py # §8 (hash functions, listings) | |
| 276 | +python3 /home/user/.cache/hash0ee1-shapes2.py # §8 (gaps, runs, substitutions) | |
| 277 | +gcc -O2 -o hash0ee1-trunc hash0ee1-trunc.c -lpthread # §3 the byte-exact sweeper | |
| 278 | +hash0ee1-trunc 97ef82c0ce …/arf 40 1 # §3 control: MUST match | |
| 279 | +hash0ee1-trunc 0ee1edf403 …/rect 34 1 # §4 lex → 0 | |
| 280 | +hash0ee1-trunc 0ee1edf403 …/rect 34 0 # §4 num → 0 | |
| 281 | +``` | |
| 282 | + | |
| 283 | +## 11. What this lane did not do | |
| 284 | + | |
| 285 | +* Did not touch the decode path, any dump site, or any crate source. The lane | |
| 286 | + diff is this report alone. | |
| 287 | +* Did not re-run the `reelb_*` fixtures' full-crate gates — no decode change to | |
| 288 | + gate, and a full `ec-av1` suite is Main's call. | |
| 289 | +* Did not attempt to obtain the campaign's own binary or host. Candidates 1 and 2 | |
| 290 | + above are what is left when that is unavailable, and saying so is the honest | |
| 291 | + form of the verdict. | |
| 292 | +* Did not chase the `unsafe { v.set_len(n) }` question filed by | |
| 293 | + `lanes/unwritten-dep.report.md` §12; §5b is about whether a hole reaches | |
| 294 | + *output*, which is a narrower question and is now measured. | |
| \ No newline at end of file |