Skip to content

Regression testing fixes#10596

Open
SparkiDev wants to merge 2 commits into
wolfSSL:masterfrom
SparkiDev:regression_fixes_24
Open

Regression testing fixes#10596
SparkiDev wants to merge 2 commits into
wolfSSL:masterfrom
SparkiDev:regression_fixes_24

Conversation

@SparkiDev
Copy link
Copy Markdown
Contributor

Description

  1. Side-aware ML-KEM in TLS (tls.c, tls13.c, ssl.c, internal.h): TLSX_IsGroupSupported/TLSX_UseSupportedCurve take a side arg; new TLSX_IsMlKemGroupSupported + client/server support macros. A build only capable of one ML-KEM op no longer advertises groups it can't use for its role.

  2. NO_ASN_TIME support (ssl_asn1.c, ssl.h, settings.h): data-only ASN1_TIME APIs now compile without system time; OCSP responder auto-disabled under NO_ASN_TIME.

  3. SP ECC (sp_.c, sp_x86_64_asm.asm): curve b constants and sp_ecc_is_point_ always compiled (point-check available in more configs); asm movsxd -> movsx.

  4. configure.ac: BUILD_MEMUSE fixed to trigger on != "xno".

  5. Test fixes: HRR-aware TLS 1.3 memio tests (new test_memio_msg_is_hello_retry_request); tightened build guards (Ed25519/Ed448 key-import, AES decrypt, XMSS heights, SP sizes, static-PSK).

Testing

Regression testing.

@SparkiDev SparkiDev self-assigned this Jun 4, 2026
@SparkiDev
Copy link
Copy Markdown
Contributor Author

SP code changes generated by PR:
https://github.com/wolfSSL/scripts/pull/583

@SparkiDev SparkiDev force-pushed the regression_fixes_24 branch from f7b3dc0 to 4361ba4 Compare June 4, 2026 05:23
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 4, 2026

MemBrowse Memory Report

gcc-arm-cortex-m3

  • FLASH: .text +24 B (+0.0%, 120,597 B / 262,144 B, total: 46% used)

gcc-arm-cortex-m4

  • FLASH: .text +64 B (+0.0%, 197,998 B / 262,144 B, total: 76% used)

gcc-arm-cortex-m4-dtls13

  • FLASH: .text +128 B (+0.1%, 178,712 B / 1,048,576 B, total: 17% used)

gcc-arm-cortex-m4-openssl-compat

  • FLASH: .text +512 B (+0.1%, 764,820 B / 1,048,576 B, total: 73% used)

gcc-arm-cortex-m4-pq

  • FLASH: .text +128 B (+0.0%, 276,248 B / 1,048,576 B, total: 26% used)

gcc-arm-cortex-m4-rsa-only

  • FLASH: .text +128 B (+0.0%, 321,720 B / 1,048,576 B, total: 31% used)

gcc-arm-cortex-m4-tls12

  • FLASH: .text +64 B (+0.1%, 121,357 B / 262,144 B, total: 46% used)

gcc-arm-cortex-m4-tls13

  • FLASH: .text +64 B (+0.0%, 233,504 B / 262,144 B, total: 89% used)

gcc-arm-cortex-m7-pq

  • FLASH: .text +128 B (+0.0%, 276,824 B / 1,048,576 B, total: 26% used)

gcc-arm-cortex-m7-tls13

  • FLASH: .text +128 B (+0.1%, 233,568 B / 262,144 B, total: 89% used)

linuxkm-pie

  • Data: __patchable_function_entries +8 B (+0.0%, 24,176 B)

linuxkm-standard

  • Data: __patchable_function_entries +8 B (+0.0%, 45,880 B)

stm32-sim-stm32h753

@SparkiDev SparkiDev force-pushed the regression_fixes_24 branch from 4361ba4 to d4be7f1 Compare June 4, 2026 07:01
@SparkiDev
Copy link
Copy Markdown
Contributor Author

Jenkins: retest this please

1. Side-aware ML-KEM in TLS (tls.c, tls13.c, ssl.c, internal.h):
TLSX_IsGroupSupported/TLSX_UseSupportedCurve take a `side` arg; new
TLSX_IsMlKemGroupSupported + client/server support macros. A build only
capable of one ML-KEM op no longer advertises groups it can't use for
its role.

2. NO_ASN_TIME support (ssl_asn1.c, ssl.h, settings.h): data-only
ASN1_TIME APIs now compile without system time; OCSP responder
auto-disabled under NO_ASN_TIME.

3. SP ECC (sp_*.c, sp_x86_64_asm.asm): curve `b` constants and
sp_ecc_is_point_* always compiled (point-check available in more
configs); asm movsxd -> movsx.

4. configure.ac: BUILD_MEMUSE fixed to trigger on != "xno".

5. Test fixes: HRR-aware TLS 1.3 memio tests (new
test_memio_msg_is_hello_retry_request); tightened build guards
(Ed25519/Ed448 key-import, AES decrypt, XMSS heights, SP sizes,
static-PSK).
@SparkiDev SparkiDev force-pushed the regression_fixes_24 branch from d4be7f1 to 26a2b79 Compare June 4, 2026 08:29
@SparkiDev SparkiDev assigned wolfSSL-Bot and unassigned SparkiDev Jun 4, 2026
@SparkiDev SparkiDev requested a review from wolfSSL-Bot June 4, 2026 09:17
Leak fixes: free existing ssl->buffers.key before overwriting in SetSSL_CTX() (internal.c) and wolfSSL_set_SSL_CTX() (ssl.c)

UAF fix: wc_CheckRsaKey() — mp_memzero_check(tmp) moved before the free (rsa.c)

Build guards: #ifndef NO_ED25519/ED448_VERIFY around forged-sig test data (test_ed25519/ed448.c); guard equal()/cmov() for verify-only builds (ge_operations.c); guard unused pointers under WOLFSSL_MLDSA_SIGN_SMALL_MEM_PRECALC (wc_mldsa.c)

Test cleanups (test.c): fix UB from out-of-range enum in hash_test(), always free AES dec object, fix der buffer declaration under small-stack builds
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