Page MenuHomeFreeBSD

Fix vnode locking bug in fuse_vnop_copy_file_range
ClosedPublic

Authored by asomers on Jan 3 2021, 3:32 AM.

Details

Summary
Test Plan

fusefs test suite with DEBUG_VFS_LOCKS

Diff Detail

Repository
R10 FreeBSD src repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

sys/fs/fuse/fuse_vnops.c
684–725

Need goto unlock instead of return (err); to avoid leaking the locks, I think.

  • Don't leak locks on fufh lookup failure
This revision is now accepted and ready to land.Jan 3 2021, 4:49 PM