Received: by 10.192.165.148 with SMTP id m20csp2228imm; Thu, 19 Apr 2018 11:55:17 -0700 (PDT) X-Google-Smtp-Source: AIpwx49qGFYRx+J9t4WgdQUVoXXsGoP9NbYBdq4x1ahnaJDeYdgf6aFnFjQAm8AX8LkSPZblbKqz X-Received: by 10.99.182.66 with SMTP id v2mr4338076pgt.158.1524164117566; Thu, 19 Apr 2018 11:55:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524164117; cv=none; d=google.com; s=arc-20160816; b=tdiIm2HTTPN7kMcDfC2V5TPMNJu36LCT5Dc61yVRl2VbS/oIrpxz2INJQ3mBWhCbFK dUGr/nL77ipcr07qTQTgULgOz6c2zzN5eLsIQHeR8xbqo0SuwsO8KhfgKWALeKmXfmAC FiZw51gth6mTv7OZmyIpDn+3of/y0l0zDiBDvEc1uAlgYxzkDA45u6drSe5kxuR8LwQ6 HSFcG9SBwKXXdsawgUAGMV6FaJEOC9Pm+ElwKWdEhiWSA8tuAW0aKwsVnm3k2yg+X5Z9 wnIjaTTjTzTodyEiDvpseZOkFQqt+9w6Oe2PA2ZqhkIo9nPOVTriWifA9r4O1og1n8cP 80PA== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:cc:references:to:subject:arc-authentication-results; bh=BSCTkgbpRRPPyS9CME1yY6xaLNwlBfDCN1XM0vLjr+0=; b=OWESBs+SGH+XNiqU479uo6VI3GWX24n+bfKNkSo+dEkiCLrIKBi1dF2EsfWaTHsL6w gN6fbFDPYo7mTLGtYmunvTMo5lyTmq5olDWPZIcY+Py5hxIflEzo1G0XL/0BFYJer1Ex vqH/jmpWNlR1IH6BVXpQb75sUrouN8WxvFPhTkhux4AUeujPqll1MAxKY7d3ZrNoz4Kh 6993yDySovHiB1sw8BAjMNtU0n7eBFejRNIDCQFfuHpiLAgOgDh/iP3/1ErsBNjvssbf 42fHBNKlOvE6padP6ISN0bBPh4p4H2RtXk5VnNK/206053fgX45AlCWV11p3nU3PB+sS HVug== 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 t65si3479397pgc.343.2018.04.19.11.55.03; Thu, 19 Apr 2018 11:55:17 -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 S1753270AbeDSSxz (ORCPT + 99 others); Thu, 19 Apr 2018 14:53:55 -0400 Received: from mga02.intel.com ([134.134.136.20]:62138 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753057AbeDSSxx (ORCPT ); Thu, 19 Apr 2018 14:53:53 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 19 Apr 2018 11:53:53 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,297,1520924400"; d="scan'208";a="35565935" Received: from ray.jf.intel.com (HELO [10.7.201.16]) ([10.7.201.16]) by orsmga006.jf.intel.com with ESMTP; 19 Apr 2018 11:53:53 -0700 Subject: Re: BUG: Bad page map in process python2 pte:10000000000 pmd:17e8be067 To: Fengguang Wu , linux-mm@kvack.org References: <20180419054047.xxiljmzaf2u7odc6@wfg-t540p.sh.intel.com> Cc: Andrew Morton , Michal Hocko , =?UTF-8?B?SsOpcsO0bWUgR2xpc3Nl?= , Mel Gorman , Huang Ying , Ross Zwisler , Minchan Kim , Hugh Dickins , linux-kernel@vger.kernel.org, lkp@01.org From: Dave Hansen Message-ID: <17463682-dc08-358d-8b44-02821352604c@intel.com> Date: Thu, 19 Apr 2018 11:53:51 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20180419054047.xxiljmzaf2u7odc6@wfg-t540p.sh.intel.com> Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/18/2018 10:40 PM, Fengguang Wu wrote: > [ 716.494065] PASS concurrent_autogo_5ghz_ht40 4.803608 2018-03-23 09:57:21.586794 > [ 716.494069] > [ 716.496923] passed all 1 test case(s) > [ 716.496926] > [ 716.511702] swap_info_get: Bad swap file entry 04000000 > [ 716.512731] BUG: Bad page map in process python2 pte:100_0000_0000 pmd:17e8be067 > [ 716.513844] addr:00000000860ba23b vm_flags:00000070 anon_vma: (null) mapping:000000004c76fece index:1e2 > [ 716.515160] file:libpcre.so.3.13.3 fault:filemap_fault mmap:generic_file_mmap readpage:simple_readpage > [ 716.516418] CPU: 2 PID: 8907 Comm: python2 Not tainted 4.16.0-rc5 #1 > [ 716.517533] Hardware name: /DH67GD, BIOS BLH6710H.86A.0132.2011.1007.1505 10/07/2011 Did you say that you have a few more examples of this? I would be really interested if it's always python or always the same shared library, or always file-backed memory, always the same bit, etc... From the vm_flags, I'd guess that this is the "rw-p" part of the file mapping. The bit that gets set is really weird. It's bit 40. I could definitely see scenarios where we might set the dirty bit, or even NX for that matter, or some *bit* that we mess with in software. It's not even close to the boundary where it could represent a swapoffset=1 or swapfile=1. It's also unlikely to be _PAGE_PSE having gone missing from the PMD since it's in the middle of a file-backed mapping and the PMD is obviously pointing to a 4k page. If I had to put money on it, I'd guess it's a hardware bit flip, or less likely, a rogue software bit flip. But, more examples will hopefully shed some more light.