mbox series

[0/2] Fix deadlocks in kvm_vm_ioctl_set_msr_filter() and

Message ID 20221229211737.138861-1-mhal@rbox.co (mailing list archive)
Headers show
Series Fix deadlocks in kvm_vm_ioctl_set_msr_filter() and | expand

Message

Michal Luczaj Dec. 29, 2022, 9:17 p.m. UTC
I've moved the synchronize_srcu*() after the mutex_unlock(), but wasn't
sure about kvm_make_all_cpus_request(), so left it, as it was, under the
mutex. Or should it be moved out of critical section just as well?

Michal Luczaj (2):
  KVM: x86: Fix deadlock in kvm_vm_ioctl_set_msr_filter()
  KVM: x86: Fix deadlock in kvm_vm_ioctl_set_pmu_event_filter()

 arch/x86/kvm/pmu.c |  2 +-
 arch/x86/kvm/x86.c | 12 +++++-------
 2 files changed, 6 insertions(+), 8 deletions(-)