Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp721207imm; Fri, 29 Jun 2018 05:25:09 -0700 (PDT) X-Google-Smtp-Source: ADUXVKI7UJfAuMxGFRxcPpZGNR+Y9NZ5AkFsa7P/biz6hblmgeKCHO3PpvunVcU3V34a+PLfIBZn X-Received: by 2002:a17:902:822:: with SMTP id 31-v6mr14494944plk.172.1530275109534; Fri, 29 Jun 2018 05:25:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530275109; cv=none; d=google.com; s=arc-20160816; b=sh52Woh85k9nJd+a2gx1Iqd4tonkimZWG7M4G15Vz0tIda2EcnSdXEvooOiA6I5BO3 KBn1TYIvIS/gBNGay9XZd2h/93lTksNqJSoAuTB+rJFKn2F6wD7dP/0FcaRlBC1hcw6v Q8tglC0EfkB4gi4M8E8DOUZnjZ53haf52joJj34xaYJ52FNi4f97aACG2Jq/p9S1AJ0H 01E69b3fGnlbnV781bzIITstBeLemkOuxT8rfgNbIluqllKS4TFr4D75D1bKdOSt+epE CFDCHX2r0+1Gbbvj2itbpBRD6soaH0Uqych9GX+brDAlAn9ukCRenjW8MTDlteQ7qvmM b5Xg== 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:arc-authentication-results; bh=RaenRhC/Kt0HFzA4EureWXwOmLR1BMYoPLwHn6YXR4A=; b=Y7fJFnPASzZuIkdRZ9wwA9p09G24mLl7sDXYqoH2C4kjor/eDo10ptWAHbeHh1n3SS a4hRumvN2FfSKjhIfN2di093uwc7hSvXGZjA1TWzBrMI98fxrUctFmmcLXUhBnbM1z5y LLlVoeOPxLhdpmiGjPE1G6CEEK72i6iKCW3fOXWZHQuOTvCaOcbLvsi8e2Y0HmEPcP9t SKPmU7ySg+a5rnI/hHSHxcnYF40tBWoUWel6445IXOv3DD88K2hG94ZjhhIvwA8vGxq8 K30pFBhLNkdpZKQytZUtk4gq7XALfezZiMNXBg23HJe7BlH40Nm0r8klPNtbZNm/88Zn rubQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c2-v6si7714172pgp.134.2018.06.29.05.24.54; Fri, 29 Jun 2018 05:25:09 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965630AbeF2MXX (ORCPT + 99 others); Fri, 29 Jun 2018 08:23:23 -0400 Received: from foss.arm.com ([217.140.101.70]:33398 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965328AbeF2MXV (ORCPT ); Fri, 29 Jun 2018 08:23:21 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 1FD9C80D; Fri, 29 Jun 2018 05:23:21 -0700 (PDT) Received: from edgewater-inn.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id E58533F266; Fri, 29 Jun 2018 05:23:20 -0700 (PDT) Received: by edgewater-inn.cambridge.arm.com (Postfix, from userid 1000) id 549D81AE540D; Fri, 29 Jun 2018 13:23:59 +0100 (BST) Date: Fri, 29 Jun 2018 13:23:59 +0100 From: Will Deacon To: "Kani, Toshi" Cc: "linux-kernel@vger.kernel.org" , "tglx@linutronix.de" , "linux-mm@kvack.org" , "stable@vger.kernel.org" , "joro@8bytes.org" , "x86@kernel.org" , "akpm@linux-foundation.org" , "hpa@zytor.com" , "mingo@redhat.com" , "Hocko, Michal" , "cpandya@codeaurora.org" , "linux-arm-kernel@lists.infradead.org" Subject: Re: [PATCH v4 2/3] ioremap: Update pgtable free interfaces with addr Message-ID: <20180629122358.GC17859@arm.com> References: <20180627141348.21777-1-toshi.kani@hpe.com> <20180627141348.21777-3-toshi.kani@hpe.com> <20180627155632.GH30631@arm.com> <1530115885.14039.295.camel@hpe.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1530115885.14039.295.camel@hpe.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Toshi, Thomas, On Wed, Jun 27, 2018 at 04:13:22PM +0000, Kani, Toshi wrote: > On Wed, 2018-06-27 at 16:56 +0100, Will Deacon wrote: > > On Wed, Jun 27, 2018 at 08:13:47AM -0600, Toshi Kani wrote: > > > From: Chintan Pandya > > > > > > The following kernel panic was observed on ARM64 platform due to a stale > > > TLB entry. > > > > > > 1. ioremap with 4K size, a valid pte page table is set. > > > 2. iounmap it, its pte entry is set to 0. > > > 3. ioremap the same address with 2M size, update its pmd entry with > > > a new value. > > > 4. CPU may hit an exception because the old pmd entry is still in TLB, > > > which leads to a kernel panic. > > > > > > Commit b6bdb7517c3d ("mm/vmalloc: add interfaces to free unmapped page > > > table") has addressed this panic by falling to pte mappings in the above > > > case on ARM64. > > > > > > To support pmd mappings in all cases, TLB purge needs to be performed > > > in this case on ARM64. > > > > > > Add a new arg, 'addr', to pud_free_pmd_page() and pmd_free_pte_page() > > > so that TLB purge can be added later in seprate patches. > > > > So I acked v13 of Chintan's series posted here: > > > > http://lists.infradead.org/pipermail/linux-arm-kernel/2018-June/582953.html > > > > any chance this lot could all be merged together, please? > > Chintan's patch 2/3 and 3/3 apply cleanly on top of my series. Can you > please coordinate with Thomas on the logistics? Sure. I guess having this series on a common branch that I can pull into arm64 and apply Chintan's other patches on top would work. How does that sound? Will