Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp3071654rdb; Fri, 22 Sep 2023 18:11:33 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGisAMByh/LqHoTuaqBXvXv0J36+SvGnvGZXCm+nrx+D5VIwi7T7RvxSWOUdRfrx3Ab4HW8 X-Received: by 2002:a17:903:41c3:b0:1c5:70d3:f193 with SMTP id u3-20020a17090341c300b001c570d3f193mr1147503ple.10.1695431492795; Fri, 22 Sep 2023 18:11:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695431492; cv=none; d=google.com; s=arc-20160816; b=Puhi01lawCvzyRALIOYlWupAoyf3hbfS9SnoM0X9QYTzTZB+95U7jF/Rip+CHQi7zf VDZ7eK1MhdbImQ2po/ebfepkWpzj3Y2Hs7/lKz9C2ZUGnRW+8GUyBnPf/0dSzWAXkOGg oEPpBm85kjZSA/8cJiLn9UthVmieIUujrirZHNVyA9aGxaoyJ5Mx6+rkTa1EiFKizF5r X/Li2YbNtUdU8u7Nu0ps2p7SPNytRhMZB7in/EQlEExzohhu9wvx4HHt5WIjeNGIu8ZS p2iCxUNmggQdA06Ip3qdr6YyZUGenqwAmUGhpBCGFM1ytbvAOFQL6pWBWgLkLTyEJEZO Vx0Q== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :dkim-signature; bh=kRdT+n7Ceqf/U3w6tSMxaHw4NSmYryluxKCWa6dHsy8=; fh=t6rDXf0LDyPIscd++CUVRDRR7dC9yZG8AkzRK/RHbak=; b=cgWw7cQhmdaNrxdse9dfmrUrnu4RITWbmyQxcgi7Tl6NAZM7UIhWBC0NPTRigQ1BV3 CHvsPDQX6RBGIeD8+kaEDJCjKjIi+JcgAL7eYdPdiop2WFRk98jacNyeIDlG/Zikbjiz fGM1+6sQxPP74v1nxkpXoe2k6Bz2fNbK2DakFaFaIPn3w//UvFXxoksffFNZM42ZOkT7 +AGINyngSMuD9hrcxI+rrP1ce9CfGBhZvvIrb+lRJYmAUVbrN5/904AG8mEuy2QTKalc Lu1KYfQTS4TrRBUxdIH726ao2Y+EwCyRO5IBacyB/EjP9EzzYcjjzjqWuInHnfgd6tCi UCzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=HRHLiHLR; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=zjYeXKaf; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id w3-20020a170902e88300b001bdf69e297bsi5269777plg.588.2023.09.22.18.11.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Sep 2023 18:11:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=HRHLiHLR; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=zjYeXKaf; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id AEB6283475D2; Fri, 22 Sep 2023 02:55:06 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232655AbjIVJyx (ORCPT + 99 others); Fri, 22 Sep 2023 05:54:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50374 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232890AbjIVJyo (ORCPT ); Fri, 22 Sep 2023 05:54:44 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A1256F7 for ; Fri, 22 Sep 2023 02:54:38 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 59AD11F45B; Fri, 22 Sep 2023 09:54:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1695376477; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=kRdT+n7Ceqf/U3w6tSMxaHw4NSmYryluxKCWa6dHsy8=; b=HRHLiHLRTk7atI6bdMfYadCyVxHD5dEzxS71B3xAn+Fk+dnNhc6ru8VLWdNvBA5nTUvLjJ 8DUgAVp7dSYQyCTxlePEkqHDtEagh1/XPcdiqx5xdXhZYeRCfCOcNOxx8zgoNDVhoxHWr9 IPZL/bpqxw8d1hoJhi54rOz0KLFAtRM= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1695376477; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=kRdT+n7Ceqf/U3w6tSMxaHw4NSmYryluxKCWa6dHsy8=; b=zjYeXKafW+ZDLrqoBN1q1FJu56wwlcqfVOZPAaibZLoUz8CU/Xo57PEcG0aAIjIL1KOJNF 7fXp/oPaURp0WXAA== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 4A5B913478; Fri, 22 Sep 2023 09:54:37 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 5rkjEl1kDWU0agAAMHmgww (envelope-from ); Fri, 22 Sep 2023 09:54:37 +0000 Received: by quack3.suse.cz (Postfix, from userid 1000) id CF01EA06B0; Fri, 22 Sep 2023 11:54:36 +0200 (CEST) Date: Fri, 22 Sep 2023 11:54:36 +0200 From: Jan Kara To: Mathieu Othacehe Cc: Marcus Hoffmann , tytso@mit.edu, famzah@icdsoft.com, gregkh@linuxfoundation.org, jack@suse.cz, linux-ext4@vger.kernel.org Subject: Re: kernel BUG at fs/ext4/inode.c:1914 - page_buffers() Message-ID: <20230922095436.r2rkry6nj7m5lvm6@quack3> References: <20230315185711.GB3024297@mit.edu> <578c0eb1-5271-b5fe-afa2-e2c1107b8968@othermo.de> <87r0mt41yv.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87r0mt41yv.fsf@gnu.org> X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Fri, 22 Sep 2023 02:55:06 -0700 (PDT) Hello, On Wed 20-09-23 11:40:24, Mathieu Othacehe wrote: > I also encountered that specific issue while migrating from 4.14 to 5.15 > with data=journal. The proposed patch fixes the issue for me. The 6.1 > branch seems to be affected as well. Would it be an option to have that > patch applied to stable branches? Well, Greg is rather reluctant to merge into stable tree patches that were not included upstream. But with a good reason he could do that. I guess the easiest is to try - take the backported fix and officially submit it to stable@vger.kernel.org with the explanation why you are submitting non-upstream patch - in particular that upstream solution is some 14 patch series. Alternative solution is to backport and test the upstream solution: bd159398a2d2 ("jdb2: Don't refuse invalidation of already invalidated buffers") d84c9ebdac1e ("ext4: Mark pages with journalled data dirty") 265e72efa99f ("ext4: Keep pages with journalled data dirty") 5e1bdea6391d ("ext4: Clear dirty bit from pages without data to write") 1f1a55f0bf06 ("ext4: Commit transaction before writing back pages in data=journal mode") e360c6ed7274 ("ext4: Drop special handling of journalled data from ext4_sync_file()") c000dfec7e88 ("ext4: Drop special handling of journalled data from extent shifting operations") 783ae448b7a2 ("ext4: Fix special handling of journalled data from extent zeroing") 56c2a0e3d90d ("ext4: Drop special handling of journalled data from ext4_evict_inode()") 7c375870fdc5 ("ext4: Drop special handling of journalled data from ext4_quota_on()") 951cafa6b80e ("ext4: Simplify handling of journalled data in ext4_bmap()") ab382539adcb ("ext4: Update comment in mpage_prepare_extent_to_map()") d0ab8368c175 ("Revert "ext4: Fix warnings when freezing filesystem with journaled data"") 1077b2d53ef5 ("ext4: fix fsync for non-directories") Honza -- Jan Kara SUSE Labs, CR