Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

20240420-wc_linuxkm_fpu_state_assoc-fixups #7457

Merged

Conversation

douzzer
Copy link
Contributor

@douzzer douzzer commented Apr 20, 2024

linuxkm/linuxkm_memory.c: require kernel 5.4+ for AESNI/AVX, and add fixup code in wc_linuxkm_fpu_state_assoc_unlikely() to cope with migrations. in save_vector_registers_x86(), on kernel < 5.17, check test_thread_flag(TIF_NEED_FPU_LOAD) as a workaround for irq_fpu_usable() missing check for in_kernel_fpu.

tested with wolfssl-multi-test.sh ... check-source-text '.*insmod.*', which expands to check-source-text linuxkm-all-aesni-insmod linuxkm-commercial-pie-insmod linuxkm-aesxts-cryptonly-aesni-fips-dev-dyn-hash-LKCAPI-no-twc-insmod-6.1.73-fortify-fallback-fuzzing linuxkm-all-cryptonly-aesni-fips-dev-dyn-hash-LKCAPI-insmod-6.1.73-fortify-fallback-fuzzing linuxkm-all-cryptonly-aesni-fips-dev-dyn-hash-LKCAPI-insmod-mainline-fallback-fuzzing linuxkm-noasm-insmod-kmemleak linuxkm-aesni-insmod-kmemleak linuxkm-noasm-ksanitize-insmod linuxkm-aesni-sp-asm-pie-insmod-no-ecc521 linuxkm-benchmarks-insmod linuxkm-benchmarks-insmod-kmemleak linuxkm-benchmarks-insmod-ksanitize linuxkm-legacy-4.4-insmod linuxkm-legacy-4.9-insmod linuxkm-legacy-4.19-insmod linuxkm-legacy-5.4-insmod linuxkm-legacy-5.10-insmod linuxkm-legacy-5.15-insmod linuxkm-legacy-6.1-insmod linuxkm-legacy-6.6-insmod linuxkm-mainline-aesni-pie-gcc-latest-insmod

…fixup code in wc_linuxkm_fpu_state_assoc_unlikely() to cope with migrations. in save_vector_registers_x86(), on kernel < 5.17, check test_thread_flag(TIF_NEED_FPU_LOAD) as a workaround for irq_fpu_usable() missing check for in_kernel_fpu.
@SparkiDev SparkiDev self-assigned this Apr 22, 2024
@SparkiDev SparkiDev removed the request for review from wolfSSL-Bot April 22, 2024 00:39
@SparkiDev SparkiDev merged commit eeadb2a into wolfSSL:master Apr 22, 2024
114 checks passed
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.

3 participants