HomeFreeBSD

Make abd_raidz_gen_iterate() pass an initialized pointer to the callback

Description

Make abd_raidz_gen_iterate() pass an initialized pointer to the callback

Otherwise callbacks may trigger KMSAN violations in the dlen == 0 case.
For example, raidz_syn_pq_abd() will compare an uninitialized pointer
with itself before returning. This seems harmless, but let's maintain
good hygiene and avoid passing uninitialized variables, if only to
placate KMSAN.

Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Reviewed-by: Allan Jude <allan@klarasystems.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Mark Johnston <markj@FreeBSD.org>
Closes #15491

Details

Provenance
markjAuthored on Nov 7 2023, 6:24 PM
GitHub <noreply@github.com>Committed on Nov 7 2023, 6:24 PM
Parents
rG358ce2cf28a9: zed: misc vdev_enc_sysfs_path fixes
Branches
Unknown
Tags
Unknown