Skip to content

G83 复审:拆除站点校验测试补反例与复审记录 - #2

Merged
Minorli merged 2 commits into
mainfrom
review/g83-followup-20261203
Dec 3, 2026
Merged

Minorli merged 2 commits into
mainfrom
review/g83-followup-20261203

Conversation

@Minorli

@Minorli Minorli commented Dec 3, 2026

Copy link
Copy Markdown
Owner

复审对象:main 的 06d3a52(拆除站点字节校验)、dfe0166(D3 日期)、7debe05(部署文档)。

  • a27fcf2:verifySite 的测试补反例(位移目标、立即数高字节、读取失败);原测试下这三类变异体都能通过,现在全部失败。另加 static_assert,要求 Sites 与 SiteCalls 的返回址一致。运行时行为不变。
  • e2f9166:文档 §12.9 复审记录 R1–R6,并更新已过时的 O9、§8.7、§12.8 条目。

验证级别:只在 arm64 上跑了 CPU 测试,做了 RELEASE 交叉构建,没有 x86 和硬件运行。G83 套件 198 通过;29 个失败与 main 相同,都是 x86 夹具在 arm64 上无法运行。警告数不变。

留给维护者的事项:

  • R3:环空闲守卫的理由表述需要改。
  • R4:16:47 的日期需要确认。
  • R5:efi-manifest.json 和 config.plist 尚未同步 v10.5+。

🤖 Generated with Claude Code

Aric and others added 2 commits December 3, 2026 06:49
Problem: 06d3a52's verifySite tests only exercised a wrong immediate low
byte and a wrong opcode (the case labelled "wrong target" overwrote the E8
opcode). Mutants that drop the displacement-target check, drop the upper
immediate bytes check, or ignore a failed read all still passed the suite.
The runtime site table (Sites) and the install check (SiteCalls) also
repeated the three return addresses with nothing tying them together.

Mechanism: counterexamples for a displacement one byte off, a call to
eventTimeout instead of finishEvent, each non-zero upper immediate byte
and a failed read at each of the ten verified bytes; the opcode case is
relabelled and restored. A static_assert requires both tables to list the
same return addresses in the same order. No runtime behaviour change.

Verification: CPU only (arm64). tgl_orphan passes under C++14 and C++17
with ASan/UBSan; all five verifySite mutants now fail it and a mismatched
table fails to compile. Suite 198 passed / same 29 x86-fixture failures as
main; RELEASE build passes, warnings unchanged (460). No x86 or hardware run.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Problem: the follow-up commits (06d3a52, dfe0166, 7debe05) closed review
items, but the review record still listed them as open, the ring-idle
rationale for accepting the teardown risk is stronger than the guard, and
the deployment directory is only partly updated.

Mechanism: §12.9 records findings R1-R6 with severity, location, evidence
and disposition (R1/R2 fixed in a27fcf2; R3-R6 left to the maintainer with
reasons); stale O9/§8.7/§12.8 entries now point to the follow-up.

Verification: documentation only. Facts checked against main at 06d3a52
on arm64 (CPU suite, RELEASE build); the maintainer's binary checks were
not reproducible here.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Minorli
Minorli merged commit e2f9166 into main Dec 3, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant