HomeFreeBSD

head_errlog: fix use-after-free

Description

head_errlog: fix use-after-free

In the commit of the head_errlog feature we introduced a bug in
dsl_dataset_promote_sync(): we may dereference origin_head and hds, both
dereferencing ddpa after calling promote_sync() on ddpa.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Chunwei Chen <david.chen@nutanix.com>
Reviewed-by: Rob Norris <robn@despairlabs.com>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Signed-off-by: George Amanakis <gamanakis@gmail.com>
Closes #16272
Closes #16273

Details

Provenance
g_amanakis_yahoo.comAuthored on Jul 15 2024, 4:07 PM
GitHub <noreply@github.com>Committed on Jul 15 2024, 4:07 PM
Parents
rG2eab4f7b396a: Fix assertion in Persistent L2ARC
Branches
Unknown
Tags
Unknown