A failed identity attach leaves the system stick half attached #179

Open
opened 2026-11-11 21:33:54 +00:00 by rajames · 0 comments
Owner

Found

kernel/src/v4/sk_v4_identity.c: sk_v4_drive_arrived attaches Artemis and sets g_stick_in = 1 (~line 388) before the identity partition's blk_subsys_attach_device (line 398). If that fails it returns with Artemis attached, no identity, d->used unset; the message names xhci, not the partition. A later pull detaches Artemis (art_used), so it recovers.

Done when

  • Either both partitions are attached or neither is, with a message naming the identity partition

🤖 Filed with Claude Code -- the code review of 2026-11-11, at 4d42d25c (Captain Bob, 2026-11-11: "File the review findings as issues"). Read, not run: each is to be confirmed by a test written first and seen to fail.

### Found `kernel/src/v4/sk_v4_identity.c`: `sk_v4_drive_arrived` attaches Artemis and sets `g_stick_in = 1` (~line 388) before the identity partition's `blk_subsys_attach_device` (line 398). If that fails it returns with Artemis attached, no identity, `d->used` unset; the message names xhci, not the partition. A later pull detaches Artemis (`art_used`), so it recovers. ### Done when - [ ] Either both partitions are attached or neither is, with a message naming the identity partition 🤖 Filed with [Claude Code](https://claude.com/claude-code) -- the code review of 2026-11-11, at `4d42d25c` (Captain Bob, 2026-11-11: "File the review findings as issues"). Read, not run: each is to be confirmed by a test written first and seen to fail.
rajames added the
kind
bug
area/kernel
priority
nice
status
backlog
labels 2026-11-11 21:33:54 +00:00
Sign in to join this conversation.