Received: by 2002:aa6:c429:0:b029:98:93ff:f56f with SMTP id g9csp4942780lkq; Thu, 10 Dec 2020 12:42:14 -0800 (PST) X-Google-Smtp-Source: ABdhPJxSaXFD7rXUoJFPti8gr/R+dKG8m4yWN2jJR20veMAlnfJyCdSllS5UbPdjl/vLJt+mOAjd X-Received: by 2002:a17:906:1282:: with SMTP id k2mr7832711ejb.554.1607632934148; Thu, 10 Dec 2020 12:42:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607632934; cv=none; d=google.com; s=arc-20160816; b=YYwuRBo/n+q+VIh9Lp3/1BlSsaXowrUPKaC2g2WnpAK9GqwugF8oiATSYKgowl0Jqp M+g5pSQ3oWl/VRNxnkgFSwNJvdNTTw1gC7D9VZsALQVeAVm59+n8UKJ9laCphXe+6vJM Lzx4t0y4HqPNrvR51K2MuXlZRFeSX3cc/pfIHl6o7j+/Lcq4DcWHPllL3s5S+s4tWLLd WHQXpgDp4r9JLIWt/bpbOpdK/Qpb/zUUtyfMTkI0nIbsYO8wjhoL/wVcWaPDR1p7ckRo C+YWzkV7qAaGgFGoF+LQe2IxG7Ec1j7F3qWBzfDXGI1Z9CjfmisRxdSUdXiQCa/lgycU Pl0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:in-reply-to :date:references:organization:subject:cc:to:from; bh=v86G51t5EEgovLZ78g03GKvNP8/nhaR7RcZ8/LPlHoA=; b=qLwh8LH46qIUNEvoylsk9fgC6lO9D6RcK2UynUbmuCfKt6jpij7kOffQfluvUG6Ss3 4TrXLXr+FrOPJhljF/OL3aGuqy2lYp+9cphm8ZrSls+9GZk76EjMRQh+MbGLN/Ry6hAd SIFF2VGLV7VVNcn+tdioQU036faQaj+QvyxrsudrcAT6UOksIrIpaSFKOxQKclKszEvN ejSM+8wAG+Y8lhp7bpdOkVvv1x4wOPxm2IB5tG9d2TVlFtUvAgWsu2piIPWcV9Y5Uv14 8j0426TZsHsPdWS/8xj7QICAqNOgHgIay4hvcKIPwIjhTWLI7tA5J4LFrcB4YxwhXO3l JhXA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q12si3220964edb.395.2020.12.10.12.41.50; Thu, 10 Dec 2020 12:42:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404570AbgLJUjQ (ORCPT + 99 others); Thu, 10 Dec 2020 15:39:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33624 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404526AbgLJUjG (ORCPT ); Thu, 10 Dec 2020 15:39:06 -0500 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e3e3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8EB54C0613D6 for ; Thu, 10 Dec 2020 12:38:26 -0800 (PST) Received: from localhost (unknown [IPv6:2804:14c:132:242d::1000]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: krisman) by bhuna.collabora.co.uk (Postfix) with ESMTPSA id A4C361F45C51; Thu, 10 Dec 2020 20:38:23 +0000 (GMT) From: Gabriel Krisman Bertazi To: Arnaud Ferraris Cc: linux-ext4@vger.kernel.org, drosen@google.com, ebiggers@kernel.org, tytso@mit.edu Subject: Re: [PATCH RESEND v2 05/12] e2fsck: add new problem for casefolded name check Organization: Collabora References: <20201210150353.91843-1-arnaud.ferraris@collabora.com> <20201210150353.91843-6-arnaud.ferraris@collabora.com> Date: Thu, 10 Dec 2020 17:38:18 -0300 In-Reply-To: <20201210150353.91843-6-arnaud.ferraris@collabora.com> (Arnaud Ferraris's message of "Thu, 10 Dec 2020 16:03:46 +0100") Message-ID: <87eejx2y85.fsf@collabora.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org Arnaud Ferraris writes: > --- > Changes in v2: > - added in this version > > e2fsck/problem.c | 5 +++++ > e2fsck/problem.h | 3 +++ > 2 files changed, 8 insertions(+) > > diff --git a/e2fsck/problem.c b/e2fsck/problem.c > index e79c853b..2b596303 100644 > --- a/e2fsck/problem.c > +++ b/e2fsck/problem.c > @@ -1805,6 +1805,11 @@ static struct e2fsck_problem problem_table[] = { > N_("Encrypted @E references @i %Di, which has a different encryption policy.\n"), > PROMPT_CLEAR, 0, 0, 0, 0 }, > > + /* Casefolded directory entry has illegal characters in its name */ > + { PR_2_BAD_CASEFOLDED_NAME, > + N_("@E has illegal UTF-8 characters in its name.\n"), > + PROMPT_FIX, 0, 0, 0, 0 }, > + > /* Pass 3 errors */ > > /* Pass 3: Checking directory connectivity */ > diff --git a/e2fsck/problem.h b/e2fsck/problem.h > index 4185e517..a8806fd4 100644 > --- a/e2fsck/problem.h > +++ b/e2fsck/problem.h > @@ -1028,6 +1028,9 @@ struct problem_context { > /* Encrypted directory contains file with different encryption policy */ > #define PR_2_INCONSISTENT_ENCRYPTION_POLICY 0x020052 > > +/* Casefolded directory entry has illegal characters in its name */ > +#define PR_2_BAD_CASEFOLDED_NAME 0x0200053 Also, PR_2_BAD_ENCODED_NAME makes more sense than CASEFOLDED. The name is encoded in utf-8 but not casefolded on-disk. > + > /* > * Pass 3 errors > */ -- Gabriel Krisman Bertazi