Skip to content

RISC-V SM2 implementation CI regression #28731

Closed

Description

@t8m

RISC-V SM2 implementation does not work correctly anymore with dff94db applied.

That fix was added to avoid timing side channel in the modular inversion on ARM.

After that fix was applied to the master branch the RISC-V CI jobs fail:
https://github.com/openssl/openssl/actions/runs/18187228212/job/51774044227

        # INFO:  @ test/ec_internal_test.c:226
        # Testing curve brainpoolP512t1
        # 
        # INFO:  @ test/ec_internal_test.c:226
        # Testing curve SM2
        # 
        # ERROR: (bool) 'BN_is_one(b) == true' failed @ test/ec_internal_test.c:40
        # false
#         ok 81 - iteration 81
#         # OPENSSL_TEST_RAND_SEED=1759392980
#         not ok 82 - iteration 82
#     # OPENSSL_TEST_RAND_SEED=1759392980
#     not ok 5 - field_tests_default

Activity

  1. added
    issue: bug reportThe issue was opened to report a bug
    triaged: bugThe issue/pr is/fixes a bug
    severity: regressionThe issue/pr is a regression from previous released version
    and removed
    issue: bug reportThe issue was opened to report a bug
    on Oct 2, 2025
  2. modified the milestones: 4.0.0, 4.0.0 Beta Release on Oct 2, 2025
  3. t8m commented on Oct 2, 2025

    @t8m
    MemberAuthor

    @geliyaz Could you please look at this as the author of the RISC-V SM2 implementation?

  4. added
    severity: urgentFixes an urgent issue (exempt from 24h grace period)
    on Oct 2, 2025
  5. t8m commented on Oct 3, 2025

    @t8m
    MemberAuthor

    If we do not get a fix soon, we will have to revert #25918 unfortunately.

  6. added a commit that references this issue on Oct 4, 2025
    a848f9f
  7. added a commit that references this issue on Oct 6, 2025
    521ae4a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    branch: masterApplies to master branchseverity: regressionThe issue/pr is a regression from previous released versionseverity: urgentFixes an urgent issue (exempt from 24h grace period)triaged: bugThe issue/pr is/fixes a bug

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions