CVSROOT:        /cvs
Module name:    src
Changes by:     an...@cvs.openbsd.org   2019/08/26 12:56:29

Modified files:
        sys/kern       : vfs_subr.c vfs_vnops.c vfs_vops.c 
        sys/sys        : vnode.h 

Log message:
When a thread tries to exclusively lock a vnode, the same thread must
ensure that any other thread currently trying to acquire the underlying
vnode lock has observed that the same vnode is about to be exclusively
locked. Such threads must then sleep until the exclusive lock has been
released and then try to acquire the lock again. Otherwise, exclusive
access to the vnode cannot be guaranteed.

Thanks to naddy@ and visa@ for testing; ok visa@

Reported-by: syzbot+374d0e7e240000495...@syzkaller.appspotmail.com

Reply via email to