Received: by 2002:a05:7208:3188:b0:7e:5202:c8b4 with SMTP id r8csp837475rbd; Fri, 23 Feb 2024 05:16:54 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUrkZ15L4iCSORi3Ox86GvMXWIhJQoGgt/T2GVL2PgG5bIIFHl+HcLXjdvdI0A4JwKma0NB9wfJwjoTVvXEI5232TS1PbpHF3BY5TqNWw== X-Google-Smtp-Source: AGHT+IFv0tzxnISI14VM9VM5LbyOSHqngK0nYX+dbWstU2ZP+adO5IiG7oZg37HRmXOP0rOKdyyn X-Received: by 2002:a05:6808:23d4:b0:3c1:3215:1881 with SMTP id bq20-20020a05680823d400b003c132151881mr2152124oib.7.1708694213768; Fri, 23 Feb 2024 05:16:53 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708694213; cv=pass; d=google.com; s=arc-20160816; b=dit0ejEGLuwBF+llpd/HGsuAo6u1+rcSNu0Y22XYpv2NZruQ7UWQztWKlf3UxcYNvX 0os4iK1f1mdxi5E3VEfkXIRIct9XzdARJNMiopvCunz7/4tDj2rfTMyRNwM6rgPXFTUe uqjSLpeUqPZLVWxT023GmJzeKStrUK4dQpCPDz3fI9/LpmEwlNJBATd7yKEAi5XDfUD3 r2Kw3fnC7RyTugvWWxSO1IyZ0NpcWtoMkDIKEDjFbOIGggn+GKsIHnn4Y2wt7uin8gkR DGjDU6DDPm7k/fxmk+nOr0ZTAI/a5AzwxU8/nGMdMfe1GOhyIsT/igxiVJNpUD1pj+MH PFLA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=fosF7GfKf2usxsyEbl1OhNuYQcSb047/bfaGYF2Hs5I=; fh=nIP8SQRmPmENrERmvbItxwJ1ZXcGbCSzfAoKPtB+zfU=; b=DJRaJGCYMIi0+1MxaL+SoD31ge2Nz3TlSEdLbTRrLkSqN3xyt0hc1/Takvno18B24f HHUuZc6YCprwaWUiUmfnITQALxEWoXGgbld8758+VXTbA4PSTz5O6kFhBZey4mNBKfDN 6Nl901UjALzEttAxXDwjK150qbuGUSGP+Hv/hOEnlCWDOk9fAiJCq2Rdun2/SFqD1oXg cBcXWxHPtJ/gRLqxuvw80HvOl/K8bLCdNE+4kU5SAEa/T7gJU6eQo8RS+1n7DCtusNrh qLm2/Y/0bEDR/dYKVRqwiX5VjIZLIarxZ6QYAa/ZaDmEJqQNrJvuYakGhHAdHBQBnuqk 3qQA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=fail header.i=@igalia.com header.s=20170329 header.b=V7mt5epm; arc=pass (i=1 spf=pass spfdomain=igalia.com dkim=pass dkdomain=igalia.com); spf=pass (google.com: domain of linux-kernel+bounces-78364-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-78364-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id c6-20020a05622a024600b0042e69f78980si281970qtx.772.2024.02.23.05.16.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Feb 2024 05:16:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-78364-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=fail header.i=@igalia.com header.s=20170329 header.b=V7mt5epm; arc=pass (i=1 spf=pass spfdomain=igalia.com dkim=pass dkdomain=igalia.com); spf=pass (google.com: domain of linux-kernel+bounces-78364-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-78364-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 6E7E11C22E46 for ; Fri, 23 Feb 2024 13:16:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C46307F46A; Fri, 23 Feb 2024 13:16:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=igalia.com header.i=@igalia.com header.b="V7mt5epm" Received: from fanzine2.igalia.com (fanzine2.igalia.com [213.97.179.56]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C63EF5C60F; Fri, 23 Feb 2024 13:16:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=213.97.179.56 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708694190; cv=none; b=dmjsdpWO/8hPYBvq6hamHzBkiRsyxbwGjPhQIk97U/R70M67Dp88OMRdrl9P/nnlirTlL92QWcKO5R0jUuxqYWQC43/UFG/R9gqwOBb0Nyu9lFb3TpGFglXGoVqzwmKs++E+/RVfY5Vloo/cooMOdCvbEMOPIU8EXH+LWblopY4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708694190; c=relaxed/simple; bh=DMl9SaIfNnCiPqZcr2KHiTkWmnMLoueDw9vzCtQ0OcI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=iMVA15pPScr9Q17PZz2ep8VhQmgzwDNp8xSOLwV5q5JaEIl6jkl+0nsXGqg8xeiHpuJvfP0GnxSsLN8lgQn97Bl/MT5/XFnaOeFQtB4e2+/VLXWt0wMY804gpJvyQ7r2p2EKBU+gf4dp0sZYmLIWlps0aWqsKpgoAX94IfXCmTg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=igalia.com; spf=pass smtp.mailfrom=igalia.com; dkim=pass (2048-bit key) header.d=igalia.com header.i=@igalia.com header.b=V7mt5epm; arc=none smtp.client-ip=213.97.179.56 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=igalia.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=igalia.com DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=igalia.com; s=20170329; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=fosF7GfKf2usxsyEbl1OhNuYQcSb047/bfaGYF2Hs5I=; b=V7mt5epm1aNYA7oARhYrU1rRos FL01jcgnFchLQ/9k791iZeOzv+o97fToKMuq0HqSWnMJXd6GeNbgSHwWX09XOPKgTbxvIVEV8OPO4 ej9xe0VjC3wsy7cU7Xb+Ba6r4Cr9uEItiDIt8OGL+SD0vewcmeFV+KxTQ3zNxHG+AwiGtZX3MKPv2 w/5SbY4rf/V37fppF5wdbR1kpPddcQKqR7s99HoOfypWwRoRsG1R3vGI9Rnt4rRwGBCZZTHJpIs57 uHEwT0tG/M+mW71uDNN/FxrkfwmtrqH9TjL0ZkbKvRl9ighwpY8Iizoyxj0vTdMM+n9OQYjJBNZMi lRsiJ3VA==; Received: from 179-125-75-196-dinamico.pombonet.net.br ([179.125.75.196] helo=quatroqueijos.cascardo.eti.br) by fanzine2.igalia.com with esmtpsa (Cipher TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim) id 1rdVPa-002gSY-Nm; Fri, 23 Feb 2024 14:16:23 +0100 Date: Fri, 23 Feb 2024 10:16:17 -0300 From: Thadeu Lima de Souza Cascardo To: OGAWA Hirofumi 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 Message-ID: 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> <87v86fnz2o.fsf@mail.parknet.co.jp> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87v86fnz2o.fsf@mail.parknet.co.jp> On Fri, Feb 23, 2024 at 09:29:35PM +0900, OGAWA Hirofumi wrote: > 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 That image was further corrupted by mounting it on linux, as is mentioned in one of the github issues. Let me see if I can arrange the Windows testing of images I was able to test with. I can later attach them too, as they should compress very well. Cascardo.