提交 695be0e7 编写于 作者: D David Hildenbrand 提交者: Christian Borntraeger

KVM: s390: pfmf: handle address overflows

In theory, end could always end up being < start, if overflowing to 0.
Although very unlikely for now, let's just fix it.
Reviewed-by: NChristian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: NDavid Hildenbrand <dahi@linux.vnet.ibm.com>
Signed-off-by: NChristian Borntraeger <borntraeger@de.ibm.com>
上级 1824c723
...@@ -715,7 +715,7 @@ static int handle_pfmf(struct kvm_vcpu *vcpu) ...@@ -715,7 +715,7 @@ static int handle_pfmf(struct kvm_vcpu *vcpu)
return kvm_s390_inject_program_int(vcpu, PGM_SPECIFICATION); return kvm_s390_inject_program_int(vcpu, PGM_SPECIFICATION);
} }
while (start < end) { while (start != end) {
unsigned long useraddr; unsigned long useraddr;
/* Translate guest address to host address */ /* Translate guest address to host address */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册