]> git.baikalelectronics.ru Git - kernel.git/commit
s390/cpumf: Fix lpp detection
authorChristian Borntraeger <borntraeger@de.ibm.com>
Mon, 29 Feb 2016 14:59:18 +0000 (15:59 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Tue, 8 Mar 2016 09:38:06 +0000 (10:38 +0100)
commite2660cc6c8f2960c5db0384ca065a46f642baa36
tree4febb0b89240d9db2e5a2eeb7f7cc78368c752ce
parentb3cbe39e3b33e4f9c03cb1b666f17dc3d7705a43
s390/cpumf: Fix lpp detection

we have to check bit 40 of the facility list before issuing LPP
and not bit 48. Otherwise a guest running on a system with
"The decimal-floating-point zoned-conversion facility" and without
the "The set-program-parameters facility" might crash on an lpp
instruction.

Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Cc: stable@vger.kernel.org # v4.4+
Fixes: 92a1dc689151 ("s390/cpumf: rework program parameter setting to detect guest samples")
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/kernel/head64.S