Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp829484pxu; Thu, 3 Dec 2020 13:50:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJxf4BiI5ijQ1yXN4JwK2jvjULu49vmW08Day0CE0NfpKqzDKzJ72cIKSpKPySrS/SGmZ625 X-Received: by 2002:a17:906:82ce:: with SMTP id a14mr4423590ejy.421.1607032205163; Thu, 03 Dec 2020 13:50:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607032205; cv=none; d=google.com; s=arc-20160816; b=wPbxMrvdtiGhGm5RtCzy6/pQ8LbfsYHaLYJcluRTNvOf6XVAsfc/5SbuNgAJ6qpNBg KyyMU54Bh1+qcgW94YLAmQUEwaQ35jfI9sDfxQpmfNGCFFS3OZ7U1HmUY37XFXehYIXz JzeJ4aBZpNvguJmDowLHu1ro0ZT6CmJlTBkOYWblyDE6gW56umoSX8P0CnlBas5LPdfI l1LzwZLuGtcDcp9Jh1LTkYBA9jj0GPi1coXkLwpNaTtKl4qYuMK/Tvdkitb3/G8KVK0A A/4SQRlXEWt0o/pM2cGY+5A+S59ZgSwAaOxt0B/LMyBF1TOWrDFCoMoKSPLc6+8ZFOSH DFdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:message-id :in-reply-to:subject:cc:to:from:date:dkim-signature; bh=EEDpEPg20mrOi+gLZZh/e5E2eO12nJVyTtIJrwc4Hhw=; b=txxA1fKGLkV4pl+jzSjjJHCm1W3t25PylWdn4ul7k5sNLON29WVkz6zl/MzOSm/gql zNgSytV/zEOHIdPWhEm6FRT+o4FuRF5asuIT3HkYQinVFiB1IEcedbpY0aH6PW+CA1+x YlZD4J0PMUch6K6EctjcoUY/DAR3risMz39Nmah5/k6LurSBYS3Asaf43CcidirHGwJl bthESavfqx8pMVrQBm8pp7ioA6oDXy0cS6tnSbPVxkqgzqeCxpk6zot6pGf5bPBgRjlf a3nRqhIyI7S0YYxgqqh4rBx7GuaGAzZ6VuE4m9CaSvYkq5dQ/j4RaowpbhfV5r/WIJxm ZkHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=veGdRpfz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i8si180604ejj.424.2020.12.03.13.49.42; Thu, 03 Dec 2020 13:50:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=veGdRpfz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387799AbgLCVqo (ORCPT + 99 others); Thu, 3 Dec 2020 16:46:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51596 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728675AbgLCVqn (ORCPT ); Thu, 3 Dec 2020 16:46:43 -0500 Received: from mail-ot1-x343.google.com (mail-ot1-x343.google.com [IPv6:2607:f8b0:4864:20::343]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C60E7C061A52 for ; Thu, 3 Dec 2020 13:46:03 -0800 (PST) Received: by mail-ot1-x343.google.com with SMTP id y24so3273549otk.3 for ; Thu, 03 Dec 2020 13:46:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=EEDpEPg20mrOi+gLZZh/e5E2eO12nJVyTtIJrwc4Hhw=; b=veGdRpfzhPNSwO2u8ojbMsIDoZ8aR5PYS3mHe8rLoapltHRQzi9akp4g3CPjhqCRig t2zzXVuOnK2AwkcLlnboyxiwmD/RXyFNpOh15F4j62lWfvmoL2RP6Yw5sFKTtlm51O1N 8YYQ91xP/ABKVuDOUha6ZMg/dNnrSEKOQwyaeL4ny3yIiS7/2LWByc+twsVedE/zwbK+ /s2qCZaOL7bEk+vwlTzSisxNfiKE0XDJtPLFK/g0RfnY9MIJnyh4nMilsazklb8wkj8Q 6sA80gGOrB65McsgEFlhtiRkP+7fSaDCgZSb+k0HZDx7jtL543G/NB5Q7HzmMLXDlpnH h7rA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version; bh=EEDpEPg20mrOi+gLZZh/e5E2eO12nJVyTtIJrwc4Hhw=; b=AwelQ6KI3cHc6V29ghqg2DKHgkc8ZjuqyT/diTeFaO2Stvxc+ZvuB6OT1e+RoAeRTw u0tsuCoG6COlYM2sHLg4gD0Um5qf8ljs2e7pmk/swzHSmwURdgYXbvFkmkxy4ObaBIPu KBY4ELk2C+QMP/LszW3XIyJitA4OpBk7x9wzckPVeJW3/aPF7478a376FTjqAWn7LBlj CuHaGu/yjXRF6j1C3rvETKjLpvIPZIn4XYWqvNrwsiBuCEppk5AjSzfxwvfKeeSbxh22 x5GYopH3+JWCo4wOA2AQDTGZEZl857/VlXb2F//JLV4cZSI6XryvFABj317dG0qzU0ov CRAw== X-Gm-Message-State: AOAM531ws8x0Ms3sbPy5B9JFvSb6GJzRAXw7GexDsIMU0fnzQDbmONfq f7MZizlj8WEaEZPXlXaBAZlcsQ== X-Received: by 2002:a9d:4b03:: with SMTP id q3mr1085136otf.53.1607031962853; Thu, 03 Dec 2020 13:46:02 -0800 (PST) Received: from eggly.attlocal.net (172-10-233-147.lightspeed.sntcca.sbcglobal.net. [172.10.233.147]) by smtp.gmail.com with ESMTPSA id o6sm194057oon.7.2020.12.03.13.46.01 (version=TLS1 cipher=ECDHE-ECDSA-AES128-SHA bits=128/128); Thu, 03 Dec 2020 13:46:02 -0800 (PST) Date: Thu, 3 Dec 2020 13:45:42 -0800 (PST) From: Hugh Dickins X-X-Sender: hugh@eggly.anvils To: Marek Szyprowski cc: Matthew Wilcox , Hugh Dickins , Andrew Morton , Stephen Rothwell , Qian Cai , Jan Kara , William Kucharski , linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, hch@lst.de, hannes@cmpxchg.org, yang.shi@linux.alibaba.com, dchinner@redhat.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 00/16] Overhaul multi-page lookups for THP In-Reply-To: <0107bae8-baaa-9d39-5349-8174cb8abbbe@samsung.com> Message-ID: References: <20201112212641.27837-1-willy@infradead.org> <20201117153947.GL29991@casper.infradead.org> <20201117191513.GV29991@casper.infradead.org> <20201117234302.GC29991@casper.infradead.org> <20201125023234.GH4327@casper.infradead.org> <0107bae8-baaa-9d39-5349-8174cb8abbbe@samsung.com> User-Agent: Alpine 2.11 (LSU 23 2013-08-11) MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="0-1876154756-1607031962=:12944" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --0-1876154756-1607031962=:12944 Content-Type: TEXT/PLAIN; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE On Thu, 3 Dec 2020, Marek Szyprowski wrote: > On 03.12.2020 16:46, Marek Szyprowski wrote: > > On 25.11.2020 03:32, Matthew Wilcox wrote: > >> On Tue, Nov 17, 2020 at 11:43:02PM +0000, Matthew Wilcox wrote: > >>> On Tue, Nov 17, 2020 at 07:15:13PM +0000, Matthew Wilcox wrote: > >>>> I find both of these functions exceptionally confusing.=C2=A0 Does t= his > >>>> make it easier to understand? > >>> Never mind, this is buggy.=C2=A0 I'll send something better tomorrow. > >> That took a week, not a day.=C2=A0 *sigh*.=C2=A0 At least this is shor= ter. > >> > >> commit 1a02863ce04fd325922d6c3db6d01e18d55f966b > >> Author: Matthew Wilcox (Oracle) > >> Date:=C2=A0=C2=A0 Tue Nov 17 10:45:18 2020 -0500 > >> > >> =C2=A0=C2=A0=C2=A0=C2=A0 fix mm-truncateshmem-handle-truncates-that-sp= lit-thps.patch > > > > This patch landed in todays linux-next (20201203) as commit=20 > > 8678b27f4b8b ("8678b27f4b8bfc130a13eb9e9f27171bcd8c0b3b"). Sadly it=20 > > breaks booting of ANY of my ARM 32bit test systems, which use initrd.= =20 > > ARM64bit based systems boot fine. Here is example of the crash: kernel BUG at fs/inode.c:531 evict() hitting clear_inode()'s BUG_ON(inode->i_data.nr_pages) Same here on i386 on mmotm (slightly different line number on mmotm). >=20 > One more thing. Reverting those two: >=20 > 1b1aa968b0b6 mm-truncateshmem-handle-truncates-that-split-thps-fix-fix >=20 > 8678b27f4b8b mm-truncateshmem-handle-truncates-that-split-thps-fix >=20 > on top of linux next-20201203 fixes the boot issues. Thanks a lot for the report, Marek. Yes, reverting those two (of which "-fix" amounts to a rewrite, and "-fix-fix" is far from complete) takes the linux-next tree back to how truncate was before it took in yesterday's mmotm: not crashing on 32-bit, but still not good. The 32-bit breakage may turn out to be a simple one-liner like a missing cast, or overflow from 0 to -1, somewhere in the rewritten truncate_inode_pages_range(); but it did not stand out to me, and it does not immediately matter, since other fixes are needed to that patch. I'm afraid it's proving to be work in progress. I did ask Andrew to revert these earlier in the thread, but it looks like that got lost in the jungle of his inbox: I'll send a better targetted mail, but what we need is to revert these *four* patches, until we have a better tested and stable version. mm-truncateshmem-handle-truncates-that-split-thps.patch mm-truncateshmem-handle-truncates-that-split-thps-fix.patch mm-truncateshmem-handle-truncates-that-split-thps-fix-fix.patch mm-filemap-return-only-head-pages-from-find_get_entries.patch Hugh --0-1876154756-1607031962=:12944--