Repository navigation
Commit be4ed1a
KVM: s390: fix guarded storage control register handling
commit 44bada2 upstream.
store_regs_fmt2() has an ordering problem: first the guarded storage
facility is enabled on the local cpu, then preemption disabled, and
then the STGSC (store guarded storage controls) instruction is
executed.
If the process gets scheduled away between enabling the guarded
storage facility and before preemption is disabled, this might lead to
a special operation exception and therefore kernel crash as soon as
the process is scheduled back and the STGSC instruction is executed.
Fixes: 4e0b1ab ("KVM: s390: gs support for kvm guests")
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Reviewed-by: Christian Borntraeger <borntraeger@de.ibm.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Janosch Frank <frankja@linux.ibm.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Cc: <stable@vger.kernel.org> # 4.12
Link: https://lore.kernel.org/r/20210415080127.1061275-1-hca@linux.ibm.com
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent 2705bc3 commit be4ed1a
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4308 | 4308 | | |
4309 | 4309 | | |
4310 | 4310 | | |
| 4311 | + | |
4311 | 4312 | | |
4312 | 4313 | | |
4313 | 4314 | | |
4314 | | - | |
4315 | 4315 | | |
4316 | 4316 | | |
4317 | | - | |
4318 | 4317 | | |
4319 | 4318 | | |
4320 | 4319 | | |
| 4320 | + | |
4321 | 4321 | | |
4322 | 4322 | | |
4323 | 4323 | | |
| |||
0 commit comments