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:05 PM
GitHub <noreply@github.com>Committed on Jul 15 2024, 4:05 PM
Parents
rGf7d8b1333699: Fix missing semicolon in trace_dbuf.h (#16281)
Branches
Unknown
Tags
Unknown