Skip to content

kernel: make the pinned Asahi fragment the single hardware overlay - #64

Merged
RyanTheTide merged 3 commits into
mainfrom
fu-universal-kernel-config
Oct 31, 2026
Merged

RyanTheTide merged 3 commits into
mainfrom
fu-universal-kernel-config

Conversation

@RyanTheTide

@RyanTheTide RyanTheTide commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

Use the pinned kernel's asahi.config as the sole Apple hardware overlay for every supported Mac. Supersedes #28 for the current integration pin; its branch is preserved.

Built on DJ's merged prior work: ALARM #44 restored the full distribution base, NixOS #51 made NixOS inherit ALARM's resolved config, and NixOS #48 restored dm-integrity, Bluetooth LE, nftables, PSI and exFAT. All three are ancestors of the checkout baselines used for this audit. Their work is preserved; this PR addresses the remaining hardware-copy/config-drift gap. ALARM remains the resolved-config authority, and NixOS derives its hardware choices from that canonical snapshot. Fedora consumes the same source-pinned kernel fragment without a third hardware fragment.

Configuration input Before After
Shared hardware ALARM resolved snapshot (#51) plus a local common copy Source fragment owns hardware; NixOS inherits ALARM’s resolved snapshot
Per-device fragments None None
Local common hardware copy 80 requests in common.config Removed; generic peripheral policy retained in the distro base
Distribution policy Full distro base + nixos.config Retained
Resolution olddefconfig olddefconfig, then strict source/policy validation

Preserve distribution policy and generic peripheral support. NixOS retains DJ’s ALARM resolved-snapshot inheritance and refreshes that canonical input; it applies only NixOS policy and validates the matching source fragment. Fedora now validates the shared fragment, including radio prerequisites, rather than validating only local copies.

Source compatibility remains an explicit gate: the shipping pin 5d7c3e7 (and integration tip 23827fe8 checked during this audit) does not contain the aurora-wip radio rename/AVE/runtime-PM/USB4-tunnel/DRAM changes. ALARM/Fedora resolve those options from the matching source fragment; NixOS must refresh its canonical ALARM snapshot for the same pin, but this PR does not claim to backport their implementations. See docs/universal-kernel-config.md for the feature contract. The source pin is retained pending the source-line decision.

Canonical ALARM snapshot: 493e18f, SHA256 0eecd1615eadf03039f945bbe57aa8f94dbb9714605c520f62e4d3d248c54e44. NixOS vendors those exact bytes and rejects a mismatched kernel pin or hash before building. It adds only NixOS policy.

Resolved config diff (ARM64, LLVM 22.1.6 / Rust 1.97.1, exact pin 5d7c3e7; absent symbols normalized to n):

Comparison Before After
Mismatches against all 133 shared hardware requests 2 0
Changed symbols versus fleet11 release.config 6003 6001
Changed symbols versus defconfig + asahi.config 5159 5157
Resolved before/after changes 0 2
SPI_HID_APPLE_OF y m
SPI_HID_APPLE_CORE y m

The final matrix uses the exact committed config inputs. Fedora and Arch now differ in only 10 security/SELinux/release settings; NixOS differs from Arch only in LOCALVERSION. Existing generic external-device support is preserved, and Fedora gains the generic dock/memory settings Arch and NixOS already had.

Fleet11 is the original 4db3a5a2 release input (config SHA256 af48f771780da4111f2973f67171f834e02d4ed27b823d4f97545b3b7e8b76bf), independently checked against its original output. The broader differences include distribution policy, non-Apple drivers and KUnit selections; this is not a claim of whole-config equality. In particular USERFAULTFD remains disabled in the distro bases versus enabled in fleet11. Shared hardware agreement and whole-config agreement are separate measurements.

Forward validation at 8348f824 also passes on all three: ALARM resolves hardware once for that source; NixOS consumes that resolved result and applies only its policy. All 134 shared requests match. The probes explicitly assert PCIE_APPLE_T8140_BOOTSTRAP=y, MT7932_FULLMAC=m, BT_MTK7932_PCIE=m, VIDEO_APPLE_AVE=m, DRM_ACCEL_ANE=m, PM=y, APPLE_ADMAC=m, I2C_APPLE=m, USB4=m, USB4_APPLE_SOC=m, RESET_APPLE_CIO=y, PCIE_APPLE=y and APPLE_PMP_REPORT=y. Both source matrices verify NixOS differs from ALARM only in LOCALVERSION.

A deliberate Kconfig-only replay of the old shipping snapshot against the newer source drops bootstrap/Wi-Fi/Bluetooth/AVE. NixOS now rejects a stale snapshot kernel pin or changed hash before configuration. Future source promotion must refresh ALARM's canonical snapshot and its NixOS provenance together. These forward probes change no shipping pin and prove no runtime behavior.

Validation completed through controller-approved buildbox slots on the final configuration inputs: native Linux suites Fedora 212, ALARM 171, NixOS 192 (575 total), and both complete source/distro config matrices pass. The canonical ALARM and vendored NixOS snapshots are byte-identical. NixOS hosted evaluation passes with the provenance assertions forced on its real build input. Complete symbol comparisons and failure/rollback evidence remain in the local audit report. No kernel Image/modules build or device qualification is inferred from config-only gates. CI on final commits is green:

Distro Final head Kernel package CI
Fedora 136be48 passed
ALARM 493e18f passed
NixOS d578f52 passed

All current-head checks succeed; unrelated manual graphics/x86 jobs are skipped by the existing workflow conditions. No checks were weakened. NixOS evaluation, source checks and overlay tests also pass.

Parity: Fedora #77, Arch #61, NixOS #64. CI is green. This remains a draft because the shipping integration pin still lacks the newer source implementations discussed above; no package channel or device deployment is promoted.

Apply asahi.config before NixOS policy instead of only validating it against a retained Arch config. Retire the local common hardware copy.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
RyanTheTide and others added 2 commits October 31, 2026 16:37
Continue DJ’s #51 snapshot inheritance and #48 desktop policy. Refresh from the resolved ALARM config, apply only NixOS policy, and reject stale kernel/config provenance during evaluation. ALARM #44 remains the distribution-base foundation.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Force the provenance and kernel-pin checks on the configure input itself as well as the NixOS feature view.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@RyanTheTide
RyanTheTide marked this pull request as ready for review October 31, 2026 10:38
@RyanTheTide
RyanTheTide merged commit e2e8213 into main Oct 31, 2026
3 checks passed
@RyanTheTide
RyanTheTide deleted the fu-universal-kernel-config branch October 31, 2026 10:38
RyanTheTide added a commit that referenced this pull request Nov 5, 2026
The v2 tip: speakerguardd#63, #64, #66, #67, #69, #70, #71. The packaged files are unchanged.
Fleet gate (gate.json, upstream's, unchanged here): units at parity: spp3, atsp; spp3: J316s, J413, J616s; atsp: J274, J293, J313, J375C, J375D, J473, J474s, J475C, J475D, J493.

Signed-off-by: Ryan Murray <81541646+RyanTheTide@users.noreply.github.com>
Assisted-by: LLM
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