freebsd-nq/sys/fs/fuse
Alan Somers b0ecfb42d1 fusefs: avoid cache corruption with buggy fuse servers
The FUSE protocol allows the client (kernel) to cache a file's size, if the
server (userspace daemon) allows it. A well-behaved daemon obviously should
not change a file's size while a client has it cached. But a buggy daemon
might. If the kernel ever detects that that has happened, then it should
invalidate the entire cache for that file. Previously, we would not only
cache stale data, but in the case of a file extension while we had the size
cached, we accidentally extended the cache with zeros.

PR:		244178
Reported by:	Ben RUBSON <ben.rubson@gmx.com>
Reviewed by:	cem
MFC after:	2 weeks
Differential Revision:	https://reviews.freebsd.org/D24012
2020-03-11 04:29:45 +00:00
..
fuse_device.c
fuse_file.c
fuse_file.h
fuse_internal.c fusefs: avoid cache corruption with buggy fuse servers 2020-03-11 04:29:45 +00:00
fuse_internal.h
fuse_io.c
fuse_io.h
fuse_ipc.c
fuse_ipc.h
fuse_kernel.h
fuse_main.c Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (8 of many) 2020-02-24 10:33:51 +00:00
fuse_node.c fusefs: avoid cache corruption with buggy fuse servers 2020-03-11 04:29:45 +00:00
fuse_node.h fusefs: avoid cache corruption with buggy fuse servers 2020-03-11 04:29:45 +00:00
fuse_vfsops.c vfs: drop the mostly unused flags argument from VOP_UNLOCK 2020-01-03 22:29:58 +00:00
fuse_vnops.c fusefs: avoid cache corruption with buggy fuse servers 2020-03-11 04:29:45 +00:00
fuse.h