diff options
| author | Martin Schwidefsky <[email protected]> | 2017-10-05 06:29:47 +0000 |
|---|---|---|
| committer | Martin Schwidefsky <[email protected]> | 2017-10-25 05:59:30 +0000 |
| commit | 0a5e2ec2647737907d267c09dc9a25fab1468865 (patch) | |
| tree | b6788e55a1560e921419acaea0ed48772b9ed1e6 /lib/assoc_array.c | |
| parent | Merge tag 'nfs-for-4.14-4' of git://git.linux-nfs.org/projects/trondmy/linux-nfs (diff) | |
| download | kernel-0a5e2ec2647737907d267c09dc9a25fab1468865.tar.gz kernel-0a5e2ec2647737907d267c09dc9a25fab1468865.zip | |
s390/kvm: fix detection of guest machine checks
The new detection code for guest machine checks added a check based
on %r11 to .Lcleanup_sie to distinguish between normal asynchronous
interrupts and machine checks. But the funtion is called from the
program check handler as well with an undefined value in %r11.
The effect is that all program exceptions pointing to the SIE instruction
will set the CIF_MCCK_GUEST bit. The bit stays set for the CPU until the
next machine check comes in which will incorrectly be interpreted as a
guest machine check.
The simplest fix is to stop using .Lcleanup_sie in the program check
handler and duplicate a few instructions.
Fixes: c929500d7a5a ("s390/nmi: s390: New low level handling for machine check happening in guest")
Cc: <[email protected]> # v4.13+
Reviewed-by: Christian Borntraeger <[email protected]>
Signed-off-by: Martin Schwidefsky <[email protected]>
Diffstat (limited to 'lib/assoc_array.c')
0 files changed, 0 insertions, 0 deletions
