Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp66040imm; Tue, 3 Jul 2018 14:03:23 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKLUrg0dhIMT0+z7z+sURuUMEWdX179389zPa3ishXIUw8rnVOw4qRgjULvHg8lFnR183eM X-Received: by 2002:a65:4b87:: with SMTP id t7-v6mr26755640pgq.391.1530651803606; Tue, 03 Jul 2018 14:03:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530651803; cv=none; d=google.com; s=arc-20160816; b=Q70hPzyDTPnZvxL5yYoI7DRqGk55g5kCwG/LKD7CFmxt+KHw+wePjGksatFTJ3yimh 4dz8u4hUXrlO7gCj5GA5FtdVpWmEzHqox5+3T2TuZ7fIUcg9JYsa6ypi54FmJq54l3Hy FgGmdqMGZDJWymDgzflirEHtVtNj6imNCRXnSdy55TQxzP0ov6T1S6NY3hT9X8d2JP6b 5WTtFPOElIejS4XguzjvStc7X0YnfIBwGHloQsEC4Rip2rleztRcQ6CEnoOWBFX0V+j9 tRXp4CP/eoz/+NZrs0hYgAuPKAf2/inNZC44V8WxlmIOQUwWLbRNXIolJhwAGm2/LlTX 8XEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date :arc-authentication-results; bh=mJ2AFoQpQfOeLjnPGGQqzJ8DNhbYPAxVc0qRceisE5w=; b=TaICslLRRqu/nTuhnpQ2dXJX9yrAFgqR7O+PBzDfKn0Sk/bntEZ1Y5FkHSjBDTFsb+ vIDTE0nl28SNFQIlxZNDcoIIhs14GzAwJMRqhUWoAgH2CiIxkV18y7NXtRX9C9Ql2g79 toY/bZNE+XIdRXk5waK49uq6f0yrPaPpdV8c9hDiDmGaiAQlfg9AmI8rizWUog9wcwHG zijvWSGp77jLFnWNGbjE+gaDNrO1N4M+hTxc4go3TLcuGOwsYen52DbmDmId4w7OQd9u h+aeVbOR263BStPQlhw/khecYd7CIYZqOq5uZCO6PrLUiizTePEmNnXtai/etkNucue4 mUyg== 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 j135-v6si2147873pfd.207.2018.07.03.14.03.09; Tue, 03 Jul 2018 14:03:23 -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 S1753179AbeGCVCY (ORCPT + 99 others); Tue, 3 Jul 2018 17:02:24 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:45510 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753111AbeGCVCX (ORCPT ); Tue, 3 Jul 2018 17:02:23 -0400 Received: from p4fea482e.dip0.t-ipconnect.de ([79.234.72.46] helo=nanos) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1faSRE-0002qH-Bh; Tue, 03 Jul 2018 23:02:16 +0200 Date: Tue, 3 Jul 2018 23:02:15 +0200 (CEST) From: Thomas Gleixner To: "Kani, Toshi" cc: "will.deacon@arm.com" , "akpm@linux-foundation.org" , "linux-kernel@vger.kernel.org" , "linux-mm@kvack.org" , "stable@vger.kernel.org" , "joro@8bytes.org" , "x86@kernel.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 In-Reply-To: <1530287995.14039.361.camel@hpe.com> Message-ID: 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> <20180629122358.GC17859@arm.com> <1530287995.14039.361.camel@hpe.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 29 Jun 2018, Kani, Toshi wrote: > On Fri, 2018-06-29 at 13:23 +0100, Will Deacon wrote: > > 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? > > Should this go thru -mm tree then? > > Andrew, Thomas, what do you think? I just pick it up and provide Will a branch to pull that lot from. Thanks, tglx