Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Feb 2021 16:26:23 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 253500] fusefs: F_SETLKW fcntl gets corrupted by kern_fcntl()
Message-ID:  <bug-253500-227-ZYT2aZKOeU@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-253500-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-253500-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D253500

--- Comment #2 from Alan Somers <asomers@FreeBSD.org> ---
Kib's right.  The VOP_ADVLOCK interface isn't exactly the same as fcntl.  I=
t's
not legal for op to be F_SETLKW.  Instead, it should be F_SETLK and the fla=
gs
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 ?

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-253500-227-ZYT2aZKOeU>