mirror of
https://git.FreeBSD.org/src.git
synced 2025-02-05 18:05:16 +00:00
![Andriy Gapon](/assets/img/avatar_default.png)
illumos/illumos-gate@d420209d9c
d420209d9c
https://www.illumos.org/issues/7233
This fixes a race where one thread is executing zfs_mount() while another
thread forks and execs. If the fork occurs while the directory is open, the
child process will inherit (but not necessarily close immediately) the open fd
for the directory, preventing the mount.
Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Reviewed by: Paul Dagnelie <pcd@delphix.com>
Approved by: Richard Lowe <richlowe@richlowe.net>
Author: Alex Reece <alex@delphix.com>