KVM: s390: Fix STHYI buffer alignment for diag224
authorJanosch Frank <frankja@linux.vnet.ibm.com>
Wed, 26 Oct 2016 06:48:11 +0000 (08:48 +0200)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Wed, 26 Oct 2016 11:46:44 +0000 (13:46 +0200)
commit45c7ee43a5184ddbff652ee0d2e826f86f1b616b
tree619ec953de68b391ece998e6ac2ec9bb1977aae7
parenta5efb6b6c99a3a6dc4330f51d8066f638bdea0ac
KVM: s390: Fix STHYI buffer alignment for diag224

Diag224 requires a page-aligned 4k buffer to store the name table
into. kmalloc does not guarantee page alignment, hence we replace it
with __get_free_page for the buffer allocation.

Cc: stable@vger.kernel.org # v4.8+
Reported-by: Michael Holzheu <holzheu@linux.vnet.ibm.com>
Signed-off-by: Janosch Frank <frankja@linux.vnet.ibm.com>
Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
arch/s390/kvm/sthyi.c