Skip to content

A couple of EL2 refcounts fixes

Quentin Perret kvmarm linux-arm-kernel lkml 2 versions Applied

Status from this message: Applied to fixes, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 1 replyApplied
  2. v12 patches 0 repliesSuperseded

Changes in v2 from the cover letter

- applied Acked-by from Will;
- better comment + commit message for patch 01 (Marc).

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/2KVM: arm64: Fix host stage-2 PGD refcountarch/arm64/kvm/hyp/include/nvhe/gfp.h arch/arm64/kvm/hyp/nvhe/mem_protect.c arch/arm64/kvm/hyp/nvhe/page_alloc.c+27 -10 replies
2/2KVM: arm64: Report corrupted refcount at EL2arch/arm64/kvm/hyp/nvhe/page_alloc.c+1 -00 replies

Reviews trailers per patch

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

PatchWill Deacon
1/2A-b
2/2A-b

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

Read the v2 thread

Cover letter [PATCH v2 0/2] A couple of EL2 refcounts fixes

Hi all,

This is v2 of the series previously posted here:

https://lore.kernel.org/kvmarm/[email protected]/

This addresses a couple of issues Will has found with the refcounting of page-tables at EL2. Patch 01 fixes a nasty bug, and probably wants to go in -stable. Patch 02 fixes a small inconsistency which made it harder to find refcount-related bugs at EL2.

Changes since v1:
- applied Acked-by from Will;
- better comment + commit message for patch 01 (Marc).

Thanks!
Quentin

Quentin Perret (2):
KVM: arm64: Fix host stage-2 PGD refcount
KVM: arm64: Report corrupted refcount at EL2

 arch/arm64/kvm/hyp/include/nvhe/gfp.h |  1 +
 arch/arm64/kvm/hyp/nvhe/mem_protect.c | 13 ++++++++++++-
 arch/arm64/kvm/hyp/nvhe/page_alloc.c  | 15 +++++++++++++++
 3 files changed, 28 insertions(+), 1 deletion(-)
Signature · 1 line
2.33.0.800.g4c38ced690-goog