Skip to content

KVM: s390: Fix two bugs

Claudio Imbrenda kvm linux-s390 lkml 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 1 replyIn review
  2. v22 patches 2 repliesSuperseded
  3. v12 patches 7 repliesSuperseded

Changes in v3 from the cover letter

* Make sure .ops is not NULL before calling mmu_notifier_register() to avoid NULL pointer errors (thanks Marc)

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2KVM: s390: Fix incorrect usage of mmu_notifier_register()arch/s390/kvm/pv.c+11 -50 replies
2/2KVM: s390: Fix FOLL_*/FAULT_FLAG_* confusionarch/s390/kvm/kvm-s390.c+12 -121 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchChristian BorntraegerDavid HildenbrandSteffen EidenChristoph SchlameussChristoph Schlameuß
1/2R-b R-b R-b R-b
2/2A-b R-b R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 5 reviewers.

Read the v3 thread

Cover letter [PATCH v3 0/2] KVM: s390: Fix two bugs

This small series fixes two bugs in s390 KVM. One is small and trivial, the other is pretty bad.

* The wrong type of flag was being passed to vcpu_dat_fault_handler(); it expects a FOLL_* flag, but a FAULT_FLAG_* was passed instead.
* Due to incorrect usage of mmu_notifier_register(), in some rare cases when running a secure guest, the struct mm for the userspace process would get freed too early and cause a use-after-free.

v2->v3
* Make sure .ops is not NULL before calling mmu_notifier_register() to avoid NULL pointer errors (thanks Marc)
v1->v2
* Rename the parameters of __kvm_s390_handle_dat_fault() and vcpu_dat_fault_handler() from flags to foll (thanks Christian)

Claudio Imbrenda (2):
KVM: s390: Fix incorrect usage of mmu_notifier_register()
KVM: s390: Fix FOLL_*/FAULT_FLAG_* confusion

 arch/s390/kvm/kvm-s390.c | 24 ++++++++++++------------
 arch/s390/kvm/pv.c       | 16 +++++++++++-----
 2 files changed, 23 insertions(+), 17 deletions(-)
Signature · 1 line
2.51.0