HomeFreeBSD

Miscellaneous ZTS fixes

Description

Miscellaneous ZTS fixes

Coverity had various complaints about minor issues. They are all fairly
straightforward to understand without reading additional files, with the
exception of the draid.c issue. vdev_draid_rand() takes a 128-bit
starting seed, but we were passing a pointer to a 64-bit value, which
understandably made Coverity complain. This is perhaps the only
significant issue fixed in this patch, since it causes stack corruption.

These are not all of the issues in the ZTS that Coverity caught, but a
number of them are already fixed in other PRs. There is also a class of
TOUTOC complaints that involve very minor things in the ZTS (e.g.
access() before unlink()). I have yet to decide whether they are false
positives (since this is not security sensitive code) or something to
cleanup.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Neal Gompa <ngompa@datto.com>
Signed-off-by: Richard Yao <richard.yao@alumni.stonybrook.edu>
Closes #13943

Details

Provenance
Richard Yao <richard.yao@alumni.stonybrook.edu>Authored on Sep 29 2022, 3:56 PM
GitHub <noreply@github.com>Committed on Sep 29 2022, 3:56 PM
Parents
rG55c12724d377: zed: mark disks as REMOVED when they are removed
Branches
Unknown
Tags
Unknown