← Back to Pull requests

external: update RandomX v1.x fixes #11810

Open
unknown opened this pull request with 160 lines diff across 2 files
View on GitHub
unknown unknown commented on Nov 28, 2026 15:29 UTC
Author

summary

update RandomX from v1.2.3 to upstream v1.x commit befccbf. this includes the ARM64 light-mode JIT fix, which keeps the temporary dataset item on the allocated stack until it is read. on BSD ARM64, a signal could otherwise overwrite it and produce an incorrect hash. the same upstream range fixes cache replacement and detects JIT page-protection failures.

the new protection checks can throw after a VM is created. rx_slow_hash calls RandomX while holding C rwlocks, so the three affected calls now go through a small C++ guard that aborts on an exception instead of unwinding past a held lock. the successful hash path is unchanged.

this stays on RandomX v1; the v2 work in #10038 is separate.

testing

  • RandomX randomx-tests passed in Release and Debug on x86_64 and cross-compiled AArch64 under QEMU, including the JIT hash vectors

  • built Monero monerod, monero-wallet-rpc, unit_tests and functional_tests on Debian x86_64

  • full unit_tests CTest passed

  • functional RPC mining passed, including RandomX seed changes and block reorg/replay

  • in a C lock harness linked against the guard, a fault-injected post-creation mprotect failure aborts; the control hash succeeds and releases its rwlock
  • Diff: 160 lines (+120 / -40) across 2 files Reviewer: jpk68 Review duration: 3391m
    All Vouch review confidence checks passed
    Residual risk 0.19 = Change Risk (0.35) × (1 − Review Confidence (0.47)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.35 · 160 lines diff across 2 files
    0.35
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    46%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Shallow Review Depth shallow_review_depth
    0.344
    Diff Size diff_size
    0.304
    Real PR Conversation Timeline
    1 comments
    "Review active on #11810"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 46.7% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 34.8% (LOW) · Higher = larger blast radius
    34.8%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 46.7% · Lower = rushed or shallow review
    46.7%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 18.6% · Safe to merge
    18.6%