Repository navigation
Recheck Touch ID sensor status after registration - #303
Merged
Merged
Conversation
Registration can clear and authenticate the sensor session after the wake status was sampled. Read status again before trusting the patch acknowledgement, refuse unreadable or silent status, and send an explicit needs-patch state through the existing patch sequence. Preserve capture failures and enrolled identities. Assisted-by: LLM Signed-off-by: Ryan Murray <[email protected]>
Run the actual wake_sensor body with synthetic registration and status mocks. Check register-before-status ordering, stale accepted acknowledgement followed by needs-patch, unreadable and silent status, fresh accepted readiness, and missing acknowledgement. Assisted-by: LLM Signed-off-by: Ryan Murray <[email protected]>
The capture work item and the ioctl path both talk to the SBIO endpoint, which has one out-of-line buffer and one reassembly state. GET_INFO and ENROL_START list the enclave's identities before waiting for the last work item, so libfprint cancelling an identify and starting the next one lands that request in the middle of the previous work item's sensor registration. The second caller is then refused with EBUSY, or, when it starts between a completed reply and its collection, clears that reply and the first caller takes the second caller's answer. Hold an exchange lock for the whole request and reply, as the key store already does with sks_exchange_lock. The receive path does not take it. Assisted-by: LLM Signed-off-by: Ryan Murray <[email protected]>
Compile the driver's sbio_transfer_raw against a threaded enclave mock and run a work-item exchange and an ioctl exchange at the same time. Each must get its own reply. Without the exchange lock the ioctl side is refused with EBUSY in every round. Assisted-by: LLM Signed-off-by: Ryan Murray <[email protected]>
This was referenced Oct 15, 2026
RyanTheTide
marked this pull request as ready for review
October 15, 2026 07:28
This was referenced Oct 15, 2026
apple: platform polish (mailbox, DART, SPI, RTKit logging; DART KUnit fix; DTB-neutral DT tidy)
#314
Merged
Merged
Merged
Merged
Merged
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.
Sensor registration can clear and authenticate a new sensor session after
wake_sensorhas sampled status. The old fast path could trust that stale patch acknowledgement and proceed to capture while the sensor reports state 9 (needs patch).Re-read status after registration. Refuse unreadable/silent status, and use the existing patch sequence when the fresh acknowledgement is absent or the sensor still needs a patch. Enrollment, authentication, patch implementation, and capture error handling remain unchanged.
Validation: the actual
wake_sensorbody runs with synthetic status/registration mocks across five scenarios, asserting registration precedes the second status read. The fixture passes this change and fails against the original 5f function. A separate, strict SEP-only module build passes with Clang 22.1.6, Rust 1.97.1 and bindgen 0.73.2 using the unchanged7.1.12-aurora-g5f6c917configuration. Module-version CRCs are disabled in that configuration; no CRC compatibility claim is made.Update 2026-10-15: two more commits, and hardware qualification
The branch now also carries:
GET_INFOused to run during the old work item's sensor registration. One side then gotEBUSY("did not register the sensor", "sensor did not come back online"), or in a narrow window took the other side's reply. Exchanges are now serialised.Hardware (the earlier note about an unverified trial is superseded):
fprintd-listafter every resume. No "state 9" and no "status unavailable after registration".Risk
Hardware qualification (MacBook Neo J700, 2026-10-15)
This series was qualified on the Neo inside the 2026-10-15 release stack: aurora-wip ac89582 plus, in merge order, tipd polish, input polish, speaker KUnit, SEP (#303), DCP sleep fixes, platform polish, audio polish, radio polish, power polish and fixes, and storage polish. It used the published 5f config with LLVM=1 and clang 22, and modules installed with INSTALL_MOD_STRIP=1. Each test was a one-shot GRUB boot. The saved default stayed on the public 5f kernel. The DTB came from Stage 2 and was not changed.
Results on the release kernels (7.1.12-aurora-rel-g257ca7bed, then -g3faecd4f7 with audio and radio added), and on the earlier integration kernels that also carried the held USB wake line (-integ-ge78a80fd8, -g07a8a7ff4, -g32b5436bd):
runningwith no failed units.neo-public5f-20261015). No new kernel warning types appeared. These went away as expected: dockchannel "keyboard is not initialized", AOP "Unknown oslog message", and the PMGR "always-on domain ... not on at boot" ×8 (now info).dcp-s2idle-regress.sh 6 30 5, 6/6 cycles per run, 3 runs. The DCP mailbox rate in s2idle was about 3 IRQ/s, down from about 62/s.tools/aurora-wake/s2idle-rtc-regression.sh -c 5 -s 20passed 5/5 per run. W1 ran 10 RTC cycles with the lsusb count steady at 13, and no "HC died", Host System Error or DART fault.Evidence:
/Volumes/AuroraS500/aurora-ctl/artifacts/integ-20261015/(per-boot dmesg, journal and checks; scripts are inscripts/).🤖 Generated with Claude Code