Skip to content

20250422-linuxkm-tweaks#8702

Merged
philljj merged 2 commits intowolfSSL:masterfrom
douzzer:20250422-linuxkm-tweaks
Apr 23, 2025
Merged

20250422-linuxkm-tweaks#8702
philljj merged 2 commits intowolfSSL:masterfrom
douzzer:20250422-linuxkm-tweaks

Conversation

@douzzer
Copy link
Contributor

@douzzer douzzer commented Apr 22, 2025

linuxkm/: null out pointers with PTR_ERR()-encoded values before jumping to cleanup;

linuxkm/lkcapi_rsa_glue.c: in km_rsa_init(), implement error-path cleanup;

linuxkm/module_hooks.c: nix CONFIG_MODULE_SIG requirement in WOLFCRYPT_FIPS_CORE_DYNAMIC_HASH_VALUE builds;

wolfssl/wolfcrypt/settings.h: in WOLFSSL_LINUXKM setup, define WOLFSSL_ASN_INT_LEAD_0_ANY if LINUXKM_LKCAPI_REGISTER (required for kernel 5.10 crypto manager);

wolfcrypt/src/memory.c: add WC_NO_ERR_TRACE() to mock error returns in SAVE_VECTOR_REGISTERS2_fuzzer().

tested with

wolfssl-multi-test.sh ...
check-source-text
linuxkm-5.10-all-crypto-cryptonly-intelasm-all-LKCAPI-no-twc-insmod-crypto-fuzzer-fallback-fuzzer
linuxkm-6.12-all-cryptonly-intelasm-fips-v6-dyn-hash-LKCAPI-insmod
linuxkm-cryptonly-intelasm-fips-v6-dyn-hash-LKCAPI-yes-twc-insmod-ksanitizer
linuxkm-6.12-all-cryptonly-intelasm-fips-dev-dyn-hash-LKCAPI-insmod
linuxkm-all-cryptonly-intelasm-LKCAPI-insmod-mainline-fallback-fuzzing
linuxkm-6.12-all-cryptonly-aesni-fips-v5-dyn-hash-LKCAPI-insmod
linuxkm-cryptonly-intelasm-fips-v6-dyn-hash-LKCAPI-yes-twc-insmod-kmemleak

…ing to cleanup;

linuxkm/lkcapi_rsa_glue.c: in km_rsa_init(), implement error-path cleanup;

linuxkm/module_hooks.c: nix CONFIG_MODULE_SIG requirement in WOLFCRYPT_FIPS_CORE_DYNAMIC_HASH_VALUE builds;

wolfssl/wolfcrypt/settings.h: in WOLFSSL_LINUXKM setup, define WOLFSSL_ASN_INT_LEAD_0_ANY if LINUXKM_LKCAPI_REGISTER (required for kernel 5.10 crypto manager);

wolfcrypt/src/memory.c: add WC_NO_ERR_TRACE() to mock error returns in SAVE_VECTOR_REGISTERS2_fuzzer().
@douzzer douzzer added the For This Release Release version 5.9.0 label Apr 22, 2025
@douzzer douzzer requested a review from philljj April 22, 2025 21:51
@douzzer
Copy link
Contributor Author

douzzer commented Apr 22, 2025

retest this please (java.io.StreamCorruptedException: invalid stream header: 636F7272)

@douzzer douzzer removed their assignment Apr 23, 2025
@philljj philljj merged commit 204d933 into wolfSSL:master Apr 23, 2025
186 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.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants