20240420-wc_linuxkm_fpu_state_assoc-fixups #7457
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
linuxkm/linuxkm_memory.c
: require kernel 5.4+ for AESNI/AVX, and add fixup code inwc_linuxkm_fpu_state_assoc_unlikely()
to cope with migrations. insave_vector_registers_x86()
, on kernel < 5.17, checktest_thread_flag(TIF_NEED_FPU_LOAD)
as a workaround forirq_fpu_usable()
missing check forin_kernel_fpu
.tested with
wolfssl-multi-test.sh ... check-source-text '.*insmod.*'
, which expands tocheck-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