]> git.baikalelectronics.ru Git - kernel.git/commit
s390/mcck: fix invalid KVM guest condition check
authorAlexander Gordeev <agordeev@linux.ibm.com>
Mon, 17 May 2021 06:18:12 +0000 (08:18 +0200)
committerVasily Gorbik <gor@linux.ibm.com>
Mon, 7 Jun 2021 10:12:03 +0000 (12:12 +0200)
commit656eab17f246b4968dbbf55a77b214aa2b32d035
treed7d738eff17ef60d4d9c0dc9441fdcd7f3c1686f
parentcd557bab238ea8d0cbe0e09151026d3bedde37bd
s390/mcck: fix invalid KVM guest condition check

Wrong condition check is used to decide if a machine check hit
while in KVM guest. As result of this check the instruction
following the SIE critical section might be considered as still
in KVM guest and _CIF_MCCK_GUEST CPU flag mistakenly set as
result.

Fixes: 4ab708ccde4b ("s390/nmi: s390: New low level handling for machine check happening in guest")
Cc: <stable@vger.kernel.org>
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
Reviewed-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/kernel/entry.S