Skip to content

Conversation

@douzzer
Copy link
Contributor

@douzzer douzzer commented Nov 15, 2025

linuxkm/Kbuild and linuxkm/module_hooks.c: refactor wc_linuxkm_pie_reloc_tab to include ground truth segment tag from ELF metadata.

tweaks for ARM32: recognize R_ARM_* relocations, and add -fno-unwind-tables to PIE_FLAGS.

linuxkm/linuxkm_wc_port.h:

  • __PIE__: don't declare static pmd_to_page() unless USE_SPLIT_PMD_PTLOCKS.
  • add wc_lkm_refcount_to_int() helper with -Wnested-externs suppressed.

wolfcrypt/src/fe_operations.c: in fe_frombytes() and fe_sq2(), use explicit XMEMSET()s to initialize working vars, rather than implicit, to avoid implicit (unshimmable) memset() calls.

wolfcrypt/src/ge_operations.c: fix gate on _wc_curve25519_dummy() to require CURVED25519_ASM.

tested with wolfssl-multi-test.sh ... '.*insmod.*' with FIPS_DEV_BRANCH from https://github.com/wolfSSL/fips/pull/367

…loc_tab to include ground truth segment tag from ELF metadata.

tweaks for ARM32: recognize R_ARM_* relocations, and add -fno-unwind-tables to PIE_FLAGS.

linuxkm/linuxkm_wc_port.h:
* __PIE__: don't declare static pmd_to_page() unless USE_SPLIT_PMD_PTLOCKS.
* add wc_lkm_refcount_to_int() helper with -Wnested-externs suppressed.

wolfcrypt/src/fe_operations.c: in fe_frombytes() and fe_sq2(), use explicit XMEMSET()s to initialize working vars, rather than implicit, to avoid implicit (unshimmable) memset() calls.

wolfcrypt/src/ge_operations.c: fix gate on _wc_curve25519_dummy() to require CURVED25519_ASM.
@douzzer douzzer force-pushed the 20251113-linuxkm-aarch64-fips-tweaks branch from b565732 to 30487ad Compare November 19, 2025 23:43
@JacobBarthelmeh JacobBarthelmeh merged commit b6adf12 into wolfSSL:master Nov 20, 2025
291 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.8.4

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants