Repository navigation
20261029-misc-fixes - #11934
20261029-misc-fixes#11934douzzer wants to merge 4 commits into
Conversation
… CONFIG_MITIGATION_RETHUNK, and CONFIG_OBJTOOL. Also tabify some whitespace.
…e tag and output to match wc_AesGcmEncrypt().
…LLOC (not compatible).
…okem_keygen(), bench_frodokem_encap(), and bench_frodokem(), to fix uninited-key free ops.
|
There was a problem hiding this comment.
🟡 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
| 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
left a comment
There was a problem hiding this comment.
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


linuxkm/Kbuild: fix+improve handling forCONFIG_MITIGATION_RETPOLINE,CONFIG_MITIGATION_RETHUNK, andCONFIG_OBJTOOL. Also tabify some whitespace.wolfssl/wolfcrypt/wc_compat.h: inwc_AesGcmEncrypt_compat_shim(), wipe tag and output to matchwc_AesGcmEncrypt().wolfcrypt/test/test.c: don't defineSLHDSA_TEST_CERTifWOLFSSL_NO_MALLOC(not compatible).wolfcrypt/benchmark/benchmark.c: refactor key init/free inbench_frodokem_keygen(),bench_frodokem_encap(), andbench_frodokem(), to fix uninited-key free ops.