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
Tony Hutter <hutter2@llnl.gov>Committed on Dec 13 2021, 9:22 PM
Parents
rG6ed7d77b44b6: ZTS: import_rewind_device_replaced reliably fails
Branches
Unknown
Tags
Unknown