placing the same vnd underneath a vnd (with VNDIOCSET) is a lock violation,
authorderaadt <deraadt@openbsd.org>
Sat, 9 Oct 2021 14:47:02 +0000 (14:47 +0000)
committerderaadt <deraadt@openbsd.org>
Sat, 9 Oct 2021 14:47:02 +0000 (14:47 +0000)
commit3af8c6879e6a8be506658d09b9f97752c580a4e3
treeb7862d0161a00d8359c15ae161cdb9a3cd4d6fd8
parent5d55a8a9dc30db2ee6e2ceb0df0fef3038029a31
placing the same vnd underneath a vnd (with VNDIOCSET) is a lock violation,
but other circumstances are also bad, so let's block all vnd on top of vnd.
While here, fix some toctou multiple-copyin of the path, and restructure
the ioctl defer all softc updates to the end.
ok mpi
sys/dev/vnd.c