Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1167274AbdDXKMV (ORCPT ); Mon, 24 Apr 2017 06:12:21 -0400 Received: from foss.arm.com ([217.140.101.70]:54396 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1166836AbdDXKMN (ORCPT ); Mon, 24 Apr 2017 06:12:13 -0400 From: Suzuki K Poulose To: pbonzini@redhat.com Cc: christoffer.dall@linaro.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, kvm@vger.kernel.org, marc.zyngier@arm.com, mark.rutland@arm.com, andreyknvl@google.com, rkrcmar@redhat.com, Suzuki K Poulose Subject: [PATCH 0/2] kvm: Fixes for race conditions Date: Mon, 24 Apr 2017 11:10:22 +0100 Message-Id: <1493028624-29837-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 Content-Length: 945 Lines: 27 The two patches here fixes race conditions in the KVM hypervisor code dealing with the shadow MMU. The first one applies to core KVM code where mmu_notifier->ops.release() could be called twice with one instance possibily accessing a free'd KVM instance. Reported here : http://lkml.kernel.org/r/CAAeHK+x8udHKq9xa1zkTO6ax5E8Dk32HYWfaT05FMchL2cr48g@mail.gmail.com The second patch is specific to arm/arm64 stage2 PGD, where there are issues with modifications to the PGD pointer outside the mmu_lock, leading to crashes. Reported here : http://lkml.kernel.org/r/febea966-3767-21ff-3c40-1a76d1399138@suse.de Suzuki K Poulose (2): kvm: Fix mmu_notifier release race kvm: arm/arm64: Fix race in resetting stage2 PGD arch/arm/kvm/mmu.c | 14 +++++++----- include/linux/kvm_host.h | 1 + virt/kvm/kvm_main.c | 59 ++++++++++++++++++++++++++++++++++++++++++------ 3 files changed, 61 insertions(+), 13 deletions(-) -- 2.7.4