Files
mirror_zfs/module
Mark Johnston fceda40c1e Initialize "autoreplace" in spa_ld_get_props()
spa_prop_find() may fail to find the specified property, in which case
it suppresses ENOENT from zap_lookup().  In this case, the return value
is left uninitialized, so spa_autoreplace was being initialized using an
uninitialized stack variable.

This was found using KMSAN.  It appears to be a regression from commit
9eb7b46ed0, which removed the initialization of "autoreplace" from the
definition.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Signed-off-by: Mark Johnston <markj@FreeBSD.org>
Closes #12383
2021-09-14 12:41:10 -07:00
..
2021-04-07 13:27:11 -07:00
2021-01-26 16:12:26 -08:00
2020-06-10 09:24:15 -07:00
2021-04-07 13:27:11 -07:00
2021-06-29 13:14:42 -07:00
2020-06-10 09:24:15 -07:00
2020-08-20 10:30:06 -07:00