Skip to content

Fixes for KVM HV around synchronization and initializations

Gautam Menghani kvm linuxppc-dev lkml stable 3 versions – Applied

Status from this message: Applied to powerpc/fixes.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest4 patches 4 repliesApplied
  2. v24 patches 2 repliesSuperseded
  3. v13 patches 1 replySuperseded

Changes in v3 from the cover letter

1. Patch 1: Correct the patch description to reflect the code changes.
2. Patch 3: Add stable and fixes tags
3. Patch 4: Use srcu_read_{unlock,lock} instead of their kvm_vcpu* variants.

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/4KVM: PPC: Book3S HV: Ensure that calls to idr_alloc are synchronizedarch/powerpc/kvm/book3s_hv_nested.c+10 -240 replies
2/4KVM: PPC: Book3S HV: XICS: Update irq_type for cleanup to workarch/powerpc/kvm/book3s_xive.c+1 -11 reply
3/4KVM: PPC: Book3S HV: XICS: Avoid NULL ptr deref in kvmppc_xive_cleanup_vcpu()arch/powerpc/kvm/book3s_xive.c+2 -11 reply
4/4KVM: PPC: Book3S HV: Take SRCU read lock around kvmppc_h_page_init() callarch/powerpc/kvm/book3s_hv.c+2 -01 reply

Reviews trailers per patch

3 of 4 patches have a Reviewed-by or Acked-by.

PatchRitesh Harjani (IBM)
1/4
2/4R-b
3/4R-b
4/4R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/4] Fixes for KVM HV around synchronization and initializations

This series contains the fixes for synchronization and initializations bugs in the KVM HV code.

Patch 1: Fix for concurrent calls to idr_alloc

Patch 2: Initialize the arch.irq_type correctly for cleanup to work

Patch 3: In the cleanup function, add a check to avoid NULL ptr dereference.

Patch 4: Add a srcu lock to fix "suspicious usage of
rcu_dereference_check" usage.

v2 -> v3:
1. Patch 1: Correct the patch description to reflect the code changes.
2. Patch 3: Add stable and fixes tags
3. Patch 4: Use srcu_read_{unlock,lock} instead of their kvm_vcpu* variants.

v1 -> v2:
1. Patch 2 : Avoid NULL pointer dereference when calling kvmppc_xive_cleanup_vcpu(). Split this in a separate patch

Gautam Menghani (4):
KVM: PPC: Book3S HV: Ensure that calls to idr_alloc are synchronized
KVM: PPC: Book3S HV: XICS: Update irq_type for cleanup to work
KVM: PPC: Book3S HV: XICS: Avoid masking VP IPI on init failure
KVM: PPC: Book3s HV: Take SRCU read lock around kvmppc_h_page_init()
call

 arch/powerpc/kvm/book3s_hv.c        |  2 ++
 arch/powerpc/kvm/book3s_hv_nested.c | 34 +++++++++--------------------
 arch/powerpc/kvm/book3s_xive.c      |  5 +++--
 3 files changed, 15 insertions(+), 26 deletions(-)
Signature · 1 line
2.54.0