Omar Sandoval
bd1599d931
scsi_transport_sas: fix BSG ioctl memory corruption
...
The end_device and sas_host devices support BSG ioctls, but the
request_queue allocated for them isn't set up to allocate the struct
scsi_request payload. This leads to memory corruption in the call to
scsi_req_init() in bsg_map_hdr(), since it will memset past the end of
the allocated request. Fix it by setting ->cmd_size on the allocated
request_queue.
Fixes: 82ed4db499 ("block: split scsi_request out of struct request")
Signed-off-by: Omar Sandoval <osandov@fb.com >
Acked-by: Christoph Hellwig <hch@lst.de >
Signed-off-by: Jens Axboe <axboe@fb.com >
2017-02-21 14:18:54 -07:00
..
2017-02-09 21:00:46 -08:00
2016-12-14 10:54:27 +01:00
2016-11-29 11:21:49 -05:00
2016-12-24 11:46:01 -08:00
2016-11-08 17:29:48 -05:00
2016-12-14 10:49:33 -08:00
2017-01-17 17:32:54 -05:00
2017-01-14 11:37:18 +01:00
2016-12-25 10:47:43 +01:00
2016-09-14 13:19:15 -04:00
2017-01-14 11:37:18 +01:00
2016-11-30 19:53:02 -05:00
2017-01-27 15:08:35 -07:00
2016-08-25 22:28:17 -04:00
2016-11-08 17:29:56 -05:00
2017-01-05 20:41:31 -05:00
2016-12-07 18:55:58 -05:00
2016-12-08 17:04:25 -05:00
2017-02-08 10:51:24 -08:00
2016-12-01 08:36:17 -05:00
2017-01-27 15:08:35 -07:00
2017-01-27 15:08:35 -07:00
2017-02-20 13:23:30 -08:00
2016-12-24 11:46:01 -08:00
2017-02-17 14:08:19 -07:00
2016-12-14 10:49:33 -08:00
2017-01-31 14:00:44 -07:00
2016-09-26 21:10:45 -04:00
2016-12-26 20:32:48 -08:00
2017-02-21 10:57:33 -08:00
2016-12-07 18:58:58 -05:00
2017-01-31 14:00:34 -07:00
2017-01-05 20:45:42 -05:00
2016-09-14 13:19:29 -04:00
2016-12-25 17:21:22 +01:00
2016-12-24 11:46:01 -08:00
2016-12-14 15:25:12 -05:00
2016-12-24 11:46:01 -08:00
2016-12-14 15:25:12 -05:00
2016-12-24 11:46:01 -08:00
2016-12-14 15:25:12 -05:00
2016-07-13 22:33:23 -04:00
2016-07-13 22:33:23 -04:00
2016-11-08 17:29:58 -05:00
2016-02-23 21:27:02 -05:00
2016-11-08 17:29:48 -05:00
2016-08-16 00:49:32 -04:00
2016-11-16 20:43:50 -05:00
2016-12-24 11:46:01 -08:00
2016-05-10 22:01:07 -04:00
2016-02-23 21:27:02 -05:00
2016-12-08 16:58:22 -05:00
2016-12-08 16:57:21 -05:00
2016-02-25 21:16:49 -05:00
2016-12-24 11:46:01 -08:00
2017-01-27 15:08:35 -07:00
2016-09-14 14:19:31 -04:00
2017-01-31 14:00:34 -07:00
2016-12-14 10:49:33 -08:00
2016-12-24 11:46:01 -08:00
2016-02-25 21:10:53 -05:00
2016-11-30 19:58:04 -05:00
2016-11-08 17:29:46 -05:00
2016-11-08 17:29:57 -05:00
2016-12-24 11:46:01 -08:00
2016-05-16 11:14:29 -04:00
2016-05-19 11:36:49 -07:00
2017-01-31 10:53:05 -07:00
2016-10-17 13:34:44 -04:00
2016-11-08 17:29:48 -05:00
2016-12-14 14:56:28 -05:00
2016-12-24 11:46:01 -08:00
2016-03-05 17:07:46 -05:00
2016-12-08 16:57:21 -05:00
2016-12-08 16:57:21 -05:00
2017-01-31 14:00:44 -07:00
2016-12-14 10:49:33 -08:00
2016-02-23 21:27:02 -05:00
2016-04-30 09:25:26 -07:00
2016-03-01 20:06:49 -05:00
2016-11-28 15:51:31 -05:00
2016-04-04 12:07:42 -04:00
2016-12-25 17:21:22 +01:00
2016-12-07 18:13:52 -05:00
2016-10-11 17:56:51 -04:00
2017-01-31 14:00:44 -07:00
2016-12-24 11:46:01 -08:00
2017-02-21 12:51:54 -07:00
2017-01-27 15:08:35 -07:00
2016-12-24 11:46:01 -08:00
2016-03-14 21:05:04 -04:00
2016-10-11 18:02:09 -04:00
2016-12-14 15:51:17 -05:00
2016-04-11 16:57:09 -04:00
2017-01-27 15:08:35 -07:00
2017-01-27 15:08:35 -07:00
2017-02-21 14:18:54 -07:00
2016-11-29 11:21:27 -05:00
2017-01-31 14:00:34 -07:00
2016-09-15 09:51:14 -04:00
2016-11-14 13:16:42 -07:00
2017-02-17 14:08:19 -07:00
2016-10-18 19:49:11 -06:00
2016-04-11 16:57:09 -04:00
2017-01-17 13:58:57 -05:00
2017-02-21 10:57:33 -08:00
2016-02-23 21:27:02 -05:00
2016-12-24 11:46:01 -08:00
2017-02-17 14:08:19 -07:00
2017-01-31 14:00:44 -07:00
2016-02-23 21:27:02 -05:00
2016-11-30 11:38:24 -05:00
2017-01-31 14:00:34 -07:00
2017-01-20 19:17:18 -05:00
2016-11-01 13:31:23 -04:00
2016-11-01 13:31:23 -04:00
2016-09-01 17:52:01 -07:00
2016-12-09 10:59:13 +01:00