summaryrefslogtreecommitdiffstats
path: root/lib/libcrypto/evp/p_lib.c
diff options
context:
space:
mode:
authorbluhm <bluhm@openbsd.org>2018-05-08 10:53:35 +0000
committerbluhm <bluhm@openbsd.org>2018-05-08 10:53:35 +0000
commit6779cc6419a0df9ef5b311394aed24ad803ce1cb (patch)
treebd21887f5f79e96bfcecfcdc8e062868171174cc /lib/libcrypto/evp/p_lib.c
parentChange fd_iterfile() to not return imature fps instead of skipping them (diff)
downloadwireguard-openbsd-6779cc6419a0df9ef5b311394aed24ad803ce1cb.tar.xz
wireguard-openbsd-6779cc6419a0df9ef5b311394aed24ad803ce1cb.zip
When looping over mount points, the FOREACH SAVE macro is not save.
The loop variable mp is protected by vfs_busy() so that it cannot be unmounted. But the next mount point nmp could be unmounted while VFS_SYNC() sleeps. As the loop in vfs_stall() does not destroy the mount point, TAILQ_FOREACH_REVERSE without _SAVE is the correct macro to use. OK deraadt@ visa@
Diffstat (limited to 'lib/libcrypto/evp/p_lib.c')
0 files changed, 0 insertions, 0 deletions