Skip to content

soc: apple: sep: preserve unreadable and partial identity state - #962

Open
satchlj wants to merge 7 commits into
integration/aurorafrom
satchlj/port-234-20261104
Open

satchlj wants to merge 7 commits into
integration/aurorafrom
satchlj/port-234-20261104

Conversation

@satchlj

@satchlj satchlj commented Nov 5, 2026

Copy link
Copy Markdown
Member

Refuse unreadable and partial saved SEP identities instead of treating them as absent. Preserve Aurora’s newer orphan recovery and enrol preparation; no storage format or enclave protocol changes.

Port of omacom/linux-aurora#234. The original PR remains untouched.

Validation: arm64 defconfig + asahi.config, Image/modules/DTBs with BTF and KUnit enabled, LLVM 18/Rust 1.85.0, passed at stack top #345 (2565987465a2), which includes this branch. The validated integration base is b500668. QEMU loaded the test-bearing modules successfully with no additional failures. The combined run retains four pre-existing SEP store failures (plus their suite aggregate), reproduced on the unmodified Aurora base. The unmodified pinned base also crashes in apple-av-audio-lifetime/av_lifetime_devres_order; that unrelated audio suite is explicitly excluded. All tests added by these ports run through KUnit debugfs on Cortex-A76. This is not a fully green or complete-tree KUnit run. Store-open and identity/caller fixtures passed normally and with optimized Python. No 7.3 hardware boot or deployment has been performed.

Signed-off-by: Satya Benson <satya@benson.earth>
Signed-off-by: Satya Benson <satya@benson.earth>
catacomb::read() mapped every failure to None, which the enrollment,
restore, deletion and owner-probe paths read as "no saved catacomb".
Return Result<Option<_>> so that only a missing file reads as absent,
add is_saved()/is_absent() for the callers, and make read_stored()
propagate read errors so restore reports Failed rather than
NoStoredFile. Test both callers that run on these paths:
restore_catacomb() must fail without contacting the enclave on an
unreadable catacomb or host store, and the owner probe must stop before
its enclave check when the owner or master file cannot be read. Drop a
source-text assertion made redundant by the native boundary test.

Signed-off-by: Satya Benson <satya@benson.earth>
Signed-off-by: Satya Benson <satya@benson.earth>
Signed-off-by: Satya Benson <satya@benson.earth>
@satchlj

satchlj commented Nov 5, 2026

Copy link
Copy Markdown
Member Author

@DjDeveloperr @RyanTheTide ready for your regression testing. It hasn't been boot-tested on J613 with 7.3 yet; I'll post the result here when I have it.

@satchlj

satchlj commented Nov 6, 2026

Copy link
Copy Markdown
Member Author

J613 boot result on 7.3 (rubra, M3 MacBook Air 13", macOS 26.6.2 / 25G83 firmware), 2026-11-05.

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