HomeFreeBSD

Fix a vnode locking bug in fuse_vnop_advlock.

Description

Fix a vnode locking bug in fuse_vnop_advlock.

Must lock the vnode before accessing the fufh table. Also, check for
invalid parameters earlier. Bug introduced by r346170.

MFC after: 2 weeks

Reviewed by: cem
Differential Revision: https://reviews.freebsd.org/D27936

(cherry picked from commit 542711e52079f65647ac1daadf0c9e74cb221f3e)

Details

Provenance
asomersAuthored on Dec 30 2020, 11:50 PM
Reviewer
cem
Differential Revision
D27936: Fix a vnode locking bug in fuse_vnop_advlock.
Parents
rG274f5099706f: fusefs: during F_GETLK, don't change l_pid if no lock is found
Branches
Unknown
Tags
Unknown