Hi, syzkaller found a missing unlock in vnd ioctl error path.
https://syzkaller.appspot.com/bug?id=b35a411a91f835fffb793df63aa8bcd7be99ad87 ok? bluhm Index: dev/vnd.c =================================================================== RCS file: /data/mirror/openbsd/cvs/src/sys/dev/vnd.c,v retrieving revision 1.176 diff -u -p -r1.176 vnd.c --- dev/vnd.c 21 Dec 2021 06:12:03 -0000 1.176 +++ dev/vnd.c 22 Dec 2021 22:46:29 -0000 @@ -498,6 +498,7 @@ fail: if ((error = disk_lock(&sc->sc_dk)) != 0) goto fail; if (sc->sc_flags & VNF_INITED) { + disk_unlock(&sc->sc_dk); error = EBUSY; goto fail; }