HomeFreeBSD

Fix memory corruption during parallel zpool import with -o cachefile (#16419)

Description

Fix memory corruption during parallel zpool import with -o cachefile (#16419)

When importing multiple pools, the nvlist of properties given with "-o"
is shared amongst the several threads. So no thread should modify it.
Previously, in the course of validating the cachefile property, the
zpool_valid_proplist function would temporarily modify the value, and
then change it back. Now it will operate on a clone of the value.

Sponsored by: Axcient
Fixes #16405
Signed-off-by: Alan Somers <asomers@gmail.com>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Allan Jude <allan@klarasystems.com>
Reviewed-by: George Wilson <gwilson@delphix.com>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>

Details

Provenance
asomersAuthored on Aug 7 2024, 8:44 PM
GitHub <noreply@github.com>Committed on Aug 7 2024, 8:44 PM
Parents
rGbd949b10bed3: ZTS: small fix for SEEK_DATA/SEEK_HOLE tests (#16413)
Branches
Unknown
Tags
Unknown