Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp2523363pxy; Mon, 3 May 2021 01:54:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzpFoZIRWF2WbntdKL2E3eqIZm5oBNMZ5xEAV58Rf3UlMOibNd9PnJmaFaYSKQlwpngplv/ X-Received: by 2002:a17:906:868b:: with SMTP id g11mr15617244ejx.15.1620032068673; Mon, 03 May 2021 01:54:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620032068; cv=none; d=google.com; s=arc-20160816; b=xzZpvML4CghsgTX7UN/TlvqHtRq5asQ+uiSDtAs66l1lgGUUqjf6T/2fC+URS3XDi4 clvuHhvIiDjP9T29FCqw8ITJzgyz4eGzcznZY8upHIpZ3u/LfTyyonSJDNmcS5q/4Jdz ObYeWQu8xJxCtN+c9pb3sJj0zcyzKEpCbwRpIBsix5KfWH9oXCjjQIcBrLNdivUQAe69 ARi6r4lKOrfF9iOUWEd+Dw1Ay1n0/2F9rMOVzqhQLIj/1KOeIyrouVl0tS/BOJWNMmes XECvK9PIDaM53WYtpCRePMXJigkO5+u5fzikILbCipKCXAm3yjTVmCmC88VOZRrtoypD ILYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:in-reply-to:date:references :message-id:subject:cc:to:from; bh=c8kmJzkV+quXgnzA4I1IPPf6yubmmdvKtAX/1um2ZLQ=; b=h7rfQ7vlqrYFVhTQlpc+Ld80nk/pldxGuLuK6tQMdS5UHnWL7BTp5x4YFHCQJzzZBr DcoIJjHYmeR8ELI2YGuGLno1Tl0Wi24hLrUARlXlWfhpEydAOQsEwSIAfubbGzyNamIz ykkT/UdNb99OdxfPowCQm74I0ISoY+McCvLPd3HQiLB1jcuMEWej3f14lK+L8iIe2EWz 5kFB2sEqFfPKnmh1TJAC22Nl+tvijw+f3Z/va8qcMozgFWt2QPu46NtA94clWVO3ews/ CmJA8KVxEp9WI/PsQmC18N/ytDSM+VvIx/xA8C9J5UbB1pu3NVegQyWf1ZONFiCbfZ0u hxqQ== 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 z18si9119085edd.312.2021.05.03.01.54.06; Mon, 03 May 2021 01:54:28 -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 S232997AbhECIvb (ORCPT + 99 others); Mon, 3 May 2021 04:51:31 -0400 Received: from mx2.suse.de ([195.135.220.15]:56996 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230490AbhECIv2 (ORCPT ); Mon, 3 May 2021 04:51:28 -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 DF0D9B008; Mon, 3 May 2021 08:50:34 +0000 (UTC) Received: from localhost (brahms [local]) by brahms (OpenSMTPD) with ESMTPA id 70c33aec; Mon, 3 May 2021 08:52:05 +0000 (UTC) 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: <87bl9std3d.fsf@suse.de> References: <20210312131123.GZ3479805@casper.infradead.org> <20210315110659.GT2577561@casper.infradead.org> <20210318110302.nxddmrhmgmlw4adq@black.fi.intel.com> <20210318115543.GM3420@casper.infradead.org> <20210329120532.GB351017@casper.infradead.org> Date: Mon, 03 May 2021 09:52:05 +0100 In-Reply-To: <20210329120532.GB351017@casper.infradead.org> (Matthew Wilcox's message of "Mon, 29 Mar 2021 13:05:32 +0100") MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Matthew Wilcox writes: > On Mon, Mar 29, 2021 at 10:01:58AM +0100, Luis Henriques wrote: >> On Fri, Mar 19, 2021 at 09:02:33AM +0000, Luis Henriques wrote: >> > 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 >> > >> > Good news, looks like this patch fixes the issue[1]. Thanks a lot >> > everyone. Is this already queued somewhere for 5.12? Also, it would be >> > nice to have it Cc'ed for stable kernels >= 5.4. >> >> Ping. Are you planning to push this for 5.12, or is that queued for the >> 5.13 merged window? Or "none of the above"? :) > > Sorry, dropped the ball on this one. This patch is good for that point > in the patch series, but I'm not sure it works against upstream in all > cases. I need to spend some time evaluating it. Thanks for the reminder. Gentle ping :-) Any chances of getting this into 5.13? (And tagged for stable kernels.) Cheers, -- Luis