Skip to content

Conversation

@pamaury
Copy link
Contributor

@pamaury pamaury commented Jan 29, 2026

Backport #26987. Depends on #29204, only review last 3 commits.

Allow `spi_device_cmd_get` to operate in a non-blocking fashion.  This
allows the rescue protocol to time out after a period of inactivity.

Signed-off-by: Chris Frantz <cfrantz@google.com>
(cherry picked from commit 6564a9b)
Add a `skip_once` parameter to rescue entry.  This allows the ROM_EXT to
send a message to itself to skip rescue detection (and entry) once on
the next boot.

Signed-off-by: Chris Frantz <cfrantz@google.com>
(cherry picked from commit 8e820ba)
Signed-off-by: Chris Frantz <cfrantz@google.com>
(cherry picked from commit 2933902)
1. Enter rescue on boot failure.
2. Exit rescue after a peroid of inactivty.  The inactivty timeout is
   cancelled if there is any rescue activity at all.

Signed-off-by: Chris Frantz <cfrantz@google.com>
(cherry picked from commit ceedca4)
Parameterize builds of the `test_owner` module and associated ROM_EXTs
to avoid copy/pasting of the `cc_library` and `opentitan_binary` rules.

Signed-off-by: Chris Frantz <cfrantz@google.com>
(cherry picked from commit 59e6e66)
@pamaury pamaury requested review from a team and cfrantz as code owners January 29, 2026 10:21
@pamaury pamaury requested review from alees24 and jwnrt and removed request for a team January 29, 2026 10:21
cfrantz and others added 4 commits January 29, 2026 12:51
Add tests for the rescue enter-on-fail and inactivity timeout features.

Signed-off-by: Chris Frantz <cfrantz@google.com>
(cherry picked from commit b3e481f)
This change prevents the algorithm confusion attack, which can downgrade a
hybrid key to ECDSA-only.

Change-Id: Ice80075e930c0eb0e092ad1fe7a2840cc4a99db2
Signed-off-by: Yi-Hsuan Deng <yhdeng@google.com>
(cherry picked from commit 5d30608)
This updates the newversion_test harness to accept the SPX keys and adds
an e2e test for the newversion mode update using SPX keys.

Change-Id: I5b948339b20e85c2df3084d0ee7d13bb4cdd1bfd
Co-authored-by: Anthony Chen <antchen@google.com>
Signed-off-by: Yi-Hsuan Deng <yhdeng@google.com>
(cherry picked from commit fa6c29e)
This change adds a e2e test to ensure rom_ext prevents the attack.

Change-Id: I124f43b315930a799df3c1156f810cb646e6c219
Signed-off-by: Yi-Hsuan Deng <yhdeng@google.com>
(cherry picked from commit c47d5b5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants