opnsense-src/tests/sys/fs/fusefs
Alan Somers cf2ed0edae fusefs: fix an uninitialized memory access in fuse_vnop_deallocate
If the FUSE_GETATTR issued to query a file's size during
fuse_vnop_deallocate failed for any reason, then fuse_vnop_deallocate
would attempt to destroy an uninitialized fuse_dispatcher struct, with a
crash the likely result.  This bug only affects FUSE file systems that
implement FUSE_FALLOCATE, and is unlikely to be seen on those that don't
disable attribute caching.

Reported by:	Coverity Scan
CID:		1505308

(cherry picked from commit f93a50d69df2e996ff1d4f793d0dcb9de655ebdc)
2024-10-10 12:48:39 -06:00
..
access.cc fusefs: fix some bugs updating atime during close 2023-10-02 19:10:13 -06:00
allow_other.cc Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
bad_server.cc Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
bmap.cc fusefs: make the tests more robust to changes to maxphys 2024-06-13 12:15:58 -06:00
cache.cc Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
copy_file_range.cc fusefs: prefer new/delete over malloc/free 2024-02-12 10:43:03 -07:00
create.cc Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
default_permissions.cc fusefs: fix some bugs updating atime during close 2023-10-02 19:10:13 -06:00
default_permissions_privileged.cc Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
destroy.cc Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
dev_fuse_poll.cc Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
fallocate.cc fusefs: fix an uninitialized memory access in fuse_vnop_deallocate 2024-10-10 12:48:39 -06:00
fifo.cc Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
flush.cc Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
forget.cc Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
fsync.cc Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
fsyncdir.cc Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
getattr.cc fusefs: fix invalid value for st_birthtime.tv_nsec 2024-02-12 10:43:11 -07:00
interrupt.cc Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
io.cc fusefs: prefer new/delete over malloc/free 2024-02-12 10:43:03 -07:00
last_local_modify.cc Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
link.cc Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
locks.cc Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
lookup.cc fusefs: fix invalid value for st_birthtime.tv_nsec 2024-02-12 10:43:11 -07:00
lseek.cc fusefs: fix two bugs regarding _PC_MIN_HOLE_SIZE 2024-09-19 14:27:41 -06:00
Makefile Silence VLA extension warnings in fusefs tests 2023-12-24 14:59:28 +01:00
mkdir.cc Fix intermittency in the sys.fs.fusefs.mknod.main test 2023-10-21 09:14:32 -06:00
mknod.cc Fix intermittency in the sys.fs.fusefs.mknod.main test 2023-10-21 09:14:32 -06:00
mockfs.cc fusefs: fix some memory leaks in the tests 2024-02-12 10:43:07 -07:00
mockfs.hh Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
mount.cc Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
nfs.cc Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
notify.cc Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
open.cc Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
opendir.cc Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
read.cc tests/fusefs: fix all tests that depend on kern.maxphys 2024-06-13 12:15:51 -06:00
readdir.cc fusefs: add more readdir tests for misbehaving servers 2023-11-29 17:04:33 -07:00
readlink.cc fusefs: sanitize FUSE_READLINK results for embedded NULs 2023-10-14 11:57:09 -06:00
release.cc Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
releasedir.cc Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
rename.cc Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
rmdir.cc Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
setattr.cc fusefs: prefer new/delete over malloc/free 2024-02-12 10:43:03 -07:00
statfs.cc Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
symlink.cc Fix intermittency in the sys.fs.fusefs.mknod.main test 2023-10-21 09:14:32 -06:00
unlink.cc Remove "All Rights Reserved" from FreeBSD Foundation copyrights 2024-08-06 15:39:53 -04:00
utils.cc tests/fusefs: fix all tests that depend on kern.maxphys 2024-06-13 12:15:51 -06:00
utils.hh tests/fusefs: fix all tests that depend on kern.maxphys 2024-06-13 12:15:51 -06:00
write.cc fusefs: make the tests more robust to changes to maxphys 2024-06-13 12:15:58 -06:00
xattr.cc Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00