Brian Behlendorf
2c33b91275
Handle vdev_lookup_top() failure in dva_get_dsize_sync()
...
The dva_get_dsize_sync() function incorrectly assumes that the call
to vdev_lookup_top() cannot fail. However, the NULL dereference at
clearly shows that under certain circumstances it is possible. Note
that offset 0x570 (1376) maps as expected to vd->vdev_deflate_ratio.
BUG: unable to handle kernel NULL pointer dereference at 00000570
crash> struct -o vdev
struct vdev {
[0] uint64_t vdev_id;
... ...
[1376] uint64_t vdev_deflate_ratio;
Given that this can happen this patch add the required error handling.
In the case where vdev_lookup_top() fails assume that no deflation
will occur for the DVA and use the asize.
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ned Bass <bass6@llnl.gov>
Signed-off-by: Alexey Zhuravlev <alexey.zhuravlev@intel.com>
Closes #1707
Closes #1987
Closes #1891
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
2014-05-06 10:41:48 -07:00
..
2014-05-01 12:08:53 -07:00
2013-09-04 16:01:24 -07:00
2013-10-31 14:57:51 -07:00
2013-11-05 13:18:26 -08:00
2013-12-18 16:46:35 -08:00
2014-05-05 13:56:59 -07:00
2013-12-18 16:46:35 -08:00
2014-01-07 10:33:11 -08:00
2013-10-31 14:58:04 -07:00
2013-10-31 14:58:04 -07:00
2013-12-18 16:46:35 -08:00
2013-12-18 16:46:35 -08:00
2014-01-29 15:50:49 -08:00
2014-03-04 12:22:24 -08:00
2014-01-23 12:56:33 -08:00
2014-04-10 14:28:51 -07:00
2013-11-04 10:55:25 -08:00
2013-12-06 09:32:43 -08:00
2014-03-04 11:50:13 -08:00
2013-01-08 10:35:43 -08:00
2013-12-18 16:46:35 -08:00
2013-12-18 16:46:35 -08:00
2014-03-04 12:22:24 -08:00
2013-12-18 16:46:35 -08:00
2014-05-06 10:41:46 -07:00
2014-02-21 12:10:40 -08:00
2014-03-07 10:01:36 -08:00
2013-12-02 14:02:46 -08:00
2014-03-31 16:10:57 -07:00
2013-12-18 16:46:35 -08:00
2014-04-20 16:55:42 -07:00
2013-12-18 16:46:35 -08:00
2013-10-25 13:59:40 -07:00
2014-05-06 10:41:17 -07:00
2013-09-04 16:01:24 -07:00
2013-09-25 15:44:22 -07:00
2013-12-20 13:52:33 -08:00
2010-08-31 13:41:59 -07:00
2010-08-31 13:41:58 -07:00
2014-03-20 12:05:30 -07:00
2013-11-04 10:55:25 -08:00
2013-12-18 16:46:35 -08:00
2014-05-06 10:41:48 -07:00
2014-03-04 12:22:24 -08:00
2014-04-16 10:59:24 -07:00
2013-09-04 16:01:24 -07:00
2014-04-14 13:27:56 -07:00
2013-10-31 14:58:04 -07:00
2012-08-27 12:01:37 -07:00
2014-04-14 13:27:56 -07:00
2014-04-25 15:41:19 -07:00
2014-01-23 09:58:07 -08:00
2013-12-18 16:46:35 -08:00
2013-12-06 09:32:43 -08:00
2013-10-31 14:58:04 -07:00
2013-12-18 16:46:35 -08:00
2013-12-06 09:32:43 -08:00
2013-10-31 14:58:04 -07:00
2013-12-06 09:32:43 -08:00
2013-10-31 14:58:04 -07:00
2013-12-18 16:46:35 -08:00
2013-11-04 10:55:25 -08:00
2013-01-29 09:28:20 -08:00
2014-03-04 11:44:44 -08:00
2014-01-23 11:07:29 -08:00
2010-08-31 13:41:58 -07:00
2013-12-18 16:46:35 -08:00
2013-12-18 16:46:35 -08:00
2013-12-06 09:30:51 -08:00
2014-04-02 13:10:08 -07:00
2013-10-30 14:51:27 -07:00
2014-04-18 13:30:15 -07:00
2013-11-23 15:08:29 -08:00
2013-10-31 14:58:04 -07:00
2013-10-31 14:58:04 -07:00
2013-12-18 16:46:35 -08:00
2013-12-18 16:46:35 -08:00
2014-02-12 09:38:28 -08:00
2014-01-09 15:50:23 -08:00
2014-05-01 10:11:18 -07:00
2013-12-18 16:46:35 -08:00
2013-10-31 14:58:04 -07:00
2013-10-31 14:58:04 -07:00
2014-04-14 13:27:56 -07:00
2013-12-18 16:46:35 -08:00
2010-05-28 13:45:14 -07:00
2013-12-18 16:46:35 -08:00
2013-12-18 16:46:35 -08:00
2014-05-01 10:11:18 -07:00
2013-12-18 16:46:35 -08:00
2014-02-21 16:10:49 -08:00
2014-04-10 14:27:03 -07:00
2010-09-17 16:24:15 -07:00
2014-01-14 14:46:12 -08:00