HomeFreeBSD

Fix l2arc_apply_transforms ztest crash

Description

Fix l2arc_apply_transforms ztest crash

In #13375 we modified the allocation size of the buffer that we use
to apply l2arc transforms to be the size of the arc hdr we're using,
rather than the allocation size that will be in place on the disk,
because sometimes the hdr size is larger. Unfortunately, sometimes
the allocation size is larger, which means that we overflow the buffer
in that case. This change modifies the allocation to be the max of
the two values

Reviewed-by: Mark Maybee <mark.maybee@delphix.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Paul Dagnelie <pcd@delphix.com>
Closes #15177
Closes #15248

Details

Provenance
pcd_delphix.comAuthored on Sep 19 2023, 3:58 PM
GitHub <noreply@github.com>Committed on Sep 19 2023, 3:58 PM
Parents
rG6cb933c56ea6: tests: install missing PAM tests
Branches
Unknown
Tags
Unknown