freebsd-dev/sys/fs/fuse
Alan Somers 0bef4927ea fusefs: handle evil servers that return illegal inode numbers
* If during FUSE_CREATE, FUSE_MKDIR, etc the server returns the same
  inode number for the new file as for its parent directory, reject it.
  Previously this would triggers a recurse-on-non-recursive lock panic.

* If during FUSE_LINK the server returns a different inode number for
  the new name as for the old one, reject it.  Obviously, that can't be
  a hard link.

* If during FUSE_LOOKUP the server returns the same inode number for the
  new file as for its parent directory, reject it.  Nothing good can
  come of this.

PR:		263662
Reported by:	Robert Morris <rtm@lcs.mit.edu>
MFC after:	2 weeks
Reviewed by:	pfg
Differential Revision: https://reviews.freebsd.org/D35128
2022-05-12 14:32:26 -06:00
..
fuse_device.c fusefs: validate servers' error values 2022-04-15 13:57:32 -06:00
fuse_file.c fusefs: implement FUSE_NO_OPEN_SUPPORT and FUSE_NO_OPENDIR_SUPPORT 2021-09-26 21:57:29 -06:00
fuse_file.h fusefs: implement FUSE_NO_OPEN_SUPPORT and FUSE_NO_OPENDIR_SUPPORT 2021-09-26 21:57:29 -06:00
fuse_internal.c fusefs: fix an undefined variable access 2022-05-05 08:43:51 -06:00
fuse_internal.h fusefs: require FUSE_NO_OPENDIR_SUPPORT for NFS exporting 2022-02-04 16:31:05 -07:00
fuse_io.c fusefs: correctly handle servers that report too much data written 2022-04-18 18:59:10 -06:00
fuse_io.h fusefs: inline fuse_io_dispatch 2021-12-06 21:41:50 -07:00
fuse_ipc.c fusefs: implement VOP_ALLOCATE 2021-12-31 21:05:28 -07:00
fuse_ipc.h fusefs: handle evil servers that return illegal inode numbers 2022-05-12 14:32:26 -06:00
fuse_kernel.h fusefs: implement VOP_DEALLOCATE 2022-01-18 21:13:02 -07:00
fuse_main.c modules: increase MAXMODNAME and provide backward compat 2021-12-09 18:09:53 +00:00
fuse_node.c fusefs: handle evil servers that return illegal inode numbers 2022-05-12 14:32:26 -06:00
fuse_node.h Fix a race in fusefs that can corrupt a file's size. 2021-12-31 17:38:42 -07:00
fuse_vfsops.c fusefs: use the fsname mount option if set 2022-04-29 11:10:03 -06:00
fuse_vnops.c fusefs: handle evil servers that return illegal inode numbers 2022-05-12 14:32:26 -06:00
fuse.h [skip ci] update copyright headers in fusefs files 2019-06-28 04:18:10 +00:00