opnsense-src/sys/fs/fuse
Alan Somers 155ac516c6 fusefs: validate servers' error values
Formerly fusefs would pass up the stack any error value returned by the
fuse server.  However, some values aren't valid for userland, but have
special meanings within the kernel.  One of these, EJUSTRETURN, could
cause a kernel page fault if the server returned it in response to
FUSE_LOOKUP.  Fix by validating all errors returned by the server.

Also, fix a data lifetime bug in the FUSE_DESTROY test.

PR:		263220
Reported by:	Robert Morris <rtm@lcs.mit.edu>
MFC after:	3 weeks
Sponsored by:	Axcient
Reviewed by:	emaste
Differential Revision: https://reviews.freebsd.org/D34931
2022-04-15 13:57:32 -06:00
..
fuse.h [skip ci] update copyright headers in fusefs files 2019-06-28 04:18:10 +00: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: Initialize a pad word in the mknod message 2022-03-17 18:30:21 -04: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: Address -Wunused-but-set-variable warnings 2022-01-20 08:25:00 -05: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: implement FUSE_NO_OPEN_SUPPORT and FUSE_NO_OPENDIR_SUPPORT 2021-09-26 21:57:29 -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: Address -Wunused-but-set-variable warnings 2022-01-20 08:25:00 -05: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 vfs: NDFREE(&nd, NDF_ONLY_PNBUF) -> NDFREE_PNBUF(&nd) 2022-03-24 10:20:51 +00:00
fuse_vnops.c fusefs: fix two bugs regarding VOP_RECLAIM of the root inode 2022-04-06 16:16:52 -06:00