From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.6 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 461F7C5ACC4 for ; Thu, 20 Feb 2020 01:21:57 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 0C3E22465D for ; Thu, 20 Feb 2020 01:21:56 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="sa+oguDp" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0C3E22465D Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 847386B0005; Wed, 19 Feb 2020 20:21:56 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 7D0A36B0006; Wed, 19 Feb 2020 20:21:56 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 697F36B0007; Wed, 19 Feb 2020 20:21:56 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0133.hostedemail.com [216.40.44.133]) by kanga.kvack.org (Postfix) with ESMTP id 4DE426B0005 for ; Wed, 19 Feb 2020 20:21:56 -0500 (EST) Received: from smtpin15.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id 10B703D01 for ; Thu, 20 Feb 2020 01:21:56 +0000 (UTC) X-FDA: 76508753832.15.laugh33_68275d291131e X-HE-Tag: laugh33_68275d291131e X-Filterd-Recvd-Size: 3553 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) by imf26.hostedemail.com (Postfix) with ESMTP for ; Thu, 20 Feb 2020 01:21:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=0Xr5dB2a3pZdrHZvv3CVZ3/tBc/UhsWFFnU1ntKlpAQ=; b=sa+oguDpK8O8sZ8Pi6BZJjuvyO 9Zsq5DSB6zYr8z1/5XQcCoApyNzvA4+dU4/nR0A8jUE0xaeyh0Dvb1hfRd1TJ5dDp1Cthblh7QO2I HTFDf9M3SshRF+P7ItUAyd0FEg065H6eb890vGJx65lXYK8IUJh/PCoD7PIqd+D6O1jlFay/kSszN QwgCN5KD9A7dvF6oGG5AssN5PkRhwfRmUuyisW0w0qWWp1YtClL480gliKWMDKZ25xS1oOYs/nywK pMant50fnGf3zf7SaGC6Z/eFI5Quzp65XhEsPDA9wy0RFEGoxw7YQMmct5AHm360v/f+xTCvNWAxL PWTVTUHA==; Received: from willy by bombadil.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1j4aXI-0001uT-MK; Thu, 20 Feb 2020 01:21:52 +0000 Date: Wed, 19 Feb 2020 17:21:52 -0800 From: Matthew Wilcox To: Yang Shi Cc: Andrew Morton , Song Liu , dennis.lissov@gmail.com, bugzilla-daemon@bugzilla.kernel.org, Linux MM Subject: Re: [Bug 206569] BUG at mm/filemap.c:2529: VM_BUG_ON_PAGE(page_to_pgoff(page) != offset) Message-ID: <20200220012152.GU24185@bombadil.infradead.org> References: <20200219144635.3b7417145de19b65f258c943@linux-foundation.org> <20200220002520.GT24185@bombadil.infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Wed, Feb 19, 2020 at 04:37:11PM -0800, Yang Shi wrote: > On Wed, Feb 19, 2020 at 4:25 PM Matthew Wilcox wrote: > > > > On Wed, Feb 19, 2020 at 02:46:35PM -0800, Andrew Morton wrote: > > > > > > (switched to email. Please respond via emailed reply-to-all, not via the > > > bugzilla web interface). > > > > > > On Wed, 19 Feb 2020 21:33:32 +0000 bugzilla-daemon@bugzilla.kernel.org wrote: > > > > > > > https://bugzilla.kernel.org/show_bug.cgi?id=206569 > > > > > > > > --- Comment #1 from Denis Lisov (dennis.lissov@gmail.com) --- > > > > Upd. Double-checking my kernel settings I found that I've accidentally enabled > > > > experimental CONFIG_READ_ONLY_THP_FOR_FS - may be related to that. > > > > > > > > In my new kernel build the problem failed to reproduce (I've disabled > > > > CONFIG_READ_ONLY_THP_FOR_FS, CONFIG_KSM and switched from > > > > CONFIG_TRANSPARENT_HUGEPAGE_ALWAYS to CONFIG_TRANSPARENT_HUGEPAGE_MADVISE - > > > > sorry for multiple changes). > > > > > > Thanks. > > > > > > Song Liu, could you please take a look? > > > > This is a compound page ... Dennis, are you willing to apply this patch > > https://lore.kernel.org/linux-mm/20200211001536.1027652-12-jhubbard@nvidia.com/ > > and retest? It will give us more information about what's going on. > > page:ffffc9b318af02c0 refcount:0 mapcount:3 mapping:dead000000000400 > index:0x60b compound_mapcount: 3 > > It looks like a tail page. ... yes, that's the point; that patch prints the information from the head page when the page is a tail page.