HomeFreeBSD

Fix zfs_sb_teardown/zfs_resume_fs NULL dereference

Description

Fix zfs_sb_teardown/zfs_resume_fs NULL dereference

Fix a pair of conditions in which a concurrent umount can cause
NULL pointer dereferences:

  • zfs_sb_teardown - prevent a NULL dereference by not calling dmu_objset_pool with a null z_os.
  • zfs_resume_fs - don't try to unmount with a null z_os. This change makes the ZoL code more consistent with both Illumos and FreeBSD.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #1543

Details

Provenance
Tim Chase <tim@chase2k.com>Authored on Jun 25 2013, 3:03 AM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Jul 1 2013, 9:51 PM
Parents
rG64d7b6cf75e5: Override default SPA config location via environment
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rGab68b6e5db29: Fix zfs_sb_teardown/zfs_resume_fs NULL dereference (authored by Tim Chase <tim@chase2k.com>).Jul 1 2013, 9:51 PM