[Bug 253500] fusefs: F_SETLKW fcntl gets corrupted by kern_fcntl()

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Feb 24 16:26:24 UTC 2021


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=253500

--- Comment #2 from Alan Somers <asomers at FreeBSD.org> ---
Kib's right.  The VOP_ADVLOCK interface isn't exactly the same as fcntl.  It's
not legal for op to be F_SETLKW.  Instead, it should be F_SETLK and the flags
field should contain F_WAIT.  You can fix this in fuse_vnop_advlock .  The
second problem is also likely caused by fuse_vnop_advlock, but I don't have
time to debug it right now.

If you're planning to submit a fix, could you please also fix and/or extend the
tests in tests/sys/fs/fusefs/locks.cc ?

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list