Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp5844786imm; Mon, 23 Jul 2018 07:04:51 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeYrYwJIV5P3SZTqUHbe8k9Nu7RmF7t+8SNrB/0dfZohgyTWIxjoDNk9iVVZsey0yHjxS2P X-Received: by 2002:a62:998:: with SMTP id 24-v6mr13199652pfj.99.1532354691301; Mon, 23 Jul 2018 07:04:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532354691; cv=none; d=google.com; s=arc-20160816; b=JT5neF2iu3WY7Px+/nZsqfgp2CPBq0GxPnTWmNxSw1nCcXLRhAT38ZYv5LDYx9iFQp Nzu8JaI5/s00/qTA9VKgOFk6A3avXhrV+D22rAKTfrI03BWE9eNbY08FZlPhYy+B6ukl SeR7nw1hRoBko8ky71z6+dlFWSAo/Ei8OVWEZnesvUfv/SPy+cJCnFaHgQ8/2uGqml4D MMjNPhyiJOqNO+1IWH8dWBgXsTIv5Nx3UReoVpLnNK+jkW+x96MIPiN3FlVB40d0m/1F nMmgz8qBLrAMtKySA50lOx55v7URpc5+DmKewxT3tEqhfHMttGtbI1PfXZ0zeEd/Y7Hb Rb8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=NWQt7U5xZWX+04emklGrNLrQvySHXzM9x204aMbtzFc=; b=okef1BbgZFxzma5p1sbXAZvXeL9W8nhg6n6J0I+yfi8vZEMqUgNIlK2uEjcf2w3mis PNAjQsh//dI1BvrD1Q457B/vn2yP1KDTl3TwN7L6y3YvzDm8A+g0PC/J1aBgllHsNsET lDDJ4ouXFTJ783/qo5Arjr3t76CdJiAtVXeLaxuBCP85sOYuTs1JVGey50Grk7jqa8fU cD8vVWipdWf6yY9Km38AKQgx9tKwlOYrEOddh0sBJM0KxM4CebIjOkApamiogFyiHbKi gmnBrUZCxi9CxTxsfD29e/1Pcp8DZ3o0AtmzsAChQnP3us+07PkP+Dc+bEuRE50BODql HjQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=jYvES1gT; 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 i62-v6si8654853pfc.217.2018.07.23.07.04.35; Mon, 23 Jul 2018 07:04:51 -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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=jYvES1gT; 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 S2388135AbeGWPDQ (ORCPT + 99 others); Mon, 23 Jul 2018 11:03:16 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:43668 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387940AbeGWPDQ (ORCPT ); Mon, 23 Jul 2018 11:03:16 -0400 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:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=NWQt7U5xZWX+04emklGrNLrQvySHXzM9x204aMbtzFc=; b=jYvES1gTo9Ljw683DU3BBnbG4 dsuMAivJYNZqQjTBYl4/+odZtXRrwP/y/wXW93iaSmeoiSAtJ9b9PrmmBAuGWM/9pIifwFEkg5cWx x8Anb7N4NOeW0Qbc0AMldUh/M1J8ixRx+0MSuxG5KhJCPdSd6gk2adEzkI9A+5maQmk17BcA70jnC JGAnU0XCHsqhOE+QrMlpnr2n0y/fKjpplxCb7IWHU0S2xNGIgDEw+51rOhrQnPS4dcdn3H/ZCthwQ 59ku7v4XB42KpxTp6aOsbcS15VcDK5hDHwSGvMQs/XN7FcwG7kaJTCpK0JUlSBFgaAp9GNY7P1gxP zeDRBdjgQ==; Received: from willy by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1fhbPK-0007ZB-S8; Mon, 23 Jul 2018 14:01:50 +0000 Date: Mon, 23 Jul 2018 07:01:50 -0700 From: Matthew Wilcox To: Hugh Dickins Cc: syzbot , "Kirill A. Shutemov" , Andrew Morton , linux-kernel@vger.kernel.org, linux-mm@kvack.org, syzkaller-bugs@googlegroups.com Subject: Re: kernel BUG at mm/shmem.c:LINE! Message-ID: <20180723140150.GA31843@bombadil.infradead.org> References: <000000000000d624c605705e9010@google.com> <20180709143610.GD2662@bombadil.infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Jul 22, 2018 at 07:28:01PM -0700, Hugh Dickins wrote: > Whether or not that fixed syzbot's kernel BUG at mm/shmem.c:815! > I don't know, but I'm afraid it has not fixed linux-next breakage of > huge tmpfs: I get a similar page_to_pgoff BUG at mm/filemap.c:1466! > > Please try something like > mount -o remount,huge=always /dev/shm > cp /dev/zero /dev/shm > > Writing soon crashes in find_lock_entry(), looking up offset 0x201 > but getting the page for offset 0x3c1 instead. Hmm. I don't see a crash while running that command, but I do see an RCU stall in find_get_entries() called from shmem_undo_range() when running 'cp' the second time -- ie while truncating the /dev/shm/zero file. Maybe I'm seeing the same bug as you, and maybe I'm seeing a different one. Do we have a shmem test suite somewhere? > I've spent a while on it, but better turn over to you, Matthew: > my guess is that xas_create_range() does not create the layout > you expect from it. I've dumped the XArray tree on my machine and it actually looks fine *except* that the pages pointed to are free! That indicates to me I screwed up somebody's reference count somewhere.