Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp1208291rdh; Fri, 24 Nov 2023 07:23:05 -0800 (PST) X-Google-Smtp-Source: AGHT+IEwEwURJgWaJ1YZviBI2bPD7Ch+YIDbgqPUI0dhJiBIFJLYWnQ1X9ihk+mqck44Uni6FckM X-Received: by 2002:a17:906:2da:b0:a01:9e72:9579 with SMTP id 26-20020a17090602da00b00a019e729579mr2496755ejk.60.1700839385423; Fri, 24 Nov 2023 07:23:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700839385; cv=none; d=google.com; s=arc-20160816; b=GdaRZcs7w0TQOy8E16UPcO4ar4L3uOeWWEuPPecNO9AoUbeCjRQFjEIspnOI7QTKa0 zJb4xjW/jrmQvYbr8fgtwBVU59gUyWSAC4vZRYAuSTr4awwsB2E/DmqPdynFZfPYygY/ pNsCwRRo8YiQKwHNg/vDerDC0BR092Hn7kdGWIwOY9eZ62I4DEEEP8hnynaDcR2J/Lhk 6mziQuq2jD7NycTEAEsUxFDYTpLLcFOdl33IavtbXJrzHQblIcYaFafM6jdVPyO/cam7 nX8orxmq65mbC4x3KOhrwOarqrE6xOn3Iw37rEiDyqcnfO2QzytU5ytha59HfCwaBrAo CqHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:date:references:in-reply-to:subject:cc:to:from :dkim-signature:message-id; bh=nFFFOKyC6p1FOoorSMK24kJ5FMkPhQFR5RZw96Asog4=; fh=O/LNPyYAI3dpw90VhjAov3sDcGM0Ha2uY+GaRAKPH18=; b=U/IdzlCGSWzjTcmIpAeRO2W2USrFHWq1x75dLe51oL/LPPmT/cp0U6slbIiDew+xbc 5JRPhon4JkIDNir648Sr8TsePQSw9yvSOxv37J1p0SCakHx7ra/vJPXhXnAQ0Hm56n/t KAsqWkHQOq+UGBvHh1twHmrTdT/LY9PELJcv+eo24Nc7L1ENUVkh8O8VPqIxI3D27CGR O5mtPqeZ7ooonMRgvJbLionoAOGnZBQ7e1HsvuQvE9KcYXWjzTDeNd97u3I1l4WM+Dqd 5eJry44Ll1RDcq5XvFbpqvTkAgiulmthpb3UWpYN7PjbB978umEbjkbrvNdGe3rq5jFt L13Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@krisman.be header.s=gm1 header.b=h0ksV85m; spf=pass (google.com: domain of linux-ext4+bounces-141-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-ext4+bounces-141-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id ox10-20020a170907100a00b009e4765d0107si2015234ejb.214.2023.11.24.07.23.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Nov 2023 07:23:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-ext4+bounces-141-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@krisman.be header.s=gm1 header.b=h0ksV85m; spf=pass (google.com: domain of linux-ext4+bounces-141-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-ext4+bounces-141-linux.lists.archive=gmail.com@vger.kernel.org" Message-ID: <6560bfd9.170a0220.2d5ed.1379SMTPIN_ADDED_BROKEN@mx.google.com> X-Google-Original-Message-ID: <87leangoqe.fsf@> Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 22BCB1F20F3D for ; Fri, 24 Nov 2023 15:23:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B6F732E859; Fri, 24 Nov 2023 15:22:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=krisman.be header.i=@krisman.be header.b="h0ksV85m" X-Original-To: linux-ext4@vger.kernel.org Received: from relay8-d.mail.gandi.net (relay8-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::228]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8874CC1; Fri, 24 Nov 2023 07:22:53 -0800 (PST) Received: by mail.gandi.net (Postfix) with ESMTPSA id CE7E01BF20A; Fri, 24 Nov 2023 15:22:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=krisman.be; s=gm1; t=1700839372; h=from:from:reply-to:subject:subject: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=nFFFOKyC6p1FOoorSMK24kJ5FMkPhQFR5RZw96Asog4=; b=h0ksV85mHyER9weo51zXH0+I93eoVv8zic3Pep0xMnyIbVAGPMf8AlKmlRLpNMJzFlrcrF RK0X2S9Oz2IAHSAQCVXQ9hdbbZCYgc9SYGyi7hLfEI8vXnWzjKzIfH1TjNvxCLuXogY37N KwsOh/9JwZqXgCZyxj1OMJMvZKF26j9D/Hj0noHzPFe1ytsYN9uLegU6C5eyEQIgjoMwEq tPBGRtY3VNzX2iz2xKh9bN26J8RiSsv491w/JQGDrqq21jf/9t1eRNOnN/wZAWT2odpy33 6DvZwXZehQsTnLH6w8fWvtm0VMdJQtwecNRgazkr0EH2pZMYGADavZ1C6sBIZA== From: Gabriel Krisman Bertazi To: Al Viro Cc: Gabriel Krisman Bertazi , Linus Torvalds , Christian Brauner , tytso@mit.edu, linux-f2fs-devel@lists.sourceforge.net, ebiggers@kernel.org, linux-fsdevel@vger.kernel.org, jaegeuk@kernel.org, linux-ext4@vger.kernel.org Subject: Re: [f2fs-dev] [PATCH v6 0/9] Support negative dentries on case-insensitive ext4 and f2fs In-Reply-To: <20231123215234.GQ38156@ZenIV> (Al Viro's message of "Thu, 23 Nov 2023 21:52:34 +0000") References: <20231025-selektiert-leibarzt-5d0070d85d93@brauner> <655a9634.630a0220.d50d7.5063SMTPIN_ADDED_BROKEN@mx.google.com> <20231120-nihilismus-verehren-f2b932b799e0@brauner> <20231121022734.GC38156@ZenIV> <20231122211901.GJ38156@ZenIV> <20231123171255.GN38156@ZenIV> <20231123182426.GO38156@ZenIV> <20231123215234.GQ38156@ZenIV> Date: Fri, 24 Nov 2023 10:22:49 -0500 User-Agent: Gnus/5.13 (Gnus v5.13) Precedence: bulk X-Mailing-List: linux-ext4@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain X-GND-Sasl: gabriel@krisman.be Al Viro writes: > On Thu, Nov 23, 2023 at 02:06:39PM -0500, Gabriel Krisman Bertazi wrote: > >> > >> > 4. d_move() and d_exchange() would ignore the value returned by __d_move(); >> > __d_unalias() turn >> > __d_move(alias, dentry, false); >> > ret = 0; >> > into >> > ret = __d_move(alias, dentry, Splice); >> > d_splice_alias() turn >> > __d_move(new, dentry, false); >> > write_sequnlock(&rename_lock); >> > into >> > err = __d_move(new, dentry, Splice); >> > write_sequnlock(&rename_lock); >> > if (unlikely(err)) { >> > dput(new); >> > new = ERR_PTR(err); >> > } >> > (actually, dput()-on-error part would be common to all 3 branches >> > in there, so it would probably get pulled out of that if-else if-else). >> > >> > I can cook a patch doing that (and convert the obvious beneficiaries already >> > in the tree to it) and throw it into dcache branch - just need to massage >> > the series in there for repost... >> >> if you can write that, I'll definitely appreciate it. It will surely >> take me much longer to figure it out myself. > > Speaking of other stuff in the series - passing the expected name to > ->d_revalidate() is definitely the right thing to do, for a lot of > other reasons. We do have ->d_name UAF issues in ->d_revalidate() > instances, and that allows to solve them nicely. > > It's self-contained (your 2/9 and 3/9), so I'm going to grab that > into a never-rebased branch, just to be able to base the followups > propagating the use of stable name into instances. ack. I'll base the other changes we discussed on top of your branch. thanks, -- Gabriel Krisman Bertazi