Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp5538936rwl; Tue, 11 Apr 2023 06:55:57 -0700 (PDT) X-Google-Smtp-Source: AKy350bbCx68WtZU1PydXsSZu75pZo1Ic3bFeNP6EPBca43HtxASMX7qccVSVeDqnVhcWewIv4l1 X-Received: by 2002:a17:906:1991:b0:94a:9cc1:e4ab with SMTP id g17-20020a170906199100b0094a9cc1e4abmr5563411ejd.27.1681221357027; Tue, 11 Apr 2023 06:55:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681221357; cv=none; d=google.com; s=arc-20160816; b=TlWTLqACfvjHF/GO0Z/MPC8A1i1vWQNHZJk0+ywyYVfrSvciYOOaekUChNzM34KVJc NmQvPtAJRRGHPnYsb4dRRdNJkSqrCBDhh8si6ZCQbcxcGohMCcNV5etvSMEKgNfmczSQ 1dNwRUXXt1s/FJ0Meu6HM5DUtCPARMFhjL1VJRMFFy5HhiJaJO/NkwT7aaMyasSS0/T4 Gg08kamrB6NCMltBlOee1oqPv12Zgcu15LAcY5A6o2F0sXVHsH7STcIXlQ6x/6qFo5We Gas2gvywheykWlbzxGpoutI5nA9jqxNl4oZA7dnzmIaQGnHXpo6CyIOkc6KjF953aFVz LcNw== 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; bh=CmhhboDREQUvpuNwmFVOwVPoWfOw+/7QyclOoMlQ83s=; b=rWomj4r5X+eTksQYao+MOlK7d2jQYX6c4TwZI+flSjIYOcyLZ97+E9udAPHI/42vS1 sJ1h2srWwlxJIrGlOAU+l9DQeHWpMAu29W9aJPlm22pq9ye8sMDUrghbgkgbsGqm7Vp0 7SRVz601y8OMxU6qQAKeHgEnl7M1Bjjmi2q/avCNpj1Qt8xH6r/3rc5tCr+8cgV0MCeW iWBXYCJb+c4B3l7A0nNcZ3QxvEZoFgUOIhxjXFCrpYB4YrIPs8yzWqi9lKjF4KDJt3kn z9j7NZcW86KtuLpyVOOTuXzw7UPS/SIQzakg9aXfVvNN76zJRw3lO93+QzKa9S2z9R0K W1Eg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XkkUNCeb; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w9-20020a170906384900b00947c6b4a29asi2014822ejc.1037.2023.04.11.06.55.24; Tue, 11 Apr 2023 06:55:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XkkUNCeb; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230378AbjDKNwh (ORCPT + 99 others); Tue, 11 Apr 2023 09:52:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43482 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230332AbjDKNwg (ORCPT ); Tue, 11 Apr 2023 09:52:36 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E5074196 for ; Tue, 11 Apr 2023 06:52:35 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 7D93561EEE for ; Tue, 11 Apr 2023 13:52:35 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B662EC433EF; Tue, 11 Apr 2023 13:52:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1681221154; bh=mmJAaSzEcSzoNJzLVMY4GW4zPm2OwVzXH1enm4loLvY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=XkkUNCebmRp0AVdoOuQVeoovJJFg4fUcvz7/hZ6kCGlE3CINNfweyXpg6Y6Q/NnVY g799RR/zIX13PqJEqT/aQXYDXkvWVMkW2xspwYCxtrEIVmga/1mtC2214vdDg5y9yK /UQ5GQZH74DJMyjPpRGPE7Q0QPcyHZGoggT7UxSq0x7VWSa0OY0mcrV8brrT0W1afU VVzmqqMCjMH950kPo9la8vqIvniLQloRJdi32P9+aUdAFye+pPSd7AGcelsJx38H/F E1c9GjAfLVwIWXh1cPsTWn6/QCjcsC2BX8mIL2Vz6JJoCRSKkvQ3Ckuj9Aue/f7C/s euxLnZWRsT7kQ== Date: Tue, 11 Apr 2023 15:52:30 +0200 From: Christian Brauner To: Jan Kara Cc: Ted Tso , linux-ext4@vger.kernel.org, syzbot+aacb82fca60873422114@syzkaller.appspotmail.com Subject: Re: [PATCH] ext4: Fix lockdep warning when enabling MMP Message-ID: <20230411-unbeeindruckt-erleben-96b048352735@brauner> References: <20230411121019.21940-1-jack@suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20230411121019.21940-1-jack@suse.cz> X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Tue, Apr 11, 2023 at 02:10:19PM +0200, Jan Kara wrote: > When we enable MMP in ext4_multi_mount_protect() during mount or > remount, we end up calling sb_start_write() from write_mmp_block(). This > triggers lockdep warning because freeze protection ranks above s_umount > semaphore we are holding during mount / remount. The problem is harmless > because we are guaranteed the filesystem is not frozen during mount / > remount but still let's fix the warning by not grabbing freeze > protection from ext4_multi_mount_protect(). > > Reported-by: syzbot+aacb82fca60873422114@syzkaller.appspotmail.com > Signed-off-by: Jan Kara > --- Looks good to me, Reviewed-by: Christian Brauner