freebsd-skq/tests/sys/fs/fusefs
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
..
access.cc fusefs: add SVN Keywords to the test files 2019-08-13 15:49:40 +00:00
allow_other.cc fusefs: coverity cleanup in the tests 2019-09-06 19:50:45 +00:00
bmap.cc fusefs: coverity cleanup in the tests 2019-09-06 19:50:45 +00:00
cache.cc fusefs: avoid cache corruption with buggy fuse servers 2020-03-11 04:29:45 +00:00
create.cc fusefs: fix some minor Coverity CIDs in the tests 2019-09-16 15:44:59 +00:00
default_permissions_privileged.cc fusefs: add SVN Keywords to the test files 2019-08-13 15:49:40 +00:00
default_permissions.cc fusefs: fix some minor Coverity CIDs in the tests 2019-09-16 15:44:59 +00:00
destroy.cc fusefs: add SVN Keywords to the test files 2019-08-13 15:49:40 +00:00
dev_fuse_poll.cc fusefs: coverity cleanup in the tests 2019-09-06 19:50:45 +00:00
fifo.cc fusefs: coverity cleanup in the tests 2019-09-06 19:50:45 +00:00
flush.cc fusefs: add SVN Keywords to the test files 2019-08-13 15:49:40 +00:00
forget.cc fusefs: add SVN Keywords to the test files 2019-08-13 15:49:40 +00:00
fsync.cc fusefs: fix fsync for files with multiple open handles 2020-03-09 01:57:21 +00:00
fsyncdir.cc fusefs: skip some tests when unsafe aio is disabled 2019-08-13 15:52:28 +00:00
getattr.cc fusefs: avoid cache corruption with buggy fuse servers 2020-03-11 04:29:45 +00:00
interrupt.cc fusefs: coverity cleanup in the tests 2019-09-06 19:50:45 +00:00
io.cc fusefs: avoid cache corruption with buggy fuse servers 2020-03-11 04:29:45 +00:00
link.cc fusefs: add SVN Keywords to the test files 2019-08-13 15:49:40 +00:00
locks.cc fusefs: add SVN Keywords to the test files 2019-08-13 15:49:40 +00:00
lookup.cc fusefs: add SVN Keywords to the test files 2019-08-13 15:49:40 +00:00
Makefile fusefs: avoid cache corruption with buggy fuse servers 2020-03-11 04:29:45 +00:00
mkdir.cc fusefs: add SVN Keywords to the test files 2019-08-13 15:49:40 +00:00
mknod.cc fusefs: initialize C++ classes the Coverity way 2019-09-16 15:56:21 +00:00
mockfs.cc fusefs: Fix iosize for FUSE_WRITE in 7.8 compat mode 2019-09-11 19:29:40 +00:00
mockfs.hh fusefs: Fix iosize for FUSE_WRITE in 7.8 compat mode 2019-09-11 19:29:40 +00:00
mount.cc fusefs: add SVN Keywords to the test files 2019-08-13 15:49:40 +00:00
nfs.cc fusefs: add SVN Keywords to the test files 2019-08-13 15:49:40 +00:00
notify.cc [skip ci] fix typo in comment in the fusefs tests 2020-03-09 00:14:09 +00:00
open.cc fusefs: coverity cleanup in the tests 2019-09-06 19:50:45 +00:00
opendir.cc fusefs: fix some minor Coverity CIDs in the tests 2019-09-16 15:44:59 +00:00
read.cc fusefs: fix some memory leaks in the tests. 2020-02-12 18:11:07 +00:00
readdir.cc fusefs: add SVN Keywords to the test files 2019-08-13 15:49:40 +00:00
readlink.cc fusefs: add SVN Keywords to the test files 2019-08-13 15:49:40 +00:00
release.cc fusefs: coverity cleanup in the tests 2019-09-06 19:50:45 +00:00
releasedir.cc fusefs: add SVN Keywords to the test files 2019-08-13 15:49:40 +00:00
rename.cc fusefs: add SVN Keywords to the test files 2019-08-13 15:49:40 +00:00
rmdir.cc fusefs: add SVN Keywords to the test files 2019-08-13 15:49:40 +00:00
setattr.cc tests: fusefs: silence remaining unsigned/signed comparison warnings 2020-01-10 21:51:27 +00:00
statfs.cc fusefs: add SVN Keywords to the test files 2019-08-13 15:49:40 +00:00
symlink.cc fusefs: add SVN Keywords to the test files 2019-08-13 15:49:40 +00:00
unlink.cc fusefs: add SVN Keywords to the test files 2019-08-13 15:49:40 +00:00
utils.cc fusefs: avoid cache corruption with buggy fuse servers 2020-03-11 04:29:45 +00:00
utils.hh fusefs: avoid cache corruption with buggy fuse servers 2020-03-11 04:29:45 +00:00
write.cc fusefs: fix some memory leaks in the tests. 2020-02-12 18:11:07 +00:00
xattr.cc fusefs: Fix some bugs regarding the size of the LISTXATTR list 2019-08-28 04:19:37 +00:00