Files
mirror_zfs/module/zfs
Brian Behlendorf 72841b9fd9 Preserve itx alloc size for zio_data_buf_free()
Using zio_data_buf_alloc() to allocate the itx's may be unsafe
because the itx->itx_lr.lrc_reclen field is not constant from
allocation to free.  Using a different itx->itx_lr.lrc_reclen
size in zio_data_buf_free() can result in the allocation being
returned to the wrong kmem cache.

This issue can be avoided entirely by storing the allocation size
in itx->itx_size and using that for zio_data_buf_free().

Reviewed by: Prakash Surya <prakash.surya@delphix.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #6912
2017-12-04 11:44:39 -08:00
..
2017-11-18 14:08:00 -08:00
2017-11-17 15:11:39 -08:00
2015-01-16 14:41:26 -08:00
2017-08-14 10:36:48 -07:00
2017-06-26 14:36:49 -07:00
2017-11-15 17:27:01 -08:00
2015-01-16 14:41:26 -08:00
2017-11-15 17:27:01 -08:00
2017-11-15 17:27:01 -08:00
2017-11-15 10:19:32 -08:00
2017-08-14 10:36:48 -07:00
2017-11-15 17:27:01 -08:00
2017-08-14 10:36:48 -07:00
2017-11-15 17:27:01 -08:00
2017-10-11 16:54:48 -04:00
2015-01-16 14:41:26 -08:00
2017-10-11 16:54:48 -04:00
2017-11-15 17:27:01 -08:00
2016-04-21 09:49:25 -07:00
2017-11-15 17:27:01 -08:00
2017-01-03 11:31:18 -06:00
2017-10-10 16:41:47 -07:00
2010-08-31 13:41:58 -07:00
2017-11-30 09:40:13 -08:00
2017-11-15 17:27:01 -08:00
2017-07-13 13:54:00 -04:00
2017-11-15 17:27:01 -08:00
2016-11-29 14:34:33 -08:00
2017-11-15 17:27:01 -08:00
2017-11-15 17:27:01 -08:00
2010-08-31 13:41:58 -07:00
2017-03-10 09:51:33 -08:00
2017-03-10 09:51:33 -08:00
2017-08-09 15:31:08 -07:00
2017-01-03 11:31:18 -06:00
2017-11-18 14:08:00 -08:00
2017-09-19 12:19:08 -07:00
2017-10-11 16:59:42 -04:00
2017-11-15 17:27:01 -08:00
2017-09-19 12:19:08 -07:00
2017-03-10 09:51:41 -08:00
2017-11-18 14:08:00 -08:00
2017-11-18 14:08:00 -08:00