linux-stable/arch/s390/hypfs
Michael Holzheu 237d6e6884 s390/hypfs: Use get_free_page() instead of kmalloc to ensure page alignment
Since commit d86bd1bece ("mm/slub: support left redzone") it is no longer
guaranteed that kmalloc(PAGE_SIZE) returns page aligned memory.

After the above commit we get an error for diag224 because aligned
memory is required. This leads to the following user visible error:

 # mount none -t s390_hypfs /sys/hypervisor/
 mount: unknown filesystem type 's390_hypfs'

 # dmesg | grep hypfs
 hypfs.cccfb8: The hardware system does not provide all functions
               required by hypfs
 hypfs.7a79f0: Initialization of hypfs failed with rc=-61

Fix this problem and use get_free_page() instead of kmalloc() to get
correctly aligned memory.

Cc: stable@vger.kernel.org # v3.6+
Signed-off-by: Michael Holzheu <holzheu@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
2016-10-28 10:08:58 +02:00
..
hypfs.h s390/hypfs: Eliminate hypfs interval 2015-02-10 16:39:02 +01:00
hypfs_dbfs.c s390/hypfs: Eliminate hypfs interval 2015-02-10 16:39:02 +01:00
hypfs_diag.c s390/hypfs: Use get_free_page() instead of kmalloc to ensure page alignment 2016-10-28 10:08:58 +02:00
hypfs_diag0c.c s390/diag: add a statistic for diagnose calls 2015-10-14 14:32:06 +02:00
hypfs_sprp.c s390/diag: add a statistic for diagnose calls 2015-10-14 14:32:06 +02:00
hypfs_vm.c s390: avoid extable collisions 2016-06-13 15:58:26 +02:00
inode.c fs: Replace CURRENT_TIME with current_time() for inode timestamps 2016-09-27 21:06:21 -04:00
Makefile s390/hypfs: Add diagnose 0c support 2015-02-10 16:38:58 +01:00