这是indexloc提供的服务,不要输入任何密码
Skip to content

[rom_ext] Add Bound Check to Next Minimum Security Version #27629

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jul 24, 2025

Conversation

ShadowBearVR
Copy link

As described in #27628, it is currently possible to set the minimum security version to the higher of the two security versions present in Slot A and Slot B. This should not be possible, as the minimum security version should be restricted to the lowest security version present on the system. This PR adds a check for this, and updates the existing unit tests to check this as well.

@ShadowBearVR ShadowBearVR force-pushed the min_sec_ver_fix branch 3 times, most recently from 81b8790 to dfa0d44 Compare July 14, 2025 22:33
@ShadowBearVR ShadowBearVR marked this pull request as ready for review July 14, 2025 22:40
@ShadowBearVR ShadowBearVR requested a review from a team as a code owner July 14, 2025 22:40
@ShadowBearVR ShadowBearVR requested review from pamaury and removed request for a team July 14, 2025 22:40
Adds an additional check to ensure that the requested security version
is not higher than the lowest security version in Slot A or Slot B.

Also corrects the requested_min_sec_ver variable to use the proper
field name.

Signed-off-by: Collin MacDonald <cmacd@google.com>
@ShadowBearVR ShadowBearVR force-pushed the min_sec_ver_fix branch 3 times, most recently from c0cb589 to be8ca89 Compare July 21, 2025 21:22
Updates the existing unit test to use the proper field name, and adds
new unit tests to verify that invalid security versions are correctly
rejected.

Signed-off-by: Collin MacDonald <cmacd@google.com>
Updates the existing e2e test with additional log statements, and
update the build file to use the correct manifest versions.

Signed-off-by: Collin MacDonald <cmacd@google.com>
@cfrantz cfrantz merged commit 8ab72c1 into lowRISC:earlgrey_1.0.0 Jul 24, 2025
91 of 95 checks passed
@ShadowBearVR ShadowBearVR deleted the min_sec_ver_fix branch July 25, 2025 15:10
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.

2 participants