Repository navigation
soc: apple: sep: Recover sensor serial registration before enrollment and verification - #3674
Draft
acrogenesis wants to merge 3 commits into
Draft
acrogenesis wants to merge 3 commits into
acrogenesis wants to merge 3 commits into
Conversation
On a J316c the enclave accepted CLEAR_STATE but refused REGISTER_SERIAL with status 0x16 before the first scan. Enrollment also failed while reading the sensor serial. Use the existing bounded registration round when either serial exchange fails before a fresh verify or enrollment. Keep the nonce-session verify recovery and the attach and restore policies. A different failure still ends enrollment or a plain-session verify. Check whether the operation still owns the reader before bring-up and as it completes. An existing match that waits for finger lift keeps its registered sensor and match context together. An abandoned new request cannot open an enrollment or start a capture. No comparison is retried. This ports omacom/linux-aurora#525 onto the shared 7.3 capture path. The serial exchange and recovery policy build on Dj's and Ryan Murray's SEP driver and Ryan's prior registration and session recovery changes. The underlying intermittent sensor bring-up failure remains tracked in aurora-silicon#2322. Link: omacom/linux-aurora#525 Link: aurora-silicon#2322 Signed-off-by: Adrian Rangel <adrian@acrogenesis.com>
Setup needs to check the on-disk driver before enabling Touch ID. A driver can already have the storage guard and still fail to register the reader for an interactive operation on J316c. Expose t6000_registration=1 in an object linked into every apple-sep build. This identifies support for bounded retries before both verify and enrolment and is available to modinfo without loading the driver. Signed-off-by: Adrian Rangel <adrian@acrogenesis.com> (cherry picked from commit ee066bf4c74687c71ed44835c1b80d93b09f8b39)
Drive the production authentication adapter for a failed serial read, a refused registration, and an enclave that retains an unfinished registration. Check that a distinct 32-bit failure is final. Signed-off-by: Adrian Rangel <adrian@acrogenesis.com>
This was referenced Nov 30, 2026
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What: Recover a failed Touch ID sensor serial exchange before enrollment or verification. On a 16-inch M1 Max the sensor could refuse registration before the user made a first touch.
Tested:
e61ffc7e9passed 347 Apple SEP KUnit tests in a diskless aarch64 KVM guest. The host tests also ran on aarch64 with Rust 1.85. The J316c M1 Max hardware results below used the earlier 7.2 backport.Risk: Two-way door for Macs with a built-in Touch ID sensor. The change affects sensor startup and cancellation.
Not yet: A physical enrollment, verification and post-reboot match at
e61ffc7e9. The J313 M1 Air could not stage the old 7.2 kernel.Driver changes
A request that needs a fresh registration uses the existing recovery sequence, with at most three back-to-back attempts. A failed serial read and the exact 32-bit
REGISTER_SERIALreply0x16qualify for the additional attempts. Other errors keep their existing behavior. A working registration retained for the same authentication can be reused on the next touch.Cancellation is checked on entry and on completion. A request that ends during registration releases the sensor before enrollment or capture begins. Cancellation while waiting for lift in a still-open match preserves the pairing of that match with its registered sensor. The existing attach and cold-restore recovery policies remain in use. The driver exposes the
t6000_registration=1metadata that the packaging probe reads.The cause of intermittent sensor bring-up failures remains under investigation. Aurora issue #2322
Evidence and credits
CLEAR_STATEfollowed by aREGISTER_SERIALrefusal 26–33 ms after power-on. The earlier backport recovered a verification on retry. Enrollment and an independent match succeeded on the combined backport. The regression fixture models two consecutive refusals and recovery on the third, fresh registration. Original report and prior test resultsdrivers/soc/apple/sep.kunitconfigand executed allapple_sep*suites. The registration, wake and post-registration status fixtures passed. The separate SBIO exchange host fixture fails to compile on both the unmodified base and this branch because its mock condition variable lackswait_timeout.