AI-generated analysisPublished automatically and not human-verified. Validated context appears in community notes below.
← Watch feed
Informational 19 Bitcoin

test(core): allow restarting core models via DebugLink

Public commit record

What the developer wrote

Authored by Roman Zeyde

95/100 · Strong
test(core): allow restarting core models via DebugLink

It is used for testing backup failures (see #6348).

[no changelog]
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope✓ Provides an explanatory body✓ Mentions testing or verification✓ Links an issue, advisory, or supporting reference
The short version

What changed, and why it matters

This commit adds a test-only debug feature that lets automated tests restart the Trezor device's main software loop. It is not a normal user feature and only works through the special DebugLink interface used during testing. The change is explicitly for improving backup-failure tests and is marked with '[no changelog]', meaning it is not intended for end users.

Recommended action

No immediate action required. Treat as test-infrastructure change. If auditing, verify that DebugLink is disabled in production builds and that DebugLinkStop cannot be reached from the normal USB/message stack.

Security signals we found

01

Debug-only code path: handler is inside `if __debug__:` block and only reachable via DebugLink

02

New message type DebugLinkStop added to debug dispatch table

03

RestartEventLoop exception used to reset device event loop without wiping storage

04

Client-side helper asserts model is in CORE_MODELS and syncs THP responses before restart

05

No changelog entry; explicitly test infrastructure

Risk score

Why this scored 19/100

Our methodology →
Potential impact 2/30
Exploitability 1/25
Stealth signal 1/15
Affected reach 2/15
Confidence 9/10
Evidence quality 4/5
Human-validated context

Community notes

Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.

No validated notes yet.

The AI analysis stands alone for now. Submit a note if you can add evidence or important context.