diff options
author | 2018-05-08 10:53:35 +0000 | |
---|---|---|
committer | 2018-05-08 10:53:35 +0000 | |
commit | 6779cc6419a0df9ef5b311394aed24ad803ce1cb (patch) | |
tree | bd21887f5f79e96bfcecfcdc8e062868171174cc /lib/libcrypto/evp/p_lib.c | |
parent | Change fd_iterfile() to not return imature fps instead of skipping them (diff) | |
download | wireguard-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