HomeFreeBSD

fusefs: fix an uninitialized memory access in fuse_vnop_deallocate

Description

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
MFC after: 2 weeks

Details

Provenance
asomersAuthored on Sep 8 2024, 9:50 PM
Parents
rG967b3685a44e: nfs: spellcheck a comment
Branches
Unknown
Tags
Unknown