Skip to content

apple_sep: J413 (M2 Air) CREATE_KEYBAG fails with mailbox status -13 on every boot; /dev/sep-bio never appears #397

Open

Description

@shrimbly

Drafted with Claude Code from this machine's logs; reviewed by me before posting.

Turning on Touch ID fails at identity-keybag creation. It failed the same way on 2 of 2 attempts, including after a reboot. There is no EEXIST (unlike #369) and no guard refusal (unlike #209).

Machine: MacBook Air 13" M2, apple,j413 / apple,t8112, profile T8112/J415
Firmware: system 26.2, OS 13.5
Packages: linux-aurora 7.2.11.aurora14-1, m1n1-aurora 1.6.1.aurora22-1, omarchy-mac 0.2.3-2, libfprint-git 1:1.94.100.r10.g6f9479c-5, fprintd 1.94.5-2
Options: default guard (xart_guard level 1), xart_writes=1 provision_keybag=1 as written by touchid-enable; no local patches

Steps: run omarchy setup security fingerprint and agree to turn on Touch ID.

Expected: keybag is created and /dev/sep-bio appears.
Actual: Touch ID was not turned on: the Secure Enclave driver loaded but /dev/sep-bio never appeared

Log (second attempt, after reboot):

apple_sep: xART guard level 1: 10 session records exist, 0 created by Linux; the other 10 are protected
apple_sep 25e400000.sep: xART: APFS-resolved .gl extent (base 0x4d4000); 170 slots, 12 live records, max revision 5029, 0 malformed, 0 duplicate, 0 repaired; writes ENABLED
apple_sep 25e400000.sep: attach: 7 endpoints advertised in 18 messages
apple_sep 25e400000.sep: sks: CREATE_KEYBAG reply carried no parsable body: mailbox status -13, response 0 bytes, response_size 0
apple_sep 25e400000.sep: bringup: identity-keybag provisioning failed; no retry this boot
apple_sep 25e400000.sep: hwrng: registered after ready-phase survey (attempt 1)

Diag: attach=attached boot=warm keybag=failed keystore=open matching=unverified restore=unknown sensor=unbound sensor_attach=unknown touchid=failed xart=enabled xart_guard=1 xart_guard_list=loaded xart_guard_refusals=0

State: max revision was 5029 at both attempts. /var/lib/aurora-sep-keybag.bin is 52 bytes and was rewritten by the second attempt. I haven't changed it, the guard, or any other enclave state.

Questions:

  1. What does status -13 mean here?
  2. Is system firmware 26.2 the problem? j413 (MacBook Air 13" M2, 2022): Touch ID, GPU, s2idle and external display (USB-C DP) pass on aurora-2026.10.17.20 (upgrade from 12.6) #145 passes on J413 with 26.6.2. Should I update macOS, or is that unsafe in this state?
  3. Is it safe to retry with the 52-byte keybag file in place, or should it be removed first?

Activity

  1. shrimbly commented on Nov 7, 2026

    @shrimbly
    Author

    Same failure on an M3 Air (Mac15,12), same kernel and omarchy-mac version: omacom/omarchy#17885

  2. r3sonate commented on Nov 8, 2026

    @r3sonate

    Firmware details from the M3 Air in omacom/omarchy#17885, in case they help with the firmware question here:

    Machine: MacBook Air 13" M3, Mac15,12, profile T8122/J613
    Firmware: asahi,system-fw-version = 26.2, asahi,os-fw-version = 14.7
    iBoot: asahi,iboot1-version = iBoot-13822.61.10, asahi,iboot2-version = iBoot-10151.140.19.700.2
    Packages: linux-aurora 7.2.11.aurora14-1, omarchy-mac 0.2.3-2, libfprint-git 1:1.94.100.r10.g6f9479c-5, fprintd 1.94.5-2

    Same system firmware (26.2) as the J413 above, with the same CREATE_KEYBAG status -13. The driver reported boot=warm keybag=failed keystore=open touchid=failed sensor=unbound after the failed attempt.

    One caveat on comparing with #145: that Mac is on 26.6.2, but it also had Touch ID enrolled before its upgrade and was on an older kernel (7.1.12), so it may not have gone through keybag creation on that build.

    I haven't updated macOS, and I'm holding off on further attempts until it's clear whether retrying with the 52-byte /var/lib/aurora-sep-keybag.bin in place is safe.

    Posted by Claude Opus 5.5 via Claude Code.

  3. MrSlothuus commented on Nov 10, 2026

    @MrSlothuus

    Another M3 Air with the same failure, this one on system firmware 26.3 rather than 26.2, so it doesn't look specific to 26.2.

    Machine: MacBook Air 13" M3 (2024), apple,j613 / apple,t8122, profile T8122/J613
    Firmware: asahi,system-fw-version = 26.3, asahi,os-fw-version = 14.7
    iBoot: asahi,iboot1-version = iBoot-13822.81.10, asahi,iboot2-version = iBoot-10151.140.19.700.2
    Packages: linux-aurora 7.2.11.aurora14-1, m1n1-aurora 1.6.1.aurora22-1, omarchy-mac 0.2.3-2, libfprint-git 1:1.94.100.r10.g6f9479c-5, fprintd 1.94.5-2
    Options: default guard (level 1), xart_writes=1 provision_keybag=1 as written by touchid-enable; no local patches

    Steps: omarchy-setup-security-fingerprint, agree to turn on Touch ID.
    Result: Touch ID was not turned on: the Secure Enclave driver loaded but /dev/sep-bio never appeared. Identical on 2 of 2 logged attempts, the second after a restart.

    Log (second attempt, after restart):

    apple_sep: xART guard level 1: 10 session records exist, 0 created by Linux; the other 10 are protected
    apple_sep 29e400000.sep: xART: APFS-resolved .gl extent (base 0x4d4000); 170 slots, 12 live records, max revision 2016, 0 malformed, 0 duplicate, 0 repaired; writes ENABLED
    apple_sep 29e400000.sep: trusted-keys: registering "trusted" key type backed by the SEP ref-key seal
    apple_sep 29e400000.sep: attach: 7 endpoints advertised in 18 messages
    apple_sep 29e400000.sep: xART: using /chosen/apfs-preboot-uuid
    apple_sep 29e400000.sep: sks: CREATE_KEYBAG reply carried no parsable body: mailbox status -13, response 0 bytes, response_size 0
    apple_sep 29e400000.sep: bringup: identity-keybag provisioning failed; no retry this boot
    apple_sep 29e400000.sep: hwrng: registered after ready-phase survey (attempt 1)
    

    The first attempt's log is the same line for line, including 10 session records / 12 live records / max revision 2016.

    Diag: attach=attached boot=warm keybag=failed keystore=open matching=unverified restore=unknown sensor=unbound sensor_attach=unknown touchid=failed xart=enabled xart_guard=1 xart_guard_list=loaded xart_guard_refusals=0

    State: /var/lib/aurora-sep-keybag.bin is 52 bytes; it predates these two attempts and its mtime matches the second failure to the second. Because the file exists, the setup prompt says it "uses the key store for Linux that an earlier Touch ID setup created", though the driver still goes to CREATE_KEYBAG. I haven't changed the file, the guard, or any other enclave state, and am not retrying further.

    Posted by Claude Fable 5.2 via Claude Code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions