kernel_samsung_a53x/fs/afs
David Howells 38c2d96a0f afs: Hide silly-rename files from userspace
[ Upstream commit 57e9d49c54528c49b8bffe6d99d782ea051ea534 ]

There appears to be a race between silly-rename files being created/removed
and various userspace tools iterating over the contents of a directory,
leading to such errors as:

	find: './kernel/.tmp_cpio_dir/include/dt-bindings/reset/.__afs2080': No such file or directory
	tar: ./include/linux/greybus/.__afs3C95: File removed before we read it

when building a kernel.

Fix afs_readdir() so that it doesn't return .__afsXXXX silly-rename files
to userspace.  This doesn't stop them being looked up directly by name as
we need to be able to look them up from within the kernel as part of the
silly-rename algorithm.

Fixes: 79ddbfa500b3 ("afs: Implement sillyrename for unlink and rename")
Signed-off-by: David Howells <dhowells@redhat.com>
cc: Marc Dionne <marc.dionne@auristor.com>
cc: linux-afs@lists.infradead.org
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-18 12:13:00 +01:00
..
addr_list.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
afs.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
afs_cm.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
afs_fs.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
afs_vl.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cache.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
callback.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cell.c afs: Fix overwriting of result of DNS query 2024-11-18 12:11:59 +01:00
cmservice.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dir.c afs: Hide silly-rename files from userspace 2024-11-18 12:13:00 +01:00
dir_edit.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dir_silly.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dynroot.c afs: Fix dynamic root lookup DNS check 2024-11-18 12:11:59 +01:00
file.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
flock.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fs_operation.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fs_probe.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fsclient.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
inode.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
internal.h afs: Fix afs_server_list to be cleaned up with RCU 2024-11-18 12:10:54 +01:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
main.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
misc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mntpt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
proc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
protocol_uae.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
protocol_yfs.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rotate.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rxrpc.c afs: Fix refcount underflow from error handling race 2024-11-18 12:11:48 +01:00
security.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
server.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
server_list.c afs: Fix afs_server_list to be cleaned up with RCU 2024-11-18 12:10:54 +01:00
super.c afs: Fix file locking on R/O volumes to operate in local mode 2024-11-18 12:10:55 +01:00
vl_alias.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vl_list.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vl_probe.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vl_rotate.c afs: Return ENOENT if no cell DNS record can be found 2024-11-18 12:10:55 +01:00
vlclient.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
volume.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
write.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
xattr.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
xdr_fs.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
yfsclient.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00