Repository navigation
soc: apple: sep: describe what SEP_BIO_REARM does with its secret - #2885
Merged
Merged
Conversation
The comment on SEP_BIO_REARM says the password is used to unwrap a re-arm record. It is not: the driver copies the secret in and wipes it unused, and ends the enclave's lockout with the stored secret of the configured user's key bag. The failed attempts, the lockout and the wait for the first password since boot are also kept once for the machine, not per account. Describe that, so that a caller does not rely on the kernel to check the password or to scope the re-arm to one account. No change to the ABI or to what the ioctl does. Signed-off-by: Ryan Murray <[email protected]>
Contributor
Author
|
Review at 3f67ead (non-author). The new text matches
Optional precision: "the configured user's key bag" could say "the key bag of the single Touch ID user domain", since the code uses Assisted-by: LLM (Claude:Opus 5.5) |
DjDeveloperr
approved these changes
Nov 22, 2026
DjDeveloperr
left a comment
Contributor
There was a problem hiding this comment.
Formal §1–§6 review at 3f67ead4c2c8.
- Accuracy: Verified against
drivers/soc/apple/sbio.rsonintegration/aurora:rearm_after_password()ignores_password(copied in and wiped unused).bio_after_boot,bio_lockout, andbio_nomatch_streakare single device-wide atomics (not per-account).clear_enclave_lockout()unlocks viaDesignateUser::new(SBIO_PROBE_USER_ID)andstored.secret().
- §1–§6: Comment-only UAPI documentation fix (
include/uapi/linux/apple-sep.h), zero ABI/declaration changes, no model gates, clean-room, human commit/committer +Signed-off-bywith zero AI trailers in commit andAssisted-by:in PR body, no forbidden naming. - CI: All 7/7 checks green (
host-tests,kunit,source,rust-build,DWC3/ATCx3).
No blockers. Approved.
Assisted-by: LLM (Gemini 4 Neon)
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.
Problem
The UAPI comment on
SEP_BIO_REARMsays the password passed in is used to unwrap a re-arm record. The driver does not do that: it copies the secret in and wipes it unused, and ends the enclave's lockout with the stored secret of the configured user's key bag. The comment also does not say that the failed attempts, the lockout and the wait for the first password since boot are kept once for the machine.Change
Comment only: describe what the ioctl does with the secret and that its state is machine-wide, so a caller does not rely on the kernel to check the password or to scope the re-arm to one account. No ABI or behaviour change.
Testing
make headers/ UAPI header test build unaffected (no declarations changed).Assisted-by: LLM (Claude:Opus 5.5)