Files
mirror_zfs/module/zfs
Richard Yao 485c581c41 Fix function call with uninitialized value in vdev_inuse
LLVM's static analyzer reported that we could pass an uninitialized
pool_guid to spa_by_guid() in vdev_inuse(). Upon review, it is correct.
An attempt to repurpose a spare or L2ARC drive from an exported pool
will cause the pool_guid passed to spa_by_guid() to be unintialized
information from the stack. This will cause non-deterministic behavior.
Since there is no reason why we cannot repurpose such disks, we modify
vdev_inuse() to avoid calling spa_by_guid() when they are detected.

Signed-off-by: Richard Yao <ryao@gentoo.org>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Issue #2330
2014-09-23 10:32:45 -07:00
..
2014-08-01 14:28:05 -07:00
2013-09-04 16:01:24 -07:00
2014-08-01 14:28:05 -07:00
2013-12-18 16:46:35 -08:00
2013-12-18 16:46:35 -08:00
2014-07-25 16:40:07 -07:00
2014-08-01 14:28:05 -07:00
2014-07-29 10:55:29 -07:00
2013-12-18 16:46:35 -08:00
2014-07-25 16:40:07 -07:00
2014-08-01 14:28:05 -07:00
2014-08-20 10:45:16 -07:00
2013-12-18 16:46:35 -08:00
2013-12-18 16:46:35 -08:00
2014-08-01 14:28:05 -07:00
2013-09-04 16:01:24 -07:00
2013-09-25 15:44:22 -07:00
2010-08-31 13:41:59 -07:00
2010-08-31 13:41:58 -07:00
2013-12-18 16:46:35 -08:00
2014-08-01 14:28:05 -07:00
2013-10-31 14:58:04 -07:00
2012-08-27 12:01:37 -07:00
2014-07-28 14:29:58 -07:00
2014-07-30 09:20:35 -07:00
2013-10-31 14:58:04 -07:00
2013-10-31 14:58:04 -07:00
2014-07-30 09:20:35 -07:00
2014-07-30 09:20:35 -07:00
2014-08-01 14:28:05 -07:00
2014-07-28 14:29:58 -07:00
2010-08-31 13:41:58 -07:00
2014-07-29 10:55:29 -07:00
2014-08-20 10:45:16 -07:00
2013-10-30 14:51:27 -07:00
2014-08-01 14:28:05 -07:00
2013-10-31 14:58:04 -07:00
2014-09-05 15:11:43 -07:00
2013-12-18 16:46:35 -08:00
2013-12-18 16:46:35 -08:00
2014-08-01 14:28:05 -07:00
2014-08-01 14:28:05 -07:00
2013-12-18 16:46:35 -08:00
2013-12-18 16:46:35 -08:00
2013-12-18 16:46:35 -08:00
2014-09-05 15:11:43 -07:00
2010-09-17 16:24:15 -07:00
2014-01-14 14:46:12 -08:00