* [PATCH] afs: Revert "afs: Hide silly-rename files from userspace"
@ 2024-03-13 11:08 David Howells
2024-03-13 15:16 ` Randy Dunlap
` (3 more replies)
0 siblings, 4 replies; 7+ messages in thread
From: David Howells @ 2024-03-13 11:08 UTC (permalink / raw)
To: Marc Dionne, Markus Suvanto
Cc: dhowells, Jeffrey Altman, Christian Brauner, linux-afs,
linux-fsdevel, linux-kernel
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 <markus.suvanto@gmail.com>
Link: https://lists.infradead.org/pipermail/linux-afs/2024-February/008102.html
Signed-off-by: David Howells <dhowells@redhat.com>
cc: Marc Dionne <marc.dionne@auristor.com>
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 *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),
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: [PATCH] afs: Revert "afs: Hide silly-rename files from userspace"
2024-03-13 11:08 [PATCH] afs: Revert "afs: Hide silly-rename files from userspace" David Howells
@ 2024-03-13 15:16 ` Randy Dunlap
2024-03-13 15:20 ` Jeffrey E Altman
2024-03-14 10:54 ` Christian Brauner
` (2 subsequent siblings)
3 siblings, 1 reply; 7+ messages in thread
From: Randy Dunlap @ 2024-03-13 15:16 UTC (permalink / raw)
To: David Howells, Marc Dionne, Markus Suvanto
Cc: Jeffrey Altman, Christian Brauner, linux-afs, linux-fsdevel,
linux-kernel
On 3/13/24 04:08, David Howells wrote:
>
> 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 <markus.suvanto@gmail.com>
> Link: https://lists.infradead.org/pipermail/linux-afs/2024-February/008102html
Not Found
The requested URL was not found on this server.
> Signed-off-by: David Howells <dhowells@redhat.com>
> cc: Marc Dionne <marc.dionne@auristor.com>
> 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 *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),
>
>
--
#Randy
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: [PATCH] afs: Revert "afs: Hide silly-rename files from userspace"
2024-03-13 15:16 ` Randy Dunlap
@ 2024-03-13 15:20 ` Jeffrey E Altman
0 siblings, 0 replies; 7+ messages in thread
From: Jeffrey E Altman @ 2024-03-13 15:20 UTC (permalink / raw)
To: Randy Dunlap, David Howells, Marc Dionne, Markus Suvanto
Cc: Christian Brauner, linux-afs, linux-fsdevel, linux-kernel
[-- Attachment #1.1: Type: text/plain, Size: 779 bytes --]
On 3/13/2024 11:16 AM, Randy Dunlap wrote:
> On 3/13/24 04:08, David Howells wrote:
>>
>> 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<markus.suvanto@gmail.com>
>> Link:https://lists.infradead.org/pipermail/linux-afs/2024-February/008102html
> Not Found
>
> The requested URL was not found on this server.
The dot before the "html" extension is missing.
[-- Attachment #1.2: Type: text/html, Size: 1512 bytes --]
[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 4039 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] afs: Revert "afs: Hide silly-rename files from userspace"
2024-03-13 11:08 [PATCH] afs: Revert "afs: Hide silly-rename files from userspace" David Howells
2024-03-13 15:16 ` Randy Dunlap
@ 2024-03-14 10:54 ` Christian Brauner
2024-03-14 10:55 ` David Howells
2024-03-14 12:47 ` Jeffrey E Altman
3 siblings, 0 replies; 7+ messages in thread
From: Christian Brauner @ 2024-03-14 10:54 UTC (permalink / raw)
To: David Howells
Cc: Christian Brauner, Jeffrey Altman, linux-afs, linux-fsdevel,
linux-kernel, Marc Dionne, Markus Suvanto
On Wed, 13 Mar 2024 11:08:41 +0000, David Howells wrote:
>
> 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.
>
> [...]
Applied to the vfs.fixes branch of the vfs/vfs.git tree.
Patches in the vfs.fixes branch should appear in linux-next soon.
Please report any outstanding bugs that were missed during review in a
new review to the original patch series allowing us to drop it.
It's encouraged to provide Acked-bys and Reviewed-bys even though the
patch has now been applied. If possible patch trailers will be updated.
Note that commit hashes shown below are subject to change due to rebase,
trailer updates or similar. If in doubt, please check the listed branch.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs.git
branch: vfs.fixes
[1/1] afs: Revert "afs: Hide silly-rename files from userspace"
https://git.kernel.org/vfs/vfs/c/c38cecdf5360
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: [PATCH] afs: Revert "afs: Hide silly-rename files from userspace"
2024-03-13 11:08 [PATCH] afs: Revert "afs: Hide silly-rename files from userspace" David Howells
2024-03-13 15:16 ` Randy Dunlap
2024-03-14 10:54 ` Christian Brauner
@ 2024-03-14 10:55 ` David Howells
2024-03-14 14:24 ` Randy Dunlap
2024-03-14 12:47 ` Jeffrey E Altman
3 siblings, 1 reply; 7+ messages in thread
From: David Howells @ 2024-03-14 10:55 UTC (permalink / raw)
To: Randy Dunlap
Cc: dhowells, Marc Dionne, Markus Suvanto, Jeffrey Altman,
Christian Brauner, linux-afs, linux-fsdevel, linux-kernel
Randy Dunlap <rdunlap@infradead.org> wrote:
> > Link: https://lists.infradead.org/pipermail/linux-afs/2024-February/008102html
>
> Not Found
>
> The requested URL was not found on this server.
Erm. Not sure how you came by that. You lost a dot somehow. It's in the
original submission:
https://lore.kernel.org/linux-fsdevel/3085695.1710328121@warthog.procyon.org.uk/
David
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] afs: Revert "afs: Hide silly-rename files from userspace"
2024-03-13 11:08 [PATCH] afs: Revert "afs: Hide silly-rename files from userspace" David Howells
` (2 preceding siblings ...)
2024-03-14 10:55 ` David Howells
@ 2024-03-14 12:47 ` Jeffrey E Altman
3 siblings, 0 replies; 7+ messages in thread
From: Jeffrey E Altman @ 2024-03-14 12:47 UTC (permalink / raw)
To: David Howells, Marc Dionne, Markus Suvanto
Cc: Christian Brauner, linux-afs, linux-fsdevel, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 1585 bytes --]
On 3/13/2024 7:08 AM, David Howells wrote:
>
> 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 <markus.suvanto@gmail.com>
> Link: https://lists.infradead.org/pipermail/linux-afs/2024-February/008102.html
> Signed-off-by: David Howells <dhowells@redhat.com>
> cc: Marc Dionne <marc.dionne@auristor.com>
> 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 *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),
Reviewed-by: Jeffrey E Altman<jaltman@auristor.com>
[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 4039 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2024-03-14 14:24 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-13 11:08 [PATCH] afs: Revert "afs: Hide silly-rename files from userspace" David Howells
2024-03-13 15:16 ` Randy Dunlap
2024-03-13 15:20 ` Jeffrey E Altman
2024-03-14 10:54 ` Christian Brauner
2024-03-14 10:55 ` David Howells
2024-03-14 14:24 ` Randy Dunlap
2024-03-14 12:47 ` Jeffrey E Altman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®