From: Sasha Levin Subject: Re: [PATCH AUTOSEL 5.0 29/98] KVM: arm/arm64: Enforce PTE mappings at stage2 when needed Date: Thu, 2 May 2019 08:50:01 -0400 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 Return-path: Content-Disposition: inline In-Reply-To: Sender: stable-owner@vger.kernel.org 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 List-Id: kvmarm@lists.cs.columbia.edu 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.