Skip to content

20261029-misc-fixes - #11934

Open
douzzer wants to merge 4 commits into
wolfSSL:masterfrom
douzzer:20261029-misc-fixes
Open

douzzer wants to merge 4 commits into
wolfSSL:masterfrom
douzzer:20261029-misc-fixes

Conversation

@douzzer

@douzzer douzzer commented Oct 30, 2026

Copy link
Copy Markdown
Contributor

linuxkm/Kbuild: fix+improve handling for CONFIG_MITIGATION_RETPOLINE, CONFIG_MITIGATION_RETHUNK, and CONFIG_OBJTOOL. Also tabify some whitespace.

wolfssl/wolfcrypt/wc_compat.h: in wc_AesGcmEncrypt_compat_shim(), wipe tag and output to match wc_AesGcmEncrypt().

wolfcrypt/test/test.c: don't define SLHDSA_TEST_CERT if WOLFSSL_NO_MALLOC (not compatible).

wolfcrypt/benchmark/benchmark.c: refactor key init/free in bench_frodokem_keygen(), bench_frodokem_encap(), and bench_frodokem(), to fix uninited-key free ops.

… CONFIG_MITIGATION_RETHUNK, and CONFIG_OBJTOOL. Also tabify some whitespace.
…e tag and output to match wc_AesGcmEncrypt().
…okem_keygen(), bench_frodokem_encap(), and bench_frodokem(), to fix uninited-key free ops.
Copilot AI balanced review requested due to automatic review settings October 30, 2026 04:42
@github-actions

github-actions Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

Unresolved issues include out-of-bounds authentication-tag zeroization, broken kernel return-thunk mitigation handling, and compilation failures in supported configurations.

4 open issues
What changed in this PR

This PR addresses compatibility and cleanup issues in wolfSSL’s Linux kernel integration, AES-GCM shim, and cryptographic tests and benchmarks.

Changes:

  • Correct kernel mitigation flag handling and adjust objtool controls.
  • Add ciphertext and tag wiping on AES-GCM shim failures.
  • Refactor FrodoKEM benchmark key lifetimes and exclude SLH-DSA certificate tests from no-malloc builds.
File Description
wolfssl/​wolfcrypt/​wc_compat.h Wipe output and authentication tags after streaming-shim failures.
wolfcrypt/​test/​test.c Disable SLH-DSA certificate tests with WOLFSSL_NO_MALLOC.
wolfcrypt/​benchmark/​benchmark.c Adjust FrodoKEM key initialization, generation, and cleanup.
linuxkm/​Kbuild Update mitigation flags, legacy configuration aliases, and objtool handling.

Review effort: Balanced

Comment thread linuxkm/Kbuild
Comment on lines +267 to +268
undefine CONFIG_OBJTOOL
undefine CONFIG_STACK_VALIDATION
@@ -84,12 +84,21 @@
return BAD_FUNC_ARG;
#endif
ret = wc_AesGcmInit(aes, NULL /* key */, 0 /* len */, iv, ivSz);
if (ret != 0)
goto exit;

ret = wc_FrodoKemKey_MakeKey(key1, &gRng);
* Init/Update failure paths authTag was never written, so there this
* is contract uniformity rather than leak repair. */
if (out != NULL)
wc_ForceZero(out, sz);

@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 #11934

Scan targets checked: wolfcrypt-src, wolfcrypt-bugs, wolfssl-src, wolfssl-bugs
Not reviewed (no scan target covers them): linuxkm/Kbuild, wolfcrypt/benchmark/benchmark.c
Coverage: 2 of 2 in-scope changed file(s) opened by the reviewer

Fenrir result: Approved ✅

No new issues found in the changed files.

Advisory only — this automated result does not count as a GitHub approval.

Review tier: Lite

@philljj philljj assigned philljj and douzzer and unassigned wolfSSL-Bot Oct 30, 2026
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.

5 participants