Skip to content

[RFC] MCU ROM Patching via PMP trap-and-patch#1163

Open
Razer6 wants to merge 1 commit into
chipsalliance:mainfrom
Razer6:rfc-rom-patching
Open

[RFC] MCU ROM Patching via PMP trap-and-patch#1163
Razer6 wants to merge 1 commit into
chipsalliance:mainfrom
Razer6:rfc-rom-patching

Conversation

@Razer6
Copy link
Copy Markdown

@Razer6 Razer6 commented Jun 3, 2026

This RFC proposes an authenticated software ROM patching mechanism for MCU ROM using existing VeeR EL2 PMP support. Patch records are stored in OTP, verified with Ed25519, copied into SRAM, synchronized with fence.i, and dispatched through PMP instruction access faults on 4-byte NA4 no-execute ROM entries.

The RFC covers boot-time setup, trap dispatch, patch ABI restrictions, OTP record format, supersession, CRITICAL behavior, Ed25519 verification, SRAM reservations, DICE measurement impact, and threat model.

The RFC is included in the PR to better allow commenting on specific parts. A rendered version of the RFC can be found in https://github.com/Razer6/caliptra-ss/blob/rfc-rom-patching/rfc/rfc-0001-mcu-rom-patching.md

/cc @davidschrammel @sameo @rsahita

Related: chipsalliance/caliptra-sw#3399

This RFC proposes an authenticated software ROM patching mechanism for
MCU ROM using existing VeeR EL2 PMP support. Patch records are stored in
OTP, verified with Ed25519, copied into SRAM, synchronized with
fence.i, and dispatched through PMP instruction access faults on 4-byte
NA4 no-execute ROM entries.

The RFC covers boot-time setup, trap dispatch, patch ABI restrictions,
OTP record format, supersession, CRITICAL behavior, Ed25519
verification, SRAM reservations, DICE measurement impact, and threat
model.

Related: chipsalliance/caliptra-sw#3399
Signed-off-by: Robert Schilling <rschilling@meta.com>
@linux-foundation-easycla
Copy link
Copy Markdown

CLA Not Signed

@Razer6 Razer6 changed the title [RFC] Add RFC-0001 for MCU ROM PMP trap-and-patch [RFC] MCU ROM Patching via PMP trap-and-patch Jun 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant