Richard Yao
0de7c552b6
Failure of userland copy should return EFAULT
...
Many key internal functions pass system return codes that are safe to
return to userland. In the case of ddi_copyin(9F), an error passes -1
and the documentation states very clearly that drivers should pass
EFAULT to userland when this happens.
http://illumos.org/man/9F/ddi_copyin
This does not happen in the ZFS source code. I believe it should be
changed to pass EFAULT. I caught this when writing man pages for the
libzfs_core API.
Signed-off-by: Richard Yao <ryao@gentoo.org>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #3575
2015-07-14 10:20:35 -07:00
..
2015-07-01 11:09:15 -07:00
2014-08-01 14:28:05 -07:00
2015-01-16 14:41:26 -08:00
2015-05-11 15:10:24 -07:00
2015-05-11 12:23:16 -07:00
2015-06-11 10:27:25 -07:00
2015-07-06 09:31:42 -07:00
2015-01-16 14:41:26 -08:00
2015-01-16 14:41:26 -08:00
2015-06-11 10:27:25 -07:00
2014-10-21 15:26:50 -07:00
2015-07-10 12:11:45 -07:00
2015-07-06 09:31:30 -07:00
2015-06-16 16:18:11 -07:00
2015-07-06 09:31:42 -07:00
2015-01-16 14:41:26 -08:00
2015-07-10 12:11:45 -07:00
2015-07-06 09:31:42 -07:00
2015-07-06 09:31:42 -07:00
2015-05-04 09:41:10 -07:00
2015-07-06 09:21:30 -07:00
2015-05-11 12:23:16 -07:00
2015-05-04 09:41:10 -07:00
2015-05-11 12:23:16 -07:00
2015-05-04 09:41:10 -07:00
2015-07-06 09:31:35 -07:00
2015-05-04 09:41:10 -07:00
2015-06-11 10:27:25 -07:00
2015-05-04 09:41:10 -07:00
2015-05-04 09:41:10 -07:00
2015-06-22 17:02:13 -07:00
2013-12-18 16:46:35 -08:00
2015-01-16 14:41:26 -08:00
2015-01-16 14:41:26 -08:00
2015-06-11 10:27:25 -07:00
2015-07-06 09:36:13 -07:00
2015-06-11 10:27:25 -07:00
2015-06-25 08:58:16 -07:00
2015-01-16 14:41:26 -08:00
2015-07-06 09:34:13 -07:00
2015-05-11 15:10:57 -07:00
2010-08-31 13:41:59 -07:00
2010-08-31 13:41:58 -07:00
2015-04-07 15:10:19 -07:00
2014-08-06 14:48:41 -07:00
2015-05-11 12:23:16 -07:00
2015-06-25 08:58:16 -07:00
2015-06-11 10:27:25 -07:00
2015-06-25 08:58:16 -07:00
2015-01-16 14:41:26 -08:00
2015-01-16 14:41:26 -08:00
2015-06-11 10:27:25 -07:00
2015-06-25 08:58:16 -07:00
2013-10-31 14:58:04 -07:00
2015-01-16 14:41:26 -08:00
2015-01-16 14:41:26 -08:00
2015-07-13 14:28:50 -07:00
2015-06-25 08:58:16 -07:00
2015-01-16 14:41:26 -08:00
2015-04-30 15:07:47 -07:00
2015-04-30 15:07:47 -07:00
2015-05-11 12:23:16 -07:00
2015-04-30 15:07:47 -07:00
2013-10-31 14:58:04 -07:00
2015-06-11 10:22:38 -07:00
2015-04-28 16:25:20 -07:00
2015-05-11 12:23:16 -07:00
2015-05-04 09:41:09 -07:00
2015-05-11 12:23:16 -07:00
2015-03-05 14:11:10 -08:00
2015-01-16 14:41:26 -08:00
2010-08-31 13:41:58 -07:00
2014-07-29 10:55:29 -07:00
2015-01-16 14:41:26 -08:00
2014-08-11 16:12:36 -07:00
2015-01-16 14:41:26 -08:00
2013-10-30 14:51:27 -07:00
2015-07-14 10:20:35 -07:00
2015-05-11 12:23:16 -07:00
2015-06-22 17:02:13 -07:00
2014-09-05 15:11:43 -07:00
2015-01-16 14:41:26 -08:00
2015-04-28 16:25:34 -07:00
2015-07-06 09:34:13 -07:00
2015-06-29 14:33:23 -07:00
2015-05-11 12:23:16 -07:00
2015-06-11 10:27:25 -07:00
2014-08-01 14:28:05 -07:00
2015-07-10 12:11:45 -07:00
2015-06-11 10:27:25 -07:00
2015-06-11 10:27:25 -07:00
2010-05-28 13:45:14 -07:00
2015-04-17 09:35:24 -07:00
2015-05-14 11:16:52 -07:00
2015-06-18 12:06:59 -07:00
2015-05-11 14:35:14 -07:00
2015-04-24 09:54:22 -07:00
2015-04-17 09:35:24 -07:00
2015-04-30 14:43:40 -07:00
2015-07-13 13:03:01 -07:00