Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1062352ybl; Wed, 14 Aug 2019 10:06:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqzyAZ8I3JtBbInvSKuvP/UbjEBF3l+51Mp4mhvGNYZ6EBv6N30FzLmozjl9QobmiXRX1Hv8 X-Received: by 2002:a17:90a:4803:: with SMTP id a3mr752873pjh.58.1565802393132; Wed, 14 Aug 2019 10:06:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565802393; cv=none; d=google.com; s=arc-20160816; b=SiYpk8PYxIIehQngLxmjuR8PZHXzmmZvNDR0WhSr0nogiIfpg+xaBJ8YcGoXLTgqm2 jHfU8VO07x9+UkPOa7JAlMA33vTyTX5989aGjeCS3wpx/2l2Cwq1D9wXzKBEQN8+wl/Y jgYapiBPvisgIjuSH8v49PHTDzc80PL4JaoFgtwW1uJHY7mgZK5J/eufqbX/zZ5Go/Ks G9j9stPUke9iVXLihk55qARdkP+4e8O/igll+ImUpi7Y4rlPa/x2wEfTtLzuNZztD5Jj 9+gIS5nU974b/FBNx1C9FSnSefIbWsLHu3KD92R2JsONG7uCZFip+PE1O4LTtBRG/Zce nFzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Z7o95DFyEzPtsVtV/O2HA1j3ELE8/4s8mQqkzB0jS/4=; b=B2Z3Kcn4KTs4YIVmns9G4z7sUDN4xuAF4IuvCe/DnjEaQLvOeww/3JyJcV/aHyz6k8 8MwTCG3XI+z/jFjN9RB66Wv06RHuZYLyaeYxdYHQyb+fH6ssSFzXBeasc3SbdvmMXwxX 7PbcWgKQ7NspBauhrtqej53Zn93DqIOXolk7UFT4eTp++DBC0HIcLHcRNjdP5wnneakm 1NuL0fxkXdR0p2ZGqOwV3XO+e28BcjqVTXgdbUoe6wVI/n1FDhXJxVNv4itmmDeTDOop IOx+CGD9BBjqqIA8Qg8IB7m8bOaOekL1pL1ME0BjA0OOn0NXWNpaZpwP6DLMdsY2QI3T bYEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Fv56AkfA; 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 67si83438pfv.74.2019.08.14.10.06.17; Wed, 14 Aug 2019 10:06:33 -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; dkim=pass header.i=@kernel.org header.s=default header.b=Fv56AkfA; 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 S1729272AbfHNREi (ORCPT + 99 others); Wed, 14 Aug 2019 13:04:38 -0400 Received: from mail.kernel.org ([198.145.29.99]:53476 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728599AbfHNREh (ORCPT ); Wed, 14 Aug 2019 13:04:37 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 022512173E; Wed, 14 Aug 2019 17:04:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1565802276; bh=1R8u4ELJOb4HRqVwp+Btv5QXt5t8TpFp1VVgY+cFNwA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Fv56AkfAg7HmSP2t/DBooDDKsiHO5k2EQyS7Q0aSjopQDzgVb0OyxmlZllZr0WY1H w/xFlrg1H6ft05E//47ahLmlEo7QdCypdbFimcdRVdive/Evr/Zoxm30jsX3Xn6hLB hwYF9DkqrCak/2kEsLu0njlrNZmmHdhDp6LJejBA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Joerg Roedel , Thomas Gleixner , Dave Hansen Subject: [PATCH 5.2 027/144] x86/mm: Check for pfn instead of page in vmalloc_sync_one() Date: Wed, 14 Aug 2019 18:59:43 +0200 Message-Id: <20190814165800.978102562@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190814165759.466811854@linuxfoundation.org> References: <20190814165759.466811854@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Joerg Roedel commit 51b75b5b563a2637f9d8dc5bd02a31b2ff9e5ea0 upstream. 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. Fixes: 5d72b4fba40ef ('x86, mm: support huge I/O mapping capability I/F') Signed-off-by: Joerg Roedel Signed-off-by: Thomas Gleixner Reviewed-by: Dave Hansen Link: https://lkml.kernel.org/r/20190719184652.11391-2-joro@8bytes.org Signed-off-by: Greg Kroah-Hartman --- arch/x86/mm/fault.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/arch/x86/mm/fault.c +++ b/arch/x86/mm/fault.c @@ -200,7 +200,7 @@ static inline pmd_t *vmalloc_sync_one(pg if (!pmd_present(*pmd)) set_pmd(pmd, *pmd_k); else - BUG_ON(pmd_page(*pmd) != pmd_page(*pmd_k)); + BUG_ON(pmd_pfn(*pmd) != pmd_pfn(*pmd_k)); return pmd_k; }