Skip to content

harden forcezero and compiler barriers#10935

Open
stenslae wants to merge 1 commit into
wolfSSL:masterfrom
stenslae:fix/wcForceZero
Open

harden forcezero and compiler barriers#10935
stenslae wants to merge 1 commit into
wolfSSL:masterfrom
stenslae:fix/wcForceZero

Conversation

@stenslae

Copy link
Copy Markdown
Member

Description

Added DSE protection by using volatile pointers in ForceZero(). Also added memory clobber to XASM_VOLATILE where supported.

Testing

Added a forcezero_test().

Cross compiled architectures: x86_64, aarch64, arm32, and riscv64. Statically analyzed and passed forcezero_test().

Checklist

  • added tests
  • updated/added doxygen
  • updated appropriate READMEs
  • Updated manual and documentation

@stenslae stenslae self-assigned this Jul 16, 2026

@wolfSSL-Fenrir-bot wolfSSL-Fenrir-bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fenrir Automated Review — PR #10935

Scan targets checked: wolfcrypt-bugs, wolfcrypt-port-bugs, wolfcrypt-rs-bugs, wolfcrypt-src, wolfssl-bugs, wolfssl-src

No new issues found in the changed files. ✅

@github-actions

github-actions Bot commented Jul 16, 2026

Copy link
Copy Markdown

MemBrowse Memory Report

gcc-arm-cortex-m0plus

  • FLASH: .text -68 B (-0.1%, 64,115 B / 262,144 B, total: 24% used)

gcc-arm-cortex-m3

  • FLASH: .text -36 B (-0.0%, 122,469 B / 262,144 B, total: 47% used)

gcc-arm-cortex-m4

  • FLASH: .text -64 B (-0.0%, 200,320 B / 262,144 B, total: 76% used)

gcc-arm-cortex-m4-dtls13

  • FLASH: .text -64 B (-0.0%, 180,888 B / 1,048,576 B, total: 17% used)

gcc-arm-cortex-m4-openssl-compat

  • FLASH: .text -64 B (-0.0%, 771,212 B / 1,048,576 B, total: 74% used)

gcc-arm-cortex-m4-pq

  • FLASH: .text -64 B (-0.0%, 279,460 B / 1,048,576 B, total: 27% used)

gcc-arm-cortex-m4-rsa-only

  • FLASH: .text -64 B (-0.0%, 325,056 B / 1,048,576 B, total: 31% used)

gcc-arm-cortex-m4-tls12

  • FLASH: .text -64 B (-0.1%, 123,213 B / 262,144 B, total: 47% used)

gcc-arm-cortex-m4-tls13

  • FLASH: .text -64 B (-0.0%, 236,146 B / 262,144 B, total: 90% used)

gcc-arm-cortex-m7-pq

  • FLASH: .text -64 B (-0.0%, 280,036 B / 1,048,576 B, total: 27% used)

linuxkm-pie

  • Data: __patchable_function_entries +8 B (+0.0%, 25,568 B)

linuxkm-standard

  • Data: __patchable_function_entries +8 B (+0.0%, 48,256 B)

stm32-sim-stm32h753

@wolfSSL-Fenrir-bot wolfSSL-Fenrir-bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fenrir Automated Review — PR #10935

Scan targets checked: wolfcrypt-bugs, wolfcrypt-port-bugs, wolfcrypt-rs-bugs, wolfcrypt-src, wolfssl-bugs, wolfssl-src

Findings: 1
1 finding(s) posted as inline comments (see file-level comments below)

This review was generated automatically by Fenrir. Findings are non-blocking.

Comment thread wolfssl/wolfcrypt/wc_port.h Outdated
Comment thread wolfssl/wolfcrypt/wc_port.h Outdated

@wolfSSL-Fenrir-bot wolfSSL-Fenrir-bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fenrir Automated Review — PR #10935

Scan targets checked: wolfcrypt-bugs, wolfcrypt-port-bugs, wolfcrypt-rs-bugs, wolfcrypt-src, wolfssl-bugs, wolfssl-src

No new issues found in the changed files. ✅

@stenslae

Copy link
Copy Markdown
Member Author

jenkins retest this please

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