HomeFreeBSD

Fix potential use-after-frees in FreeBSD getpages and setattr VOPs

Description

Fix potential use-after-frees in FreeBSD getpages and setattr VOPs

The objset object is reallocated during certain dataset operations, such
as rollbacks, so the objset pointer must be loaded after acquiring the
teardown lock.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Ryan Moeller <ryan@ixsystems.com>
Signed-off-by: Mark Johnston <markj@FreeBSD.org>
Closes #12704

Details

Provenance
markjAuthored on Oct 28 2021, 3:58 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Oct 29 2021, 11:39 PM
Parents
rG28401f6668ea: zfsprops.7: Add note about comma-separation
Branches
Unknown
Tags
Unknown