Page MenuHomeFreeBSD

inotify: do not call into namei() with a locked vnode
ClosedPublic

Authored by kib on Jul 10 2025, 7:17 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Aug 5, 8:43 AM
Unknown Object (File)
Wed, Aug 5, 5:13 AM
Unknown Object (File)
Sun, Aug 2, 1:16 AM
Unknown Object (File)
Fri, Jul 31, 2:23 PM
Unknown Object (File)
Thu, Jul 30, 6:50 PM
Unknown Object (File)
Mon, Jul 27, 11:00 PM
Unknown Object (File)
Sat, Jul 25, 4:28 PM
Unknown Object (File)
Tue, Jul 14, 2:27 PM
Subscribers

Diff Detail

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

Event Timeline

kib requested review of this revision.Jul 10 2025, 7:17 AM

Thank you. I guess the problem arises when the directory is a mount point, and we need to upgrade the lock?

This revision is now accepted and ready to land.Jul 10 2025, 12:48 PM

Thank you. I guess the problem arises when the directory is a mount point, and we need to upgrade the lock?

For zfs, most likely it was a walk over the snapshot.
But it is generic rule that namei(9) must not be called while owning any vnode lock or busy reference on a mp. For instance, another reason might be non-shared locked fs, or non-recursive vnode lock.
As I noted in my mail to the list, the patch was a guess.