From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=18.9.28.11 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794880841; b=23orj0tAlmxJFmWiQPvlu5t9eqx2j/K9lLNlTLo2Xe4KRN4XovxBqQ4gMibMEHaZj8Sb Lg6r2//emwaTWgHDcxnTE4tHuhp3hPxGCiZt9zcNzSpA63TBYHTGUyoERkfupNvTJBYHl 5162ZJJd497A/1yyj3CrCkQFPOzSC5xxwwwcNZ4/KaxzcyJSVcMqQNxUsD1oGgNff+229 m7Dbc7s7Hw4OF86ZA9CrKCE1C/qb9XCC1AAEqmkSPtoNf1ip9x8fsxWE+3hVGGEdFO1qe RoGx2IbK+EKus57s0eSWGPvw9PihsXw5l/C1arKyGmyyzG+Wd3mt4lvn8x7ceFRAjtQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794880841; h=DMARC-Filter:Received:DKIM-Signature:Received:Date:From:To:Cc: Subject:Message-ID:References:MIME-Version:Content-Type: Content-Disposition:In-Reply-To; bh=VkLy1I0kQBdGGFa3JjJKMLWd5KGqUrPpkyuEnh2673M=; b=u2CQ8SJbe2S/4HN52erSqqsTV/dbO7d1pIZDTtllPX/aE8AAY+xBIrofr49vTao+lWMP QTGTBBbEJqAF6V4DraxnjfxlrBNIcx+s1oElv4mXTuvzhIX3Yi0+5Zm6gWSSkhbbjdPad OFgAKEsaBFjU1RrpCPDGcCwSRxgmvJ/Jp9N4h5CKJi5jvnjs+KXUlIJmBPGbOxNByMS4h SQAPxTMD5AAjXlGfrQ2pfe4FAQR60d77UgLQU917girGfW2qhetFUrfoYnChJVlNYnun5 bfDvDHysA0acpAUUH8G22oAksxHL9MYHPMXtl76ykrGF04J3sVXC1Zwf/DclcgtKG6w== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=mit.edu; spf=pass smtp.mailfrom=mit.edu; dkim=pass header.d=mit.edu header.i=@mit.edu header.a=rsa-sha256 header.s=outgoing header.b=WcdmYwdK; arc=none smtp.remote-ip=18.9.28.11 Received: from outgoing.mit.edu (outgoing-auth-1.mit.edu [18.9.28.11]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C3CE4606A330 for ; Tue, 17 Nov 2026 02:00:40 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org C3CE4606A330 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=mit.edu Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mit.edu Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=mit.edu header.i=@mit.edu header.a=rsa-sha256 header.s=outgoing header.b=WcdmYwdK Received: from macsyma.thunk.org (c-73-9-28-129.hsd1.il.comcast.net [73.9.28.129]) (authenticated bits=0) (User authenticated as tytso@ATHENA.MIT.EDU) by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id 6AH206Us030545 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 16 Nov 2026 21:00:08 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mit.edu; s=outgoing; t=1794880810; bh=VkLy1I0kQBdGGFa3JjJKMLWd5KGqUrPpkyuEnh2673M=; h=Date:From:Subject:Message-ID:MIME-Version:Content-Type; b=WcdmYwdK/b8BiflVThD+QvJau9tSH5SE0/LeO3ZvbLeNGt+w+JTi/Sr5h1QYXdwCh vhh9bZBTJSX81ajwsFfm/ZzCNVwpLM7Ygihz39Mp+HA7wL8H08KTMUTikdKbdbw4S6 dzV1+AsWE6sRU7DAAHFtAJMpCI05dgkmvBsM2wbQW3z+VveeYwsd3iNai6Ra12arfc /t5e+iRwK4fGFR8U55PGXmcJ/qCDk9aClAg/19fUSu+QZ8EVn7/0vQ41Uo20BYoI3F xLegQQAOPNKf4IxmHDG7ZoqFdE5Z42UnsoUpXFg7XPHQdS8xTuOhoFKvg31cIwn6ou 6J19UUH4mLIIg== Received: by macsyma.thunk.org (Postfix, from userid 15806) id 8394627BABE9; Mon, 16 Nov 2026 21:00:06 -0500 (EST) Date: Mon, 16 Nov 2026 21:00:06 -0500 From: "Theodore Tso" To: Gabriel Krisman Bertazi Cc: Sarthak Kukreti , Jaegeuk Kim , Chao Yu , Alexander Viro , Christian Brauner , Gabriel Krisman Bertazi , Eric Biggers , Dmitry Torokhov , linux-fsdevel@vger.kernel.org, linux-ext4@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/3] libfs: reject casefolded names that fold to ".", "..", or empty Message-ID: References: <20261113065332.929085-1-sarthakkukreti@google.com> <20261113065332.929085-2-sarthakkukreti@google.com> <878q2swoxp.fsf@cartola> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <878q2swoxp.fsf@cartola> On Mon, Nov 16, 2026 at 02:34:26PM -0500, Gabriel Krisman Bertazi wrote: > Either way, this issue is another example of why treating ignorable code > points as 0-length strings was a bad idea. I'd very much rather > utf8_casefold would treat all ignorable code points as foldable to > themselves, (i.e. commit 5c26d2f1d3f5 ("unicode: Don't special case > ignorable code points")), but that was tried and broke applications > that relied on variant selectors code-points being ignored. Sigh... I really think these characters are *evil*. I wonder if we should simply drop those code points unconditionally when they are fed to the kernel --- not only folding to themselves, but *not* preserving them when a misguided application tries to create a file with one of these misbegotten Unicode charactesr. I'd prefer to simply reject creating them with an EINVAL, but it's likely that will break those stupid applications.... Eventually we can have e2fsck offer to fix directories with those characters, and eventually we can make these characters become a bad memory. The other question is what *other* evil misdesigns are in the unicode spec that we should be preactively trying to addressw hile we're at it? - Ted