Message ID | 1435661350-8060-10-git-send-email-shannon.zhao@linaro.org |
---|---|
State | New |
Headers | show
Return-Path: <patchwork-forward+bncBCOL5N4BVYCBBBHJZGWAKGQECH35YYI@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f71.google.com (mail-la0-f71.google.com [209.85.215.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 89235229DF for <linaro@patches.linaro.org>; Tue, 30 Jun 2015 10:50:45 +0000 (UTC) Received: by laar3 with SMTP id r3sf2317476laa.1 for <linaro@patches.linaro.org>; Tue, 30 Jun 2015 03:50:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=EDdnaR6ld18nWWVWyeboO0wGys6Msh4yrOHGDnFI7dI=; b=gB3CHFlnDyJlsrKScBhv33sShKixUXC473A+eCyX6010B4ehPjyfNwdaTeWsQKE7s5 uV9OoqOc28YIKFP5ilBS9kHIZ3IAAo08g8fM75BycMWO5y5kKesvAFAhD6NM8dPgzYtr cC2OYnvol0bNKDWmcbX8+bXQKlmeAT+snqtMmm24hZSiSzUv4Be8ba025avjpTC9qEqG TpqKM6wK7X1zd4Zis2qO4qCBRDnH4UeZqeuo6MUXgF/OG0qzHTWvImLEnZCI8Z2iPtz4 enBrLTdHVzCf/6tmT+Us/R2nYWzV74BKKXnqUe4WTPM9SgQCo3oGZRuWA3P9xNPqbtLi bnIA== X-Gm-Message-State: ALoCoQkcB9KrZ/5EUFfTla8BR15tiMWKLw38U+El7Ek9su9dfpbTvLRF9Tv0DkY0BynqJuwWow9Q X-Received: by 10.180.182.110 with SMTP id ed14mr11464996wic.5.1435661444548; Tue, 30 Jun 2015 03:50:44 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.37.133 with SMTP id y5ls26261laj.19.gmail; Tue, 30 Jun 2015 03:50:44 -0700 (PDT) X-Received: by 10.112.124.71 with SMTP id mg7mr18909727lbb.38.1435661444241; Tue, 30 Jun 2015 03:50:44 -0700 (PDT) Received: from mail-la0-f54.google.com (mail-la0-f54.google.com. [209.85.215.54]) by mx.google.com with ESMTPS id f6si8702285lae.45.2015.06.30.03.50.44 for <patchwork-forward@linaro.org> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 30 Jun 2015 03:50:44 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.54 as permitted sender) client-ip=209.85.215.54; Received: by laar3 with SMTP id r3so8194529laa.0 for <patchwork-forward@linaro.org>; Tue, 30 Jun 2015 03:50:44 -0700 (PDT) X-Received: by 10.152.5.167 with SMTP id t7mr13775925lat.112.1435661444117; Tue, 30 Jun 2015 03:50:44 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.108.230 with SMTP id hn6csp2352880lbb; Tue, 30 Jun 2015 03:50:42 -0700 (PDT) X-Received: by 10.70.134.70 with SMTP id pi6mr42058304pdb.100.1435661442093; Tue, 30 Jun 2015 03:50:42 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y5si66313267par.87.2015.06.30.03.50.41; Tue, 30 Jun 2015 03:50:42 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752529AbbF3Kuk (ORCPT <rfc822;shannon.zhao@linaro.org> + 2 others); Tue, 30 Jun 2015 06:50:40 -0400 Received: from mail-pd0-f173.google.com ([209.85.192.173]:34019 "EHLO mail-pd0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752446AbbF3Kuj (ORCPT <rfc822;stable@vger.kernel.org>); Tue, 30 Jun 2015 06:50:39 -0400 Received: by pdbep18 with SMTP id ep18so4304508pdb.1 for <stable@vger.kernel.org>; Tue, 30 Jun 2015 03:50:38 -0700 (PDT) X-Received: by 10.68.130.226 with SMTP id oh2mr41477925pbb.156.1435661438588; Tue, 30 Jun 2015 03:50:38 -0700 (PDT) Received: from localhost ([120.136.36.232]) by mx.google.com with ESMTPSA id sx5sm21792819pab.4.2015.06.30.03.50.35 (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 30 Jun 2015 03:50:37 -0700 (PDT) From: shannon.zhao@linaro.org To: stable@vger.kernel.org Cc: gregkh@linuxfoundation.org, christoffer.dall@linaro.org, shannon.zhao@linaro.org, Mark Rutland <mark.rutland@arm.com>, Catalin Marinas <catalin.marinas@arm.com>, Jungseok Lee <jungseoklee85@gmail.com>, Marc Zyngier <marc.zyngier@arm.com>, Paolo Bonzini <pbonzini@redhat.com> Subject: [PATCH for 3.14.y stable 09/22] arm64: KVM: fix unmapping with 48-bit VAs Date: Tue, 30 Jun 2015 18:48:57 +0800 Message-Id: <1435661350-8060-10-git-send-email-shannon.zhao@linaro.org> X-Mailer: git-send-email 1.9.5.msysgit.1 In-Reply-To: <1435661350-8060-1-git-send-email-shannon.zhao@linaro.org> References: <1435661350-8060-1-git-send-email-shannon.zhao@linaro.org> Sender: stable-owner@vger.kernel.org Precedence: list List-ID: <patchwork-forward.linaro.org> X-Mailing-List: stable@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: shannon.zhao@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.54 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Unsubscribe: <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com>, <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe> |
diff --git a/arch/arm/kvm/mmu.c b/arch/arm/kvm/mmu.c index 2206385..f574732 100644 --- a/arch/arm/kvm/mmu.c +++ b/arch/arm/kvm/mmu.c @@ -197,7 +197,8 @@ static void unmap_range(struct kvm *kvm, pgd_t *pgdp, pgd = pgdp + pgd_index(addr); do { next = kvm_pgd_addr_end(addr, end); - unmap_puds(kvm, pgd, addr, next); + if (!pgd_none(*pgd)) + unmap_puds(kvm, pgd, addr, next); } while (pgd++, addr = next, addr != end); }