Skip to content

20260604-asm-and-linuxkm-fixes#10600

Merged
SparkiDev merged 4 commits into
wolfSSL:masterfrom
douzzer:20260604-asm-and-linuxkm-fixes
Jun 5, 2026
Merged

20260604-asm-and-linuxkm-fixes#10600
SparkiDev merged 4 commits into
wolfSSL:masterfrom
douzzer:20260604-asm-and-linuxkm-fixes

Conversation

@douzzer
Copy link
Copy Markdown
Contributor

@douzzer douzzer commented Jun 4, 2026

wolfcrypt/src/port/arm/armv8-32-curve25519.S and wolfcrypt/src/port/arm/armv8-32-curve25519_c.c: fix MPI overflow in L_curve25519_inv_8, similar to fix in #10536 (efabd1844a).

wolfcrypt/src/port/ppc64/ppc64-aes-asm.S: use TOC-relative addressing consistently, and add ELFv2 global-entry prologues. fixes runtime linker errors on #9852 (9c78fe2).

wolfssl/wolfcrypt/settings.h: for WOLFSSL_LINUXKM, force on NO_STDDEF_H to avoid conflicts with linux/stddef.h, which is always included indirectly in linuxkm_wc_port.h (via linux/kernel.h); fix indentation in WOLFSSL_uITRON4 section.

linuxkm/module_hooks.c: tweak wc_linuxkm_malloc_usable_size() and my_kallsyms_lookup_name(), moving wc_linuxkm_can_block() to where it's really needed in my_kallsyms_lookup_name().

fixes ARM32 asm

FAILURES:
   409: test_wc_curve25519_shared_secret_ex_kat

and ppc64 asm

testsuite/.libs/testsuite.test: error while loading shared libraries: ./src/.libs/libwolfssl.so.44: R_PPC64_ADDR16_HA reloc at 0x00007fafbc8e001a for symbol `' out of range
================================================================================
testsuite.test for scenario cross-powerpc64-all-asm exited with status 127.

Also fixes noise in some wolfguard.ko builds around redefinition of offsetof().

detected by and tested with

wolfssl-multi-test.sh ...
check-source-text
quantum-safe-wolfssl-all-cross-armv7a-armasm-unittest
quantum-safe-wolfssl-all-cross-armv7a-armasm-unittest-Os
quantum-safe-wolfssl-all-cross-armv7a-armasm-unittest-Os-sanitizer
quantum-safe-wolfssl-all-cross-armv7a-armasm-unittest-Os-smallstack
cross-powerpc64-all-asm
cross-powerpc32-all-asm
'.*dev.*cust-kernel.*'
linuxkm-legacy-3.16
'linuxkm-legacy.*insmod'
linuxkm-fips-dev-insmod-wolfguard-compkey
linuxkm-fips-dev-insmod-wolfguard-cust-kernel-3

douzzer added 4 commits June 4, 2026 14:12
…rm/armv8-32-curve25519_c.c: fix MPI overflow in L_curve25519_inv_8, similar to fix in wolfSSL#10536 (efabd1844a).
…kallsyms_lookup_name(), moving wc_linuxkm_can_block() to where it's really needed in my_kallsyms_lookup_name().
…_H to avoid conflicts with linux/stddef.h, which is always included indirectly in linuxkm_wc_port.h (via linux/kernel.h);

fix indentation in WOLFSSL_uITRON4 section.
… consistently, and add ELFv2 global-entry prologues.
Copy link
Copy Markdown

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

Choose a reason for hiding this comment

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

Fenrir Automated Review — PR #10600

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

No new issues found in the changed files. ✅

@SparkiDev SparkiDev merged commit eeab532 into wolfSSL:master Jun 5, 2026
478 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

For This Release Release version 5.9.2

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants