diff options
| author | Heiko Carstens <[email protected]> | 2021-04-15 10:01:27 +0200 |
|---|---|---|
| committer | Christian Borntraeger <[email protected]> | 2021-04-15 15:35:38 +0200 |
| commit | 44bada28219031f9e8e86b84460606efa57b871e (patch) | |
| tree | 9d8abaa6692d72930a6a105e7edcfbecd0b29ce1 /tools/perf/scripts/python/event_analyzing_sample.py | |
| parent | c3171e94cc1cdcc3229565244112e869f052b8d9 (diff) | |
KVM: s390: fix guarded storage control register handling
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: 4e0b1ab72b8a ("KVM: s390: gs support for kvm guests")
Signed-off-by: Heiko Carstens <[email protected]>
Reviewed-by: Christian Borntraeger <[email protected]>
Reviewed-by: David Hildenbrand <[email protected]>
Reviewed-by: Janosch Frank <[email protected]>
Reviewed-by: Cornelia Huck <[email protected]>
Cc: <[email protected]> # 4.12
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Christian Borntraeger <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions