Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp4427128ybi; Mon, 15 Jul 2019 08:45:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqzZ/eI76QgJ3bNvG8tqY5q+KQe4di4ESxpSIYK4Bqvo1xDo7DCLSKqBvGr1o5c4xNYlqhbf X-Received: by 2002:a17:90a:ac13:: with SMTP id o19mr30068283pjq.143.1563205554603; Mon, 15 Jul 2019 08:45:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563205554; cv=none; d=google.com; s=arc-20160816; b=RPvSeGKoMG+b0Askf0YxwGN7N5oh82HGBB0CRhNx5s3u6rMARBJMhYF00lwV8WschC ckwRQg6Kb/TqSXpd2Aaz+wP96szHS+rMgToeTOygYfzlkI/RYzIKvyA78qw8PmC5f+H/ Xl6pyKU6DuaLS3RhS0FsuRhAX1SGHrJL3+eu6M2142iygANKTSlMOW4GJHMZvYpaozKE mOJoBlyEFf+KMRhxWiACsrIlPF7BYzY3hdmatBBM1jEuEmpz5mxpBSEoBv1V8s9UZxSO zMbTsQK5KuepaaLdlFZ+vSFu3o7MTerde8jyVycPNe3VQhKARBEh4uJafguPEjcJiKcC lzhg== 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; bh=gbLdq+T3cCN449bgts4AIg06nkIaeeAOi5GxOmlCW3Y=; b=Z3I6L6+1FE4dsJsJyj4KwhBuPPgsCejToYIu4NK7E5U4p2QPDLl/nx1vVDnN5gVpeJ XtMgw+R6Fn2zjc4IHWnQsFW/QxlN+pN8ZCr8la9WXWTHJ50PgLLM3oO/+/9iSfY7hL2r HHaa7fejhHFva7pOLdSaDZFE50IrTE3wFu9U2NFX5Z07u5PVEnWod+528LFB6L4vSjPp gReMSmlEs1B6/AeJ3S8T14IdSAcqQcldJjW0Zzy+4bOBEZuZrJVZ17kKJinNlfeT8YNB QtBlGRhuRfdYl/GyM7unLjsrxT21bXxO4zmguBES9O3grnMuu/RMDHSQqXvEAsvYMZxz hdrA== 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 h13si15454308pgp.296.2019.07.15.08.45.37; Mon, 15 Jul 2019 08:45:54 -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 S1730931AbfGOPoX (ORCPT + 99 others); Mon, 15 Jul 2019 11:44:23 -0400 Received: from mx2.suse.de ([195.135.220.15]:36618 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730257AbfGOPoW (ORCPT ); Mon, 15 Jul 2019 11:44:22 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 3A3D5AF78; Mon, 15 Jul 2019 15:44:21 +0000 (UTC) Date: Mon, 15 Jul 2019 17:44:18 +0200 From: Joerg Roedel To: Thomas Gleixner Cc: Joerg Roedel , Dave Hansen , Andy Lutomirski , Peter Zijlstra , Ingo Molnar , Borislav Petkov , Andrew Morton , linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH 1/3] x86/mm: Check for pfn instead of page in vmalloc_sync_one() Message-ID: <20190715154418.GA13091@suse.de> References: <20190715110212.18617-1-joro@8bytes.org> <20190715110212.18617-2-joro@8bytes.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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 Mon, Jul 15, 2019 at 03:08:42PM +0200, Thomas Gleixner wrote: > On Mon, 15 Jul 2019, Joerg Roedel wrote: > > > From: Joerg Roedel > > > > Do not require a struct page for the mapped memory location > > because it might not exist. This can happen when an > > ioremapped region is mapped with 2MB pages. > > > > Signed-off-by: Joerg Roedel > > Lacks a Fixes tag, hmm? Yeah, right, the question is, which commit to put in there. The problem results from two changes: 1) Introduction of !SHARED_KERNEL_PMD path in x86-32. In itself this is not a problem, and the path was only enabled for Xen-PV. 2) Huge IORemapings which use the PMD level. Also not a problem by itself, but together with !SHARED_KERNEL_PMD problematic because it requires to sync the PMD entries between all page-tables, and that was not implemented. Before PTI-x32 was merged this problem did not show up, maybe because the 32-bit Xen-PV users did not trigger it. But with PTI-x32 all PAE users run with !SHARED_KERNEL_PMD and the problem popped up. For the last patch I put the PTI-x32 enablement commit in the fixes tag, because that was the one that showed up during bisection. But more correct would probably be 5d72b4fba40e ('x86, mm: support huge I/O mapping capability I/F') Or do I miss something? Regards, Joerg