Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp474343pxf; Thu, 18 Mar 2021 05:16:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzixlpqmEAV6+T7rxnv07k64o/r1gUwHiovAgXu/6nz8wOD6srUbl+Y9/KxKEZH9vmlqoAG X-Received: by 2002:a50:e607:: with SMTP id y7mr3362016edm.18.1616069803901; Thu, 18 Mar 2021 05:16:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616069803; cv=none; d=google.com; s=arc-20160816; b=yzHncpj11TD8J4MMHkQ6fmZ9pscYFJcHC7a8hjCFvOsEBthGXHLVBsaku/rq5HnfXu 4hepsCGbvG2gEE/FWdIFP2HKqOYsA8l+WbbjY9jzGh64a2rpy+yjqI5MjO35z2TCrUVN 449hLmKbLRQWPnwKA+ufetg2xfVM+sjy3zRFMkYRdbBvFsct3b3fX4jqcrNLFWlg9WZN eQxdCZp+TKIu/0z44jVrgrab1HNx775N9wMeFAwXppRT/x/dliGtH5xwHfzirizdY9rT qLXGP19HQAyoz4hANQvyPBteQaJlSuZUNp0MlgGaZKoerWRzW9j8P2EPwp8QNLbyJgNx +Ejg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=5J7TsA7kGjEd7bfnykUnQ7ZRPAvlSZS4rCKY79L1iEo=; b=kTLsh/5ICk1Uv5gS80bQD80EMjYhcmUwmkH55vsf6McmgPP3Mh5vYfaB9qhqpWVp6O oxIK/VT2f6Nz21kvzMBQBIh5zYfhyI7x34rA2B4Sdt8HpjyE6p6JlgNWskPf3Ri3tVPm dNYcWD8wRNqF25fU4rM5O0VIgxG/uYhWtqY8PJ8LJf3Krw3RaExBDpjb+DVSLb7WNUeR G/zlyKPMO2YzZeG6ZVshh/2a1uH08jNIjx6zQ+lwsQ7Jz9HVeXZFtDPf3GzJZc8NLY47 +P5GaJ57qqsRKIbrGwCnT+nQa1qhjvLW4FYw5GEu+4Kq1oEJo5t2wAeVWQQ1/0udE9gk jrLA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lu7si1515087ejb.27.2021.03.18.05.16.20; Thu, 18 Mar 2021 05:16:43 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229943AbhCRMPV (ORCPT + 99 others); Thu, 18 Mar 2021 08:15:21 -0400 Received: from mx2.suse.de ([195.135.220.15]:55674 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229745AbhCRMPA (ORCPT ); Thu, 18 Mar 2021 08:15:00 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 9BFB6AD8A; Thu, 18 Mar 2021 12:14:59 +0000 (UTC) Received: from localhost (brahms [local]) by brahms (OpenSMTPD) with ESMTPA id c1198254; Thu, 18 Mar 2021 12:16:15 +0000 (UTC) Date: Thu, 18 Mar 2021 12:16:14 +0000 From: Luis Henriques To: Matthew Wilcox Cc: "Kirill A. Shutemov" , Miklos Szeredi , Vlastimil Babka , Andrew Morton , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm Subject: Re: fuse: kernel BUG at mm/truncate.c:763! Message-ID: References: <20210312131123.GZ3479805@casper.infradead.org> <20210315110659.GT2577561@casper.infradead.org> <20210318110302.nxddmrhmgmlw4adq@black.fi.intel.com> <20210318115543.GM3420@casper.infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20210318115543.GM3420@casper.infradead.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 18, 2021 at 11:55:43AM +0000, Matthew Wilcox wrote: > On Thu, Mar 18, 2021 at 11:29:28AM +0000, Luis Henriques wrote: > > On Thu, Mar 18, 2021 at 02:03:02PM +0300, Kirill A. Shutemov wrote: > > > On Thu, Mar 18, 2021 at 11:59:59AM +0100, Miklos Szeredi wrote: > > > > > [16247.536348] page:00000000dfe36ab1 refcount:673 mapcount:0 mapping:00000000f982a7f8 index:0x1400 pfn:0x4c65e00 > > > > > [16247.536359] head:00000000dfe36ab1 order:9 compound_mapcount:0 compound_pincount:0 > > > > > > > > This is a compound page alright. Have no idea how it got into fuse's > > > > pagecache. > > > > > > > > > Luis, do you have CONFIG_READ_ONLY_THP_FOR_FS enabled? > > > > Yes, it looks like Tumbleweed kernels have that config option enabled by > > default. And it this feature was introduced in 5.4 (the bug doesn't seem > > to be reproducible in 5.3). > > Can you try adding this patch? > > https://git.infradead.org/users/willy/pagecache.git/commitdiff/369a4fcd78369b7a026bdef465af9669bde98ef4 Yep, sure. Unfortunately, the testing round-trip can be a bit high. I'll push a new kernel build and ask the reporter to give it a try. [ I'll add this patch on top of the s/BUG_ON/VM_BUG_ON_PAGE change. ] Cheers, -- Lu?s