x86/fpu/xstate: Export fpu_fpregs_owner_ctx
PATCH 1/1 x86/fpu/xstate: Export fpu_fpregs_owner_ctx
After applying my "Invalidate fpregs when __fpu_restore_sig() fails" patch [1], the following happens:
ERROR: "fpu_fpregs_owner_ctx" [arch/x86/kvm/kvm.ko] undefined!
Fix it by exporting the symbol. I apologize for missing this!
[1] https://lkml.kernel.org/r/[email protected]/
--- arch/x86/kernel/fpu/core.c | 1 + 1 file changed, 1 insertion(+)
arch/x86/kernel/fpu/core.c +1 -0
@@ -42,6 +42,7 @@ static DEFINE_PER_CPU(bool, in_kernel_fpu);* Track which context is using the FPU on the CPU: */ DEFINE_PER_CPU(struct fpu *, fpu_fpregs_owner_ctx); +EXPORT_SYMBOL_GPL (fpu_fpregs_owner_ctx);static bool kernel_fpu_disabled (void ) {
Signature · 1 line
2.17.1
Borislav Petkov
maintainerQuoted 6 lines · Yu-cheng Yu
After applying my "Invalidate fpregs when
__fpu_restore_sig()fails" patch [1], the following happens:ERROR: "
fpu_fpregs_owner_ctx" [arch/x86/kvm/kvm.ko] undefined!Fix it by exporting the symbol. I apologize for missing this!
So why a separate patch? Just send a v2 as a reply to the incomplete one.
Signature · 4 lines
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquetteQuoted 10 lines · Borislav Petkov
Quoted 6 lines · Yu-cheng Yu
After applying my "Invalidate fpregs when
__fpu_restore_sig()fails" patch [1], the following happens:ERROR: "
fpu_fpregs_owner_ctx" [arch/x86/kvm/kvm.ko] undefined!Fix it by exporting the symbol. I apologize for missing this!
So why a separate patch? Just send a v2 as a reply to the incomplete one.
I just did that. Thanks!
Yu-cheng