Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1425373pxu; Thu, 17 Dec 2020 09:37:16 -0800 (PST) X-Google-Smtp-Source: ABdhPJzkP9dS2xVIA7dFwZJGfgM+7z8+tLskiiZzGnEYMA+HKFSPWSXgmAaWgGpmyD/lZh2BM5nZ X-Received: by 2002:a50:d646:: with SMTP id c6mr423970edj.177.1608226635894; Thu, 17 Dec 2020 09:37:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608226635; cv=none; d=google.com; s=arc-20160816; b=J9oO69Poe9rKHW0l7gw0HtEUepGksCd7DIKXapUrSb5DBt/dAfsx65hE8pTdLuHTFK eHTtNcdHagvLgXPsZeGhPYoesNnUUMfh38ie+LWNLE/CYW1o2bZTWN3htGbSMKuQcEDn CCEcgixEuBmg6b5f8JCjczd3mXDksKksAKfNqNGcEd7qn4r0w4SvpPoGEppW0oLa/Bmi Xf7Y6aFDBp1Vo23uLffHpA1/MNY0BIac/X5inrCGpM7PQNqAkc7yNqVJX/aNyxGvy9p/ 9n7EvBTe4W4rH8W2XlwS698BxUGJccSQLNstKCYcaRbVwALp1TiVuukCaHGf/x7YRdli gKLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=bgaP22CSDY/fyCMF2B6oICSeC3glzKmaWwlU3unn124=; b=Iu5++rEKiuhzSOJRf5pJ2+ka9nUFihcRRNh+AdI7MGMc5G5my4JHxIzhqkXXaRdqCM 2+z8DL+2eqsNj/ZWes++oz7RHApLA5hzOPKC9zxrGzSKZ+nrketMiG4OTY4xWmOMAotn /qDVMCGDwgkF1RrBDWgb2eGWOUf269d56pDJaRjaIJ69ibmE+e0sNjpxiPchzpyQLcQ/ WqTe2Qo8DqkvP9fpGplVWvev+CE1OHD87j4alZRiW6HQ3NSWC+1HtTz5AEH0KPZL6jNF bRhNO4vUvGXwDeDMwlK39Ls+sj96zSMW6u0MP3xr02qS0lOGA5MwSKt0BgOd0G6Tq7y4 2yGw== 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 h16si2904942ejt.260.2020.12.17.09.36.51; Thu, 17 Dec 2020 09:37:15 -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 S1728068AbgLQRgf (ORCPT + 99 others); Thu, 17 Dec 2020 12:36:35 -0500 Received: from bhuna.collabora.co.uk ([46.235.227.227]:54742 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728143AbgLQRgf (ORCPT ); Thu, 17 Dec 2020 12:36:35 -0500 Received: from xps.home (unknown [IPv6:2a01:e35:2fb5:1510:779a:3a80:1322:d34a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: aferraris) by bhuna.collabora.co.uk (Postfix) with ESMTPSA id 3C0D41F45D13; Thu, 17 Dec 2020 17:35:53 +0000 (GMT) From: Arnaud Ferraris To: linux-ext4@vger.kernel.org Cc: drosen@google.com, krisman@collabora.com, ebiggers@kernel.org, tytso@mit.edu, Arnaud Ferraris Subject: [PATCH v3 05/12] e2fsck: Add new problem for encoded name check Date: Thu, 17 Dec 2020 18:35:37 +0100 Message-Id: <20201217173544.52953-6-arnaud.ferraris@collabora.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201217173544.52953-1-arnaud.ferraris@collabora.com> References: <20201217173544.52953-1-arnaud.ferraris@collabora.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org --- Changes in v3: - renamed problem identifier - fixed problem value 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..99522342 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_ENCODED_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..e2fbb597 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 +/* Encoded directory entry has illegal characters in its name */ +#define PR_2_BAD_ENCODED_NAME 0x020053 + /* * Pass 3 errors */ -- 2.29.2