]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: s390: don't use current->thread.fpu.* when accessing registers
authorDavid Hildenbrand <dahi@linux.vnet.ibm.com>
Tue, 16 Aug 2016 12:38:24 +0000 (14:38 +0200)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Thu, 25 Aug 2016 15:33:24 +0000 (17:33 +0200)
commit6a2c508b69a3e962ebe2056456922fc698c456c7
tree8afa0327dd723daf6ade90ac8dc8a62d38246857
parent64e6f2db6b79ed76f30d3f4f76a07bb3aae121e1
KVM: s390: don't use current->thread.fpu.* when accessing registers

As the meaning of these variables and pointers seems to change more
frequently, let's directly access our save area, instead of going via
current->thread.

Right now, this is broken for set/get_fpu. They simply overwrite the
host registers, as the pointers to the current save area were turned
into the static host save area.

Cc: stable@vger.kernel.org # 4.7
Fixes: c60b6d1b072e ("s390/fpu: allocate 'struct fpu' with the task_struct")
Reported-by: Hao QingFeng <haoqf@linux.vnet.ibm.com>
Signed-off-by: David Hildenbrand <dahi@linux.vnet.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
arch/s390/kvm/kvm-s390.c