Skip to content

Retry T6000 Touch ID sensor registration before enrollment - #526

Closed
acrogenesis wants to merge 2 commits into
omacom:integration/aurorafrom
acrogenesis:fix/t6000-touchid-enrol-registration
Closed

acrogenesis wants to merge 2 commits into
omacom:integration/aurorafrom
acrogenesis:fix/t6000-touchid-enrol-registration

Conversation

@acrogenesis

@acrogenesis acrogenesis commented Nov 26, 2026 •

Copy link
Copy Markdown
Member

On a 16-inch 2021 MacBook Pro with M1 Max (J316c, T6001), two enrollment requests ended before the first scan. The kernel logged enrol: the sensor did not come back online both times. One startup timed out reading the sensor serial. A later manual attempt on the same boot completed enrollment.

Allow up to three registration attempts on the T6000 profile before opening the enrollment in the enclave. Use the existing registration recovery to power-cycle and re-register the sensor. Check the original enrollment epoch before startup, between attempts, and again before proceeding to the enclave. Cancellation before startup leaves the sensor untouched. Cancellation after an attempt powers it down and records the settling interval for the next scan. Other profiles keep their single startup attempt. Capture, template creation, and persistence each follow their usual path once registration succeeds.

This change builds on the SEP driver by Dj and Ryan Murray and reuses Ryan's registration retry and session recovery commits. The corresponding pre-verification fix is in #525. The two branches apply cleanly together.

Verification

  • The host-side Rust harness exercises the production enrollment startup method and retry loop. It covers immediate success, recovery on the third attempt, exhausted attempts, cancellation during both a failed and successful attempt, an obsolete epoch, and a single-attempt profile. The existing verify/attach harness also passed.
  • The aarch64 Omarchy Lab built the reviewed enrollment patch at 53867b7f15fa together with soc: apple: sep: Retry T6000 sensor registration for verification and enrollment #525 against the guarded Stable backport. A separate diskless KVM guest booted the packaged 7.2.11-14-1-ARCH kernel and loaded that module with storage writes and key provisioning disabled. Module SHA-256 was a23715abeb74f355df620382aed2294f2c1a6906b06930cfa2c9556dec3cd254.
  • The original failures were observed on Omarchy with guarded Stable kernel 7.2.11-14-1-ARCH, OS firmware 13.5, and firmware-reported system version unknown. The combined module was subsequently booted on this M1 Max. The first enrollment hit a capture error during identification. A second enrollment completed and the newly enrolled print matched on a separate verification, with zero guard refusals. This run recorded no registration retry. Hardware test log summary. The desktop and sudo authentication results on this Mac are recorded in Omarchy #20223.

The J316c M1 Max can time out reading the sensor serial before its first scan. Retry registration while the original enrolment is live, before creating any enclave enrolment. Preserve the single startup attempt on other profiles.

Signed-off-by: Adrian Rangel <adrian@acrogenesis.com>
Signed-off-by: Adrian Rangel <adrian@acrogenesis.com>
@acrogenesis

Copy link
Copy Markdown
Member Author

Tested the enrollment and verification patches together on the built-in reader of a 16-inch M1 Max MacBook Pro (J316c/T6001) after reboot. The running SEP module’s build ID matched the combined ARM Lab artifact on kernel 7.2.11-14-1-ARCH. The xART guard was at level 1 with zero refusals at the start and end.

Using the Qt Fingerprint Setup window, the first enrollment returned enroll-unknown-error before any accepted sample. At the same time fprintd reported an error during “identify for enroll”, and the kernel reported sensor state 9 during verification capture. On the second enrollment request, fprintd emitted nine enroll-stage-passed events, then enroll-completed. A separate verification returned verify-match for the newly enrolled print.

The combined build completed real enrollment and verification. The kernel log contained no registration retry during this run, so it provides hardware coverage of the combined paths. Coverage of a failing enrollment registration followed by successful recovery still comes from the scripted driver tests. The first-attempt capture failure remains reproducible on this build.

@acrogenesis

Copy link
Copy Markdown
Member Author

Superseded by #525, which now contains both the enrollment and verification registration fixes. The original enrollment commits 4ad5bfb0cdf4 and 53867b7f15fa are part of that branch with their original sign-offs.

The combined Rust-backed tests passed. The M1 Max enrolled and independently matched the new fingerprint on the second attempt, after a first-attempt capture error during identification. Hardware results. Please continue kernel review on #525.

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