From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752136AbdEPJfO (ORCPT ); Tue, 16 May 2017 05:35:14 -0400 Received: from foss.arm.com ([217.140.101.70]:33634 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751479AbdEPJfL (ORCPT ); Tue, 16 May 2017 05:35:11 -0400 From: Suzuki K Poulose To: christoffer.dall@linaro.org Cc: agraf@suse.de, andreyknvl@google.com, marc.zyngier@arm.com, mark.rutland@arm.com, pbonzini@redhat.com, rkrcmar@redhat.com, suzuki.poulose@arm.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, kvm@vger.kernel.org Subject: [PATCH v3 0/2] kvm: arm/arm64: Fixes for race conditions Date: Tue, 16 May 2017 10:34:53 +0100 Message-Id: <1494927295-29369-1-git-send-email-suzuki.poulose@arm.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The patches fixes race conditions in stage2 pgd accesses. Patch 1 is a fix up for the patch which has already been pushed to kvmarm/master. Patch 2 fixes a case where stage2 PGD could be free'd when we release the kvm->mmu_lock to prevent VCPU starvation. Applies on kvmarm/master tree Changes since V2: http://lists.infradead.org/pipermail/linux-arm-kernel/2017-May/504401.html - Patch 1 in V2 has been pushed to kvmarm/master. Added a fixup to the original patch to make sure we don't use cached stage2 pgd. - Patch 2: Handle cases where unmap_stage2_range may be called without checking the validity of stage2 pgd. Changes since v1: http://lists.infradead.org/pipermail/linux-arm-kernel/2017-April/502867.html - Dropped patch for fixing mmu_notifier race condition, which couldn't be reproduced. - Added reviewed-by from Christoffer - Added new patch to fix another race condition Suzuki K Poulose (2): kvm: arm/arm64: Force reading uncached stage2 PGD kvm: arm/arm64: Fix use after free of stage2 page table virt/kvm/arm/mmu.c | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) -- 2.7.4