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)
commita7d4b8f2565ad0dfdff9a222d1d87990c73b36e8
tree8afa0327dd723daf6ade90ac8dc8a62d38246857
parentba913e4f72fc9cfd03dad968dfb110eb49211d80
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: 3f6813b9a5e0 ("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