Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1151227imm; Tue, 15 May 2018 14:42:32 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrnCMMQigvt3EuPfOfta7DH4gays9FoBHQcPaRf+K0Xg/fe5AGAg8bHuURoJpg8hhJ4Le3S X-Received: by 2002:a17:902:321:: with SMTP id 30-v6mr7496973pld.122.1526420552493; Tue, 15 May 2018 14:42:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526420552; cv=none; d=google.com; s=arc-20160816; b=q/94mTaVcGIV0nH117iDAWhodjRYA13RHSN/ovZVVXSu4uqOFu9/HqWJEA93X629EF eupXN8Vn5FxOZXxCyG8Jmv6lMJsoFBbdT4iWXeVY/DXcOpWeBxWeBIFoaWySinPMHB1N L3TdYM26EbSmsIjNYfeMcqu8faYbu8JCrAEUHf7nRuWzBoDdWQLYBIBC5dTrWdmpLneX ADMtCFyZIgN45v/+85S/kuSCaudcgUYU1qs/FBS9XBcl2Go4HOuJ4+lSIj6t84B2xCLg Bpt6gAu3Fz0eRKQdK4g3BfabeH6som5U31HayTljkL8J1CJZS0UkkZ7Z+V7zx6zsnzO+ YYSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=BxEeZ2/mr358cDjlqoxVFoRZc/11nvnPQyDbjLcDuB4=; b=O3sfURGp2lIh1JZZpPnAGzD9JYISZy6WMb4Q8xFezX3LRnwdVQgR6/wwGhTsF0xBXd DF8Lp4X21aYPWfch8W2QsWVgUfgnQzU9goR4d3XNxIBCu16ySaZGn0mNIh8zWwmtyF8W UqUSXzIqQcTmFa99K+Cbausbign3o6dm1ChXe61NAp/QpbImY8d/TJx0as/54O8oOLs8 3MIs48rdxAWDEvib0V4AWM+jOzVcUZq8vW30w3iIUkyXDqAGYNNAbkNQMqCt1RlETRT5 jxMiMuBKxIbqG2WQyXKegpwniYeUCNfkFAYKOaRRvNgmJ9X4ze291Dpw+LiZNgrdb3OV k8ow== 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 l3-v6si738575pgp.426.2018.05.15.14.42.18; Tue, 15 May 2018 14:42:32 -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 S1752024AbeEOVkp (ORCPT + 99 others); Tue, 15 May 2018 17:40:45 -0400 Received: from g2t2353.austin.hpe.com ([15.233.44.26]:37910 "EHLO g2t2353.austin.hpe.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751149AbeEOVko (ORCPT ); Tue, 15 May 2018 17:40:44 -0400 Received: from g2t2360.austin.hpecorp.net (g2t2360.austin.hpecorp.net [16.196.225.135]) by g2t2353.austin.hpe.com (Postfix) with ESMTP id C40A46D; Tue, 15 May 2018 21:40:43 +0000 (UTC) Received: from misato.americas.hpqcorp.net (unknown [10.34.81.122]) by g2t2360.austin.hpecorp.net (Postfix) with ESMTP id 7306537; Tue, 15 May 2018 21:40:42 +0000 (UTC) From: Toshi Kani To: mhocko@suse.com, akpm@linux-foundation.org, tglx@linutronix.de, mingo@redhat.com, hpa@zytor.com Cc: cpandya@codeaurora.org, linux-mm@kvack.org, x86@kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 0/3] fix free pmd/pte page handlings on x86 Date: Tue, 15 May 2018 15:39:28 -0600 Message-Id: <20180515213931.23885-1-toshi.kani@hpe.com> X-Mailer: git-send-email 2.14.3 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series fixes two issues in the x86 ioremap free page handlings for pud/pmd mappings. Patch 01 fixes BUG_ON on x86-PAE reported by Joerg. It disables the free page handling on x86-PAE. Patch 02-03 fixes a possible issue with speculation which can cause stale page-directory cache. - Patch 02 is from Chintan's v9 01/04 patch [1], which adds a new arg 'addr'. This avoids merge conflicts with his series. - Patch 03 adds a TLB purge (INVLPG) to purge page-structure caches that may be cached by speculation. See the patch descriptions for more detal. [1] https://patchwork.kernel.org/patch/10371015/ v2: - Reordered patch-set, so that patch 01 can be applied independently. - Added a NULL pointer check for the page alloc in patch 03. --- Toshi Kani (2): 1/3 x86/mm: disable ioremap free page handling on x86-PAE 3/3 x86/mm: add TLB purge to free pmd/pte page interfaces Chintan Pandya (1): 2/3 ioremap: Update pgtable free interfaces with addr --- arch/arm64/mm/mmu.c | 4 +-- arch/x86/mm/pgtable.c | 59 +++++++++++++++++++++++++++++++++++++------ include/asm-generic/pgtable.h | 8 +++--- lib/ioremap.c | 4 +-- 4 files changed, 59 insertions(+), 16 deletions(-)