diff options
| author | Claudio Imbrenda <imbrenda@linux.ibm.com> | 2026-07-02 17:24:05 +0200 |
|---|---|---|
| committer | Christian Borntraeger <borntraeger@linux.ibm.com> | 2026-07-09 10:26:10 +0200 |
| commit | 4d4a21e38f1b87a76b3e63d4f837ff4e9b52d5a6 (patch) | |
| tree | af2ac1e0926dcf370f4a1d7436e81c43ffe984cb /drivers/gpu/nova-core/fsp/hal/git@git.tavy.me:linux.git | |
| parent | 866d03de6def89c386cdfd457b28a1f566e02565 (diff) | |
KVM: s390: Fix dat_crste_walk_range() early return
If a walk entry handler for a lower level returns a value,
dat_crste_walk_range() will not return immediately, but instead loop
again and move to the next entry.
This means that some entries are potentially skipped, and early return
is ignored. Skipped entries might lead to all kinds of issues, given
that the caller expects them to not be skipped. Early return is often
used to interrupt a walk when a rescheduling is needed; if it is
ignored it can lead to stalls.
Fix by breaking from the loop immediately if the walk to a lower level
returned non-zero.
Fixes: 2db149a0a6c5 ("KVM: s390: KVM page table management functions: walks")
Signed-off-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
Reviewed-by: Christian Borntraeger <borntraeger@linux.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@linux.ibm.com>
Diffstat (limited to 'drivers/gpu/nova-core/fsp/hal/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
