Re: [PATCH v2 for-4.14-stable] x86,kvm: remove extra kvm_{get,put}_guest_fpu

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Jan 30, 2019 at 2:29 PM Daniel Verkamp <dverkamp@xxxxxxxxxxxx> wrote:
>
> Commit 4124a4cff344 ("x86,kvm: move qemu/guest FPU switching out
> to vcpu_run") applied a patch from upstream, but it appears that it
> wasn't backported correctly to 4.14.  The extra out_fpu label and
> kvm_put_guest_fpu() added in kvm_arch_vcpu_ioctl_run() result in calling
> kvm_put_guest_fpu() twice in a row, corrupting guest state.
> Additionally, a duplicate kvm_load_guest_fpu() is added in the middle of
> the function.
>
> Fixes: 4124a4cff344 ("x86,kvm: move qemu/guest FPU switching out to vcpu_run")
> Signed-off-by: Daniel Verkamp <dverkamp@xxxxxxxxxxxx>
> ---
>
> v2: removed additional redundant kvm_load_guest_fpu()
>
> I'm unsure if this is the right way to send this fix - there is no
> corresponding mainline commit to reference, since the code there is
> already correct, and the problem was introduced in the cherry-picked
> stable backport.  Please let me know if there's a different process for
> fixes to stable-only issues.

Please ignore this - I had checked last week and it seemed no-one had
reported this, but now it looks like an identical fix was already
posted: https://www.spinics.net/lists/stable/msg282163.html

Sorry for the noise!

Thanks,
-- Daniel



[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux