diff options
author | Janis Schoetterl-Glausch <scgl@linux.ibm.com> | 2021-10-22 18:26:48 +0300 |
---|---|---|
committer | Christian Borntraeger <borntraeger@de.ibm.com> | 2021-10-27 08:55:40 +0300 |
commit | 85f517b29418158d3e6e90c3f0fc01b306d2f1a1 (patch) | |
tree | 79bd9a4d8cc25a4c5f8519b90d48d4973c849ddc /arch/s390/include/asm/pgtable.h | |
parent | 67cf68b6a5ccac8bc7dfef0a220b59af4c83fd2c (diff) | |
download | linux-85f517b29418158d3e6e90c3f0fc01b306d2f1a1.tar.xz |
KVM: s390: Fix handle_sske page fault handling
If handle_sske cannot set the storage key, because there is no
page table entry or no present large page entry, it calls
fixup_user_fault.
However, currently, if the call succeeds, handle_sske returns
-EAGAIN, without having set the storage key.
Instead, retry by continue'ing the loop without incrementing the
address.
The same issue in handle_pfmf was fixed by
a11bdb1a6b78 ("KVM: s390: Fix pfmf and conditional skey emulation").
Fixes: bd096f644319 ("KVM: s390: Add skey emulation fault handling")
Signed-off-by: Janis Schoetterl-Glausch <scgl@linux.ibm.com>
Reviewed-by: Christian Borntraeger <borntraeger@de.ibm.com>
Reviewed-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
Link: https://lore.kernel.org/r/20211022152648.26536-1-scgl@linux.ibm.com
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Diffstat (limited to 'arch/s390/include/asm/pgtable.h')
0 files changed, 0 insertions, 0 deletions