Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp7190018yba; Thu, 2 May 2019 05:58:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqzi03XJ/9QUn2wb9K3maHxFTuw/Luk2l8PUERWKF9KOdZubACIesxTQZuy5HuFkxry06wA2 X-Received: by 2002:a65:62c4:: with SMTP id m4mr3821246pgv.308.1556801900541; Thu, 02 May 2019 05:58:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556801900; cv=none; d=google.com; s=arc-20160816; b=C8sVbgeiM0GR2CF8Qbl8jo/G5meYVbx8VoAE7Dgth7qieK4X2FTi4y5W2DgAWznP7g erXJYPenQP4lBuEO1GQmt42FpbmW0e4jj0gHf0SYOnyu6Vd0NqnSs7YBuZ8r9O76KcdX x0m+yED7LemKEnypoO5yKRVw9Mo12ovVljhKBxuQUQC7bRG58b/arydFivwaw6dc7wML rIt8XFQUchh+Z4z+wp5F7tAAajNQI53u7wyEzhTZFI2ko0hGGsc/TiX4GddfhDXgizpw ZhZHm3HJaPZV6Br6QE6kd69d/5KQk6k2q/3d/wLL63wFKCqqv2juOD+bLZyL+wTq70uZ gZCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=yj300TW+fJqT6K6BSGF2jtEG/Xt4a4FDcEA/4LmZcjs=; b=Fy0/xnSFxzFRvmMzBuhqGmLzJKjOWVjK+ZLCu6wgQhS1JWVJLATPPTnkN7KrOVyA0K RvJ+A12B8Itti4V1FlkQiUXfFUYP8SQ27fUNUn3cuEQ23/1sjR+ufaAPbnOdDgAX8tre 34BSZd9jPkCCkBbDULNcbKWaVPulHgy/kMlf4LzW711KSI5HDyPQ158WMIWm0HbkmY/5 qlBZsuRnN+qE3geVCN+tz2Rglf4kku6g0IrhqoLvrhJFdsnGGBV1tNFBQla2y9gDj1RH wAYLQNPL5imId9y+lJJMMKGww1U6vw5fALRDsRj6xREUxFhALJgf/5rdQi2gdOTUyMMM O44A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=N1CNu64D; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id cn16si46654057plb.174.2019.05.02.05.58.05; Thu, 02 May 2019 05:58:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=N1CNu64D; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726744AbfEBM4v (ORCPT + 99 others); Thu, 2 May 2019 08:56:51 -0400 Received: from mail.kernel.org ([198.145.29.99]:35940 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726404AbfEBM4u (ORCPT ); Thu, 2 May 2019 08:56:50 -0400 Received: from localhost (adsl-173-228-226-134.prtc.net [173.228.226.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 39FB420449; Thu, 2 May 2019 12:56:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1556801809; bh=yj300TW+fJqT6K6BSGF2jtEG/Xt4a4FDcEA/4LmZcjs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=N1CNu64DdNDI6n6Pd4zvz/PjlpDiFGriUxmGgT0/aEEIlVYPNO5MpTGqG7iTelmKQ JozEqiBnuNmR0hNLn0yOAQTnPD5zKtk6yBqYPUuJl8FJoyUq8mFmzKss3kpaJ/vgJM 2NV/TrbxUU0gmrBBPMtprJNCOepEvFx6dTFGe1Ek= Date: Thu, 2 May 2019 08:50:01 -0400 From: Sasha Levin To: Suzuki K Poulose Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, yuzenghui@huawei.com, christoffer.dall@arm.com, marc.zyngier@arm.com, kvmarm@lists.cs.columbia.edu Subject: Re: [PATCH AUTOSEL 5.0 29/98] KVM: arm/arm64: Enforce PTE mappings at stage2 when needed Message-ID: <20190502125001.GB11584@sasha-vm> References: <20190422194205.10404-1-sashal@kernel.org> <20190422194205.10404-29-sashal@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 23, 2019 at 10:27:26AM +0100, Suzuki K Poulose wrote: >Hi Sasha, > >On 04/22/2019 08:40 PM, Sasha Levin wrote: >>From: Suzuki K Poulose >> >>[ Upstream commit a80868f398554842b14d07060012c06efb57c456 ] >> >>commit 6794ad5443a2118 ("KVM: arm/arm64: Fix unintended stage 2 PMD mappings") >>made the checks to skip huge mappings, stricter. However it introduced >>a bug where we still use huge mappings, ignoring the flag to >>use PTE mappings, by not reseting the vma_pagesize to PAGE_SIZE. >> >>Also, the checks do not cover the PUD huge pages, that was >>under review during the same period. This patch fixes both >>the issues. >> >>Fixes : 6794ad5443a2118 ("KVM: arm/arm64: Fix unintended stage 2 PMD mappings") >>Reported-by: Zenghui Yu >>Cc: Zenghui Yu >>Cc: Christoffer Dall >>Signed-off-by: Suzuki K Poulose >>Signed-off-by: Marc Zyngier >>Signed-off-by: Sasha Levin (Microsoft) > >Please be aware that we need a follow up fix for this patch to fix the >problem for THP backed memory. > >http://lists.infradead.org/pipermail/linux-arm-kernel/2019-April/645324.html > > >It should appear upstream soon. Since it's not upstream yet, I'll drop this patch for now and queue it for a later release. -- Thanks, Sasha