Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2399825lqp; Sun, 24 Mar 2024 17:52:40 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUBmTnzWMXOUL9NbL4uZpiYf604QDrcXC1L82YtMKgoYrkuIPXrBBcCkgETgkeCthtPjxs6SD/yJjstxVA2elgAY4sIit1bpFHNsufFXg== X-Google-Smtp-Source: AGHT+IEFQsppxU+CrFj3803I1zZpayx6cjmctkn2sYsH52c+h6ZuWfgVrqYwrlRSC1u2nJDU40TU X-Received: by 2002:a17:90a:f40c:b0:29c:761e:3955 with SMTP id ch12-20020a17090af40c00b0029c761e3955mr3610488pjb.17.1711327960036; Sun, 24 Mar 2024 17:52:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711327960; cv=pass; d=google.com; s=arc-20160816; b=trxPnK3LMLLqKe8yGdbUcWsUpp6DZDXBCIKfaunv5Mh2VY7aQAinfCOVdaTvikCrNZ s/jCMy/mrsVwsITFqGwpDRpHUQs1LyBE/jgSS7JGwN0z9mLgjejc0a4eC3JrGfbb6EBs 0Bt7HzdD8zICx5dukdRDjny5WdCSwfSgyrlEJJcQnga/FJj45ilI0DuPRf7SuqAPI4bk TYX+XxQvHlD17p62IGGeUb/jm+312Wnth/GewUehBO/4Ofo4G5+QaKEvOk2JOCJXt9Nu rFolJ18YEiVuzaDN0N9KFtx8/X20b5FOHB19oLZVkJS3UftXR1GsA70V38e23ah2t479 +d3A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=QQAZV/fbiHJa3Wui8WPJgaYZm+3V3hil3guIL6hEht0=; fh=por09j6UnvCvwfcL3sYPVo5WUIeKJyfXVhbrjA/VC78=; b=S1JN7Ra4xV4Kpui62n1nHBU7O1vyTDA780dZC8bd4MVATexOffPHCtQ/CK57UnvWYA 1tJEQZejC/tFOYgtrZSyU5khtQfQZOawjMODOvEVqpRno/PdBf9wuLQciwQGJlBwN1zq UrTpho+EfE5qmJRd3BrASoJMnli0dAL7PEPnxuYZ+G2xRHnVwzrBxZcswmEjrEjSHuzH BbSzX24f53dWw8SB4nLr5Qxg6jG2dAHVg59+r0eaKhcIXNFISZ6NFzaax6ZGIzTlGeET v5l19xXvoAcKd2KzHNPwa8HdW4Mj0YwJdwOjVhsaST5fUgIMyl7zPVsgJXXk4MBfbDIy xaQg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UllH1hKt; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-113492-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-113492-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id w62-20020a17090a6bc400b0029bc258f327si6564999pjj.47.2024.03.24.17.52.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Mar 2024 17:52:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-113492-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UllH1hKt; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-113492-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-113492-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 C71E0285961 for ; Mon, 25 Mar 2024 00:50:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B2D281B8837; Sun, 24 Mar 2024 22:44:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="UllH1hKt" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 D599C73165; Sun, 24 Mar 2024 22:44:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711320293; cv=none; b=Z8ZIndfNWAb8YCJdWINEOkH6+KRjlX9CcqydhRwxkLargEbkqNQooADqjBKjzIls2cFFmsLeMwrUkf+n0Zyww02nl+K15ixHMM5VNajbPA+F3QbiqkyY5ZUMx/ail6SjE1TH/FDwmKJ1KVC/S+8Hto55AQjBp5FaMYU/Q3cX6Kk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711320293; c=relaxed/simple; bh=T6b3Fv6mmNPJPoSNNqMGnljWRi4bRwAQRXwzeaqDve8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ocUY2vgda1X2WlfaKzzU95d+5tX8ItctbwgVtD/E1RnoKuLZ8rC3qLDcJHehdxq3PGIH2OrPVGfMH2QE1tfWUN0VHf90+3bAzPfqiHvFv/FNVY2cyXLE/7SeYjw5hWp9RvLjhviMAHUjEmPmf7UdaFsuJB5LHzQav/YRHe3iNQU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=UllH1hKt; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id BDBE3C433F1; Sun, 24 Mar 2024 22:44:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711320293; bh=T6b3Fv6mmNPJPoSNNqMGnljWRi4bRwAQRXwzeaqDve8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UllH1hKtLvMZrMnEolWWyBHkWlnfsQ2LvYInsCBufF+zHPzM3lDBBiovFM0xueK3A HVGWhO/5yZk4L9uvMoKRMhKooxfOehn5geEclMzuKgZzcYvPjYI/dMWlbMSgQi01RY brzB5jUIuOYO9wkMZu97X0Bb1iMxmPTpVNIQop9PwkWJD7IoS7vDMAkL0Jba9Vh+Y5 FCUKOHXkHbEtjpzC3+O/98sTGUV4YoGNWYWNQiRajgrNWmQ07HEMltnSp6SeRPaFPO WRlJMNlMEPzsarZSY/mvB2zYyQvk6BAo57e6QkzLMtqSu0HXw7JkvXZhMh2/YouNDg AQ/Z/Jv+2E8vA== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: David Howells , Markus Suvanto , Jeffrey E Altman , Marc Dionne , linux-afs@lists.infradead.org, Christian Brauner , Sasha Levin Subject: [PATCH 6.8 601/715] afs: Revert "afs: Hide silly-rename files from userspace" Date: Sun, 24 Mar 2024 18:33:00 -0400 Message-ID: <20240324223455.1342824-602-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240324223455.1342824-1-sashal@kernel.org> References: <20240324223455.1342824-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit From: David Howells [ Upstream commit 0aec3847d044273733285dcff90afda89ad461d2 ] 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: Fix 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 Link: https://lore.kernel.org/r/3085695.1710328121@warthog.procyon.org.uk Reviewed-by: Jeffrey E Altman cc: Marc Dionne cc: linux-afs@lists.infradead.org Signed-off-by: Christian Brauner Signed-off-by: Sasha Levin --- fs/afs/dir.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/fs/afs/dir.c b/fs/afs/dir.c index 8a67fc427e748..67afe68972d5c 100644 --- a/fs/afs/dir.c +++ b/fs/afs/dir.c @@ -474,16 +474,6 @@ static int afs_dir_iterate_block(struct afs_vnode *dvnode, continue; } - /* Don't expose silly rename entries to userspace. */ - if (nlen > 6 && - dire->u.name[0] == '.' && - ctx->actor != afs_lookup_filldir && - ctx->actor != afs_lookup_one_filldir && - memcmp(dire->u.name, ".__afs", 6) == 0) { - ctx->pos = blkoff + next * sizeof(union afs_xdr_dirent); - continue; - } - /* found the next entry */ if (!dir_emit(ctx, dire->u.name, nlen, ntohl(dire->u.vnode), -- 2.43.0