Received: by 2002:a05:7208:3188:b0:7e:5202:c8b4 with SMTP id r8csp810699rbd; Fri, 23 Feb 2024 04:30:25 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVUzaqHVg9qsLufLsaKdUNL3nRyrjD0fK9d+iDoiwL28O2qt+6RBShx2r81jRuNKig43mk4SvDgNYkJbw39u6Z64YofuAswJSksrYVssw== X-Google-Smtp-Source: AGHT+IF4eJ/36xRS+qMloMAjBK5sVQ1ypLp76Ij2R6UanwyYawwGgdXcLS6EutdKut0QgBEdsQoa X-Received: by 2002:a05:6870:ac92:b0:21e:df1d:6a23 with SMTP id ns18-20020a056870ac9200b0021edf1d6a23mr1842362oab.40.1708691424818; Fri, 23 Feb 2024 04:30:24 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708691424; cv=pass; d=google.com; s=arc-20160816; b=BmeZ+FQKaSIK5M82fYl07d+DmVY0kBWv1aXtb6iCWCAL6oug1v/+AHG9TKUVQsooqx KkLehm308aZo7U8QqoURIx2vXeSu9CUXSk8pE4Oqz4n+OUNAewFtMaN7zwVAXh+RaFNf T21e7gHya6dyP+vXUuik3rudkTvsFHo1QDk2IAx/M1eOJaQkCw4CNBl4pdIxrOAsexG6 PKwn0tykFTSZqxsemvcT+Ff9gWd0H5liO63KG5UumIehodYz+c5v0Zeq/eiFi1QLKVqI uD9hp9MwMJjTtrl6mBgmxA4f018aA8JbiY5W7Ipt0w3ATp30NCBzhOy5tRQLc6/DIZcb 9QbQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:message-id:date:references:in-reply-to:subject:cc:to :from; bh=/RldtJvO6Y1THAcT9QVAymzvcZoRduxO+C9ZL0rw8kQ=; fh=8fMNz5XLes1q6KgZpQVNR7IFjb0t+7u9G1PE29ucuLE=; b=uEUAVYeS3XbdgJk3XxkvwheXa6rE6JdZtfk05rX3wG02RIHvIB6IAQVbI5LSx8UOMs QKT1uw8PR7fSOMyOev3aNfetu85y4xFD4l6xQSH+CE/Bn9wp1eGNiKnr4iTNFyXIMOck Uvn5jxgsXAoSotGCY359DdMhzkdbmHHyDvz1NRMDm0hjFn4omZXu31lIijOfsDDci41I 0RIuTlrzG5VGICejWEu/bcj5qtaYnrodocWnAl3d3VGNRmpPOZ9Ji/7+Tevl9QCBSKvy +5O49ZzH7fpxkx9bzmERJHPYI8NY39+lJ+dGILVBQE2nfIZGtZGoiXMU05XY/eCJ9/zK D7Kg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=parknet.co.jp); spf=pass (google.com: domain of linux-kernel+bounces-78293-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-78293-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id v5-20020a655c45000000b005dc49182879si11904916pgr.409.2024.02.23.04.30.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Feb 2024 04:30:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-78293-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=parknet.co.jp); spf=pass (google.com: domain of linux-kernel+bounces-78293-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-78293-linux.lists.archive=gmail.com@vger.kernel.org" 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 66A4D2815BC for ; Fri, 23 Feb 2024 12:30:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AA4E67D3E3; Fri, 23 Feb 2024 12:29:42 +0000 (UTC) Received: from mail.parknet.co.jp (mail.parknet.co.jp [210.171.160.6]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 440407C6D4; Fri, 23 Feb 2024 12:29:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=210.171.160.6 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708691382; cv=none; b=F2Wc3PVEzHaI3Ke487I0/UpHrpdoJxTwsJOowfkxF2qCsqrD6asVEk/3lcqnDNCzeTKsn+WWZhMj56tPYy6lJLUZOpriw7YrSY0Sdb4wcbQpcyIBmIk73NMOx6wRqIMItbPFQ+frVXJjhSiw39zdb3wn5r0EpHPSJLFwVBymsr0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708691382; c=relaxed/simple; bh=iyxOs3Eo4svT/sfgTsn046sBzxstqQpSb2db9fzbEGU=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=Veo/8QdM3xc/7qvB0lPcfLvfzY3zrd16LHvJY9a7mhUB6XOXnfO6PUy+8L9J70rpMP1lDFE5zoernxmJmcAEIppZ+8lzbmJm5+cON3qzZ02l42ITostgLu+Eopn+qbYhqT0ux9edolR1wgkj8qo9XVMnmBnKDlaf/ESnGTVzZik= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=mail.parknet.co.jp; spf=pass smtp.mailfrom=parknet.co.jp; arc=none smtp.client-ip=210.171.160.6 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=mail.parknet.co.jp Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=parknet.co.jp Received: from ibmpc.myhome.or.jp (server.parknet.ne.jp [210.171.168.39]) by mail.parknet.co.jp (Postfix) with ESMTPSA id CE8FF233CCB7; Fri, 23 Feb 2024 21:29:37 +0900 (JST) Received: from devron.myhome.or.jp (foobar@devron.myhome.or.jp [192.168.0.3]) by ibmpc.myhome.or.jp (8.18.1/8.18.1/Debian-1) with ESMTPS id 41NCTaYb217639 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Fri, 23 Feb 2024 21:29:37 +0900 Received: from devron.myhome.or.jp (foobar@localhost [127.0.0.1]) by devron.myhome.or.jp (8.18.1/8.18.1/Debian-1) with ESMTPS id 41NCTau81066976 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Fri, 23 Feb 2024 21:29:36 +0900 Received: (from hirofumi@localhost) by devron.myhome.or.jp (8.18.1/8.18.1/Submit) id 41NCTZmW1066975; Fri, 23 Feb 2024 21:29:35 +0900 From: OGAWA Hirofumi To: Thadeu Lima de Souza Cascardo Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, Gwendal Grignou , dlunev@chromium.org Subject: Re: [PATCH] fat: ignore .. subdir and always add a link to dirs In-Reply-To: (Thadeu Lima de Souza Cascardo's message of "Fri, 23 Feb 2024 06:58:56 -0300") References: <20240222203013.2649457-1-cascardo@igalia.com> <87bk88oskz.fsf@mail.parknet.co.jp> <874jdzpov7.fsf@mail.parknet.co.jp> <87zfvroa1c.fsf@mail.parknet.co.jp> Date: Fri, 23 Feb 2024 21:29:35 +0900 Message-ID: <87v86fnz2o.fsf@mail.parknet.co.jp> User-Agent: Gnus/5.13 (Gnus v5.13) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain Thadeu Lima de Souza Cascardo writes: > So far, I have only seen expected correct behavior here: mkdir/rmdir inside the > "bogus" directory works. rmdir of the "bogus" directory works. > > The only idiosyncrasies I can think of is that if neither "." or ".." are > present, the directory will have a link of 1, instead of 2. And when listing > the directory, those entries will not show up. > > Do you expect any of these to be corrected? It will require a more convoluted > change. > > Right now, I think accepting the idiosyncratic behavior for the bogus > filesystems is fine, as long as the correct filesystems continue to behave as > before. Which seems to be the case here as far as my testing has shown. There are many corrupted images, and attacks. Allowing too wide is danger for fs. BTW, this image works and pass fsck on windows? When I quickly tested ev3fs.zip (https://github.com/microsoft/pxt-ev3/issues/980) on windows on qemu, it didn't seem recognized as FAT. I can wrongly tested though. Thanks. -- OGAWA Hirofumi