Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp1636403lql; Wed, 13 Mar 2024 04:11:01 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUagoz1esItEgXNxybKDhPW0cgBp+PT2sIpDIWO/whaKuexARgO8hLs8Gh6t2SZPx9sQqrUGlhBMLor762vtvW8GAY65VgCeFhcuDb01Q== X-Google-Smtp-Source: AGHT+IFvJnmRLXVo2cH4zQir3fGLKcOu82TJfxyCqOkii0kN25z6OnL4DmZHwN7BPO1UMI8Cxc95 X-Received: by 2002:a05:6a20:e607:b0:1a1:56aa:1c62 with SMTP id my7-20020a056a20e60700b001a156aa1c62mr2705094pzb.49.1710328261201; Wed, 13 Mar 2024 04:11:01 -0700 (PDT) Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id kx18-20020a17090b229200b0029baccec91esi1205433pjb.133.2024.03.13.04.11.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Mar 2024 04:11:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-101412-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; dkim=neutral (body hash did not verify) header.i=@redhat.com header.s=mimecast20190719 header.b=aqwPM5Ed; arc=fail (body hash mismatch); spf=pass (google.com: domain of linux-kernel+bounces-101412-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-101412-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com 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 847A8285292 for ; Wed, 13 Mar 2024 11:10:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 39AE545026; Wed, 13 Mar 2024 11:08:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="aqwPM5Ed" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (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 D316C42078 for ; Wed, 13 Mar 2024 11:08:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710328131; cv=none; b=RNW8BJ84naPr990gd5H6PO4lsLi+N6D4e1wZAgssSnexuTm1PW2OBjh6K3N1lgTo9IXUXgcKRSIEzBXXP9R3F03fKXW31C7ldOzOrqCZkJB2ps8BOg9+joyRJVFZRua9O4JHsVK49E6dXfv0te+qEr/z5UHLKc6wamOWJocZeXE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710328131; c=relaxed/simple; bh=luniAF9OyE9AxjoQ87oukSfN2nAfisuW4QkMcg5MzAo=; h=From:To:cc:Subject:MIME-Version:Content-Type:Date:Message-ID; b=fzQTyO+bGjuKqXXJJx+AdWac16ahGhEec4aSoCJYS+sa34MuIw1j4R0WgNkTicpPwLttVCujvNZKKZY1kIlLngelsgeir1BZYLJVLCP4vSkJbSUjR3KjQSsLmLkJVi1haQNx7K5x7/rjN9ELRxJ/uZL4gDj7cekz0Bh9W5Jslvk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=aqwPM5Ed; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1710328128; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=QTP9uAHVPvXi9wcTkRv8pSjlNhXJ/YsIlYMbNyFLnuo=; b=aqwPM5EdJHj5NBqurSJBWazBJosJNG3OBBLQqFLiz+cadqb0HxfcgH/1C5qCTa5l9alXtn /lvRx6nkLRRms5npr/uUnDQVsOLHm4+jRW5DyCk5tn6s2TBmS2FZ6LnW7IRViHV0ZlR+QY 4m24C0NXdrHMBZigIHRFzQ7u03thL3o= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-388-6Zq0fiNLPpuMq8oycQT-rA-1; Wed, 13 Mar 2024 07:08:43 -0400 X-MC-Unique: 6Zq0fiNLPpuMq8oycQT-rA-1 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 2579487280B; Wed, 13 Mar 2024 11:08:43 +0000 (UTC) Received: from warthog.procyon.org.uk (unknown [10.42.28.10]) by smtp.corp.redhat.com (Postfix) with ESMTP id 2D2DB492BC7; Wed, 13 Mar 2024 11:08:42 +0000 (UTC) Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells To: Marc Dionne , Markus Suvanto cc: dhowells@redhat.com, Jeffrey Altman , Christian Brauner , linux-afs@lists.infradead.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] afs: Revert "afs: Hide silly-rename files from userspace" 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-ID: <3085694.1710328121.1@warthog.procyon.org.uk> Content-Transfer-Encoding: quoted-printable Date: Wed, 13 Mar 2024 11:08:41 +0000 Message-ID: <3085695.1710328121@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.9 = This reverts commit 57e9d49c54528c49b8bffe6d99d782ea051ea534. This undoes the hiding of .__afsXXXX silly-rename files. The problem with hiding them is that rm can't then manually delete them. This also reverts commit 5f7a07646655fb4108da527565dcdc80124b14c4 ("afs: F= ix endless loop in directory parsing") as that's a bugfix for the above. Fixes: 57e9d49c5452 ("afs: Hide silly-rename files from userspace") Reported-by: Markus Suvanto Link: https://lists.infradead.org/pipermail/linux-afs/2024-February/008102= html Signed-off-by: David Howells cc: Marc Dionne cc: linux-afs@lists.infradead.org --- fs/afs/dir.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/fs/afs/dir.c b/fs/afs/dir.c index 8a67fc427e74..67afe68972d5 100644 --- a/fs/afs/dir.c +++ b/fs/afs/dir.c @@ -474,16 +474,6 @@ static int afs_dir_iterate_block(struct afs_vnode *dv= node, continue; } = - /* Don't expose silly rename entries to userspace. */ - if (nlen > 6 && - dire->u.name[0] =3D=3D '.' && - ctx->actor !=3D afs_lookup_filldir && - ctx->actor !=3D afs_lookup_one_filldir && - memcmp(dire->u.name, ".__afs", 6) =3D=3D 0) { - ctx->pos =3D blkoff + next * sizeof(union afs_xdr_dirent); - continue; - } - /* found the next entry */ if (!dir_emit(ctx, dire->u.name, nlen, ntohl(dire->u.vnode),