]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: s390: Fix KVM_S390_VCPU_FAULT ioctl
authorClaudio Imbrenda <imbrenda@linux.ibm.com>
Thu, 26 Mar 2026 13:17:19 +0000 (14:17 +0100)
committerClaudio Imbrenda <imbrenda@linux.ibm.com>
Thu, 26 Mar 2026 15:12:38 +0000 (16:12 +0100)
commit0a28e06575b3f3b30c1e99fc08fa0907956f35a4
treefed1a9144a9a62b819a8a7d7ac7716b66dc37f47
parenta12cc7e3d6a62f26262c1940a526f0682fefa3ba
KVM: s390: Fix KVM_S390_VCPU_FAULT ioctl

A previous commit changed the behaviour of the KVM_S390_VCPU_FAULT
ioctl. The current (wrong) implementation will trigger a guest
addressing exception if the requested address lies outside of a
memslot, unless the VM is UCONTROL.

Restore the previous behaviour by open coding the fault-in logic.

Fixes: 3762e905ec2e ("KVM: s390: use __kvm_faultin_pfn()")
Acked-by: Christian Borntraeger <borntraeger@linux.ibm.com>
Reviewed-by: Steffen Eiden <seiden@linux.ibm.com>
Signed-off-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
arch/s390/kvm/kvm-s390.c