Page MenuHomeFreeBSD

fusefs: fix some resource leaks
ClosedPublic

Authored by asomers on Feb 12 2023, 12:27 AM.
Tags
None
Referenced Files
Unknown Object (File)
Dec 11 2024, 1:39 PM
Unknown Object (File)
Dec 3 2024, 8:19 AM
Unknown Object (File)
Nov 21 2024, 10:31 AM
Unknown Object (File)
Nov 20 2024, 9:00 AM
Unknown Object (File)
Nov 8 2024, 7:16 PM
Unknown Object (File)
Oct 31 2024, 6:15 AM
Unknown Object (File)
Oct 31 2024, 6:15 AM
Unknown Object (File)
Oct 7 2024, 11:39 AM
Subscribers

Details

Summary

fusefs: fix some resource leaks

fusefs would leak tickets in three cases:

  • After FUSE_CREATE, if the server returned a bad inode number.
  • After a FUSE_FALLOCATE operation during VOP_DEALLOCATE
  • After a FUSE_FALLOCATE operation during VOP_ALLOCATE

MFC after: 2 weeks

Test Plan

Ran existing test cases while watching sysctl vfs.fusefs.stats

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable