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

refactor(core/sys): make writing bootargs a privilege, not a convention

Public commit record

What the developer wrote

Authored by tychovrahe

97/100 · Strong
refactor(core/sys): make writing bootargs a privilege, not a convention

The smcall surface exposed a raw bootargs setter, letting unprivileged code name
any boot command. It had no user -- firmware goes through the reboot_* calls in
bootutils.h, each of which fixes its own -- so remove it rather than filter it.
The dispatch's fatal default is then the enforcement.

Make the rule structural too: bootargs_set is declared only under SECURE_MODE,
and system_emergency_rescue is compiled only where bootargs can be written. It
linked before only because --gc-sections dropped it as unreferenced.

[no changelog]

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope✓ Provides detailed explanatory context✓ Explains rationale or failure mode
The short version

What changed, and why it matters

This commit removes a low-level interface that let any software component tell the device what to do on its next reboot. The change makes reboot control a privileged operation only, so unprivileged code can no longer pick arbitrary boot commands. It is a hardening/refactoring change rather than a documented fix for a specific active bug.

Recommended action

Treat as a positive hardening change. Review whether any downstream firmware or test code still expected SMCALL_BOOTARGS_SET or bootargs_set() from unprivileged contexts, since the enum value was renumbered and the symbol is now conditionally compiled. No immediate incident response is indicated by the commit materials alone.

Security signals we found

01

Removal of unprivileged secure-monitor call SMCALL_BOOTARGS_SET

02

bootargs_set() now gated behind SECURE_MODE build flag

03

system_emergency_rescue() now compiled only where bootargs can be written

04

Commit message describes prior surface as letting unprivileged code name any boot command

05

No changelog entry, tagged as refactor

Risk score

Why this scored 60/100

Our methodology →
Potential impact 18/30
Exploitability 14/25
Stealth signal 8/15
Affected reach 10/15
Confidence 7/10
Evidence quality 3/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.