Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 136C7C7618A for ; Mon, 20 Mar 2023 11:08:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230113AbjCTLIE (ORCPT ); Mon, 20 Mar 2023 07:08:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50672 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229733AbjCTLHp (ORCPT ); Mon, 20 Mar 2023 07:07:45 -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 1BDB72D79 for ; Mon, 20 Mar 2023 04:03:33 -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 42FE31F88D; Mon, 20 Mar 2023 11:03:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1679310212; 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=YsBt10+2rRAaCRYVuYDEKaArxZfywvXC09T3RLLhOeI=; b=l2kisvP3DpS2H1JPOOMmzOOUwJWzbYTnuXtZ1n6LaVIESew4gFE53fR0wWynHec3d0fKLe 2yrt47Qk1cpSd/nwjIqxSzk4tD4VUIe9Y6a7A6jhF6ovIbqsYz0+V4vUQ8CBL8dwHjtnaB YVQCsfbgbLett5YSE6rY3hpmN0AT+dk= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1679310212; 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=YsBt10+2rRAaCRYVuYDEKaArxZfywvXC09T3RLLhOeI=; b=cjRhEqVVmRrk+pZEYJ5uSXW6NPhH3OraycRk7O+nQMGWEhGvf2j1yAFGJ+RAWNI8+B+xt4 DYuxHg555hlXXNCA== 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 0427D13416; Mon, 20 Mar 2023 11:03:32 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id opD7AIQ9GGToJwAAMHmgww (envelope-from ); Mon, 20 Mar 2023 11:03:32 +0000 Received: by quack3.suse.cz (Postfix, from userid 1000) id DE33BA0719; Mon, 20 Mar 2023 12:03:29 +0100 (CET) Date: Mon, 20 Mar 2023 12:03:29 +0100 From: Jan Kara To: Theodore Ts'o Cc: Jan Kara , Eric Biggers , Dan Carpenter , linux-ext4@vger.kernel.org Subject: Re: [bug report] ext4: Fix possible corruption when moving a directory Message-ID: <20230320110329.ckxg5mrenwfo5f4c@quack3> References: <5efbe1b9-ad8b-4a4f-b422-24824d2b775c@kili.mountain> <20230308104234.z7vmgmjz2smepwlg@quack3> <20230318020743.GO860405@mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230318020743.GO860405@mit.edu> Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Fri 17-03-23 22:07:43, Theodore Ts'o wrote: > On Wed, Mar 08, 2023 at 11:42:34AM +0100, Jan Kara wrote: > > > That analysis looks correct. FYI, I think this is the same as the syzbot report > > > "[ext4?] WARNING: bad unlock balance in ext4_rename2" > > > (https://lore.kernel.org/linux-ext4/000000000000435c6905f639ae8e@google.com). > > > > Good spotting! This should be fixed (along with the lock ordering problem) > > by 3c92792da8506 ("ext4: Fix deadlock during directory rename") Ted has > > just merged couple hours ago. > > Unfortunately, the Syzkaller report is still triggering after the > merge and commit 3c92792da8506. The double unlock is still there, and > so the following fix is still needed (which I will be sending to Linus). Bah, right. Thanks for fixing this! Honza -- Jan Kara SUSE Labs, CR