Re: [PATCH v2] KVM: x86: avoid large stack allocations in em_fxrstor

2017-05-29 Thread Nick Desaulniers
On Tue, May 30, 2017 at 04:14:50AM +0800, kbuild test robot wrote: >arch/x86/kvm/emulate.c: In function 'em_fxrstor': > >> arch/x86/kvm/emulate.c:4015:5: warning: 'size' may be used uninitialized > >> in this function [-Wmaybe-uninitialized] > rc = segmented_read_std(ctxt, ctxt->memop.add

Re: [PATCH v2] KVM: x86: avoid large stack allocations in em_fxrstor

2017-05-29 Thread kbuild test robot
Hi Nick, [auto build test WARNING on kvm/linux-next] [also build test WARNING on v4.12-rc3 next-20170529] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Nick-Desaulniers/KVM-x86-avoid-large-stac

[PATCH v2] KVM: x86: avoid large stack allocations in em_fxrstor

2017-05-29 Thread Nick Desaulniers
em_fxstor previously called fxstor_fixup. Both created instances of struct fxregs_state on the stack, which triggered the warning: arch/x86/kvm/emulate.c:4018:12: warning: stack frame size of 1080 bytes in function 'em_fxrstor' [-Wframe-larger-than=] static int em_fxrstor(struct x86_emulate