Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp634546pxb; Mon, 7 Feb 2022 21:37:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJzA+mk2+JCVMvkEKoFPqgHknjje/5hb9B11UKEcRsFqsJVQkRsDtEaiQCsvdgLQ2/gpJyUW X-Received: by 2002:a05:6a00:181f:: with SMTP id y31mr2909493pfa.35.1644298646003; Mon, 07 Feb 2022 21:37:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644298645; cv=none; d=google.com; s=arc-20160816; b=czlRKuCG5DIakQGXUfXAmC30NJCQ4R0N7zc2G2QBVFWtN5oXIECrT/27PdRrokdjVG wVctNyrYKq6x59OzkDUGaZECH8eKkJT514rbjp5torQR+cpADpMAPmeGcGSiMnvlED+4 Z4MrP/H402EPrRBGcjtIkMtUClJDeT3OfrzQVbDIcC4q9lBIM0DqsNetVL4PDsnVbgVM PL+i5LvyrOH8SerdE2/AI33ESSMyWLha1NnQCQYdERy3ge2r3mlLXvIHRexgMpawcITT GwBhA0uDwEkNbonuVC7lLsTDR0+h1MbQRTYR+vnfASm/ygQEXj/iV5zQJP4uqRT0kCV+ dZ9g== 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:subject:cc:to:from; bh=U1uabGM8y8U3XyhouFIBxjesoJde6Y+uxQQPEil24e8=; b=qhxa8MadWUel+kmRQeCCl7vIw/NRM+OzIRNK3yKokdxaZFcTVw5lYw5cv6STUqqP4p xsKwdymrh8Ou7PAROcxJqnp3F2RcrMKvvNRzgdv4XpxaoqrdpwlTyxHMWvjuPLKmFTHR UUna0RAs9dChCIz0jzpB2zMjaqaGYKyZdHioumZY/wWQAo2RIM43Tmw7lWGXV7NUREyG F/n6p+Lq1Veid+uG2YmknVrYaSaBH3woGlCZVkm0o1Tq5q+tuAy34FCAo0zVz33s/Uig EBoCCGmCbeqokP3YtuStpA9JSy1RsZGQDE+rgZtlGVpI/eRN7DYvI6xmGjW+qVDeIcRZ YJcA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t1si11688260pgl.490.2022.02.07.21.37.12; Mon, 07 Feb 2022 21:37:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350638AbiBEGVV (ORCPT + 99 others); Sat, 5 Feb 2022 01:21:21 -0500 Received: from mail.parknet.co.jp ([210.171.160.6]:33048 "EHLO mail.parknet.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234888AbiBEGVS (ORCPT ); Sat, 5 Feb 2022 01:21:18 -0500 Received: from ibmpc.myhome.or.jp (server.parknet.ne.jp [210.171.168.39]) by mail.parknet.co.jp (Postfix) with ESMTPSA id 6080C15F939; Sat, 5 Feb 2022 15:21:17 +0900 (JST) Received: from devron.myhome.or.jp (foobar@devron.myhome.or.jp [192.168.0.3]) by ibmpc.myhome.or.jp (8.16.1/8.16.1/Debian-2) with ESMTPS id 2156LFF3086298 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Sat, 5 Feb 2022 15:21:16 +0900 Received: from devron.myhome.or.jp (foobar@localhost [127.0.0.1]) by devron.myhome.or.jp (8.16.1/8.16.1/Debian-2) with ESMTPS id 2156LF5X368767 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Sat, 5 Feb 2022 15:21:15 +0900 Received: (from hirofumi@localhost) by devron.myhome.or.jp (8.16.1/8.16.1/Submit) id 2156LFsS368766; Sat, 5 Feb 2022 15:21:15 +0900 From: OGAWA Hirofumi To: Gwendal Grignou Cc: dlunev@chromium.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] Revert "fat: add simple validation for directory inode" References: <20220204062232.3410036-1-gwendal@chromium.org> Date: Sat, 05 Feb 2022 15:21:15 +0900 In-Reply-To: <20220204062232.3410036-1-gwendal@chromium.org> (Gwendal Grignou's message of "Thu, 3 Feb 2022 22:22:32 -0800") Message-ID: <8735kxx290.fsf@mail.parknet.co.jp> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Gwendal Grignou writes: > This reverts commit a3082d526f2d406d4b488e49a508a0062a23314f. > > The reverted commit adds check for FAT images. However, the tools used > for creating images for the Lego Mindstrom EV3 are not adding '.' and > '..' entry in the 'Projects' directory. > Without this fix, the kernel can not fill the inode structure for > 'Projects' directory. > > See https://github.com/microsoft/pxt-ev3/issues/980 > And https://github.com/microsoft/uf2-linux/issues/6 Looks like the bug of those tools. If you want to add the workaround for those tools, it should not break sane format. I.e. the workaround should at least set the directory link count to work rmdir(2) without warnings, then should test other operations if works well. Thanks. -- OGAWA Hirofumi