From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg0-f69.google.com (mail-pg0-f69.google.com [74.125.83.69]) by kanga.kvack.org (Postfix) with ESMTP id B0C4A280753 for ; Fri, 19 May 2017 23:03:16 -0400 (EDT) Received: by mail-pg0-f69.google.com with SMTP id x64so72837785pgd.6 for ; Fri, 19 May 2017 20:03:16 -0700 (PDT) Received: from szxga03-in.huawei.com (szxga03-in.huawei.com. [45.249.212.189]) by mx.google.com with ESMTPS id 22si1381624pgg.71.2017.05.19.20.03.14 for (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 19 May 2017 20:03:15 -0700 (PDT) Message-ID: <591FB173.4020409@huawei.com> Date: Sat, 20 May 2017 11:01:07 +0800 From: zhong jiang MIME-Version: 1.0 Subject: Re: mm, something wring in page_lock_anon_vma_read()? References: <591D6D79.7030704@huawei.com> <591EB25C.9080901@huawei.com> <591EBE71.7080402@huawei.com> <591F9A09.6010707@huawei.com> <591FA78E.9050307@huawei.com> In-Reply-To: Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org List-ID: To: Hugh Dickins Cc: Xishi Qiu , Andrew Morton , Tejun Heo , Michal Hocko , Johannes Weiner , Mel Gorman , Michal Hocko , Vlastimil Babka , Minchan Kim , David Rientjes , Joonsoo Kim , aarcange@redhat.com, sumeet.keswani@hpe.com, Rik van Riel , Linux MM , LKML On 2017/5/20 10:40, Hugh Dickins wrote: > On Sat, 20 May 2017, Xishi Qiu wrote: >> Here is a bug report form redhat: https://bugzilla.redhat.com/show_bug.cgi?id=1305620 >> And I meet the bug too. However it is hard to reproduce, and >> 624483f3ea82598("mm: rmap: fix use-after-free in __put_anon_vma") is not help. >> >> From the vmcore, it seems that the page is still mapped(_mapcount=0 and _count=2), >> and the value of mapping is a valid address(mapping = 0xffff8801b3e2a101), >> but anon_vma has been corrupted. >> >> Any ideas? > Sorry, no. I assume that _mapcount has been misaccounted, for example > a pte mapped in on top of another pte; but cannot begin tell you where > in Red Hat's kernel-3.10.0-229.4.2.el7 that might happen. > > Hugh > > . > Hi, Hugh I find the following message from the dmesg. [26068.316592] BUG: Bad rss-counter state mm:ffff8800a7de2d80 idx:1 val:1 I can prove that the __mapcount is misaccount. when task is exited. the rmap still exist. Thanks zhongjiang -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org