George Kennedy
c1d519263d
libata: if T_LENGTH is zero, dma direction should be DMA_NONE
...
commit 5da5231bb47864e5dd6c6731151e98b6ee498827 upstream.
Avoid data corruption by rejecting pass-through commands where
T_LENGTH is zero (No data is transferred) and the dma direction
is not DMA_NONE.
Cc: <stable@vger.kernel.org>
Reported-by: syzkaller<syzkaller@googlegroups.com>
Signed-off-by: George Kennedy<george.kennedy@oracle.com>
Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-12-22 09:30:58 +01:00
..
2020-01-22 10:32:51 -07:00
2021-03-04 11:37:45 +01:00
2019-05-30 11:29:52 -07:00
2019-05-24 17:27:12 +02:00
2019-05-24 17:27:12 +02:00
2020-04-07 14:49:45 -06:00
2019-05-30 11:26:41 -07:00
2020-10-09 12:47:56 -06:00
2017-03-06 15:40:59 -05:00
2019-05-24 17:27:12 +02:00
2020-10-02 14:53:37 -06:00
2019-06-19 17:09:07 +02:00
2019-06-19 17:09:55 +02:00
2021-07-19 09:44:59 +02:00
2019-10-25 14:26:41 -06:00
2019-05-21 11:28:45 +02:00
2021-12-08 09:03:19 +01:00
2021-05-11 14:47:26 +02:00
2019-11-06 20:34:25 -07:00
2020-06-14 01:57:21 +09:00
2021-10-20 11:45:05 +02:00
2021-05-11 14:47:26 +02:00
2019-05-21 10:50:45 +02:00
2021-12-14 11:32:39 +01:00
2021-11-18 14:03:37 +01:00
2020-03-26 10:28:19 -06:00
2020-04-07 14:45:15 -06:00
2020-03-26 10:28:20 -06:00
2021-12-22 09:30:58 +01:00
2021-08-12 13:22:19 +02:00
2019-05-21 11:28:46 +02:00
2020-03-12 07:38:47 -06:00
2017-11-02 11:10:55 +01:00
2019-07-29 16:00:14 -06:00
2020-03-26 10:28:20 -06:00
2020-03-26 10:28:19 -06:00
2019-05-21 10:50:45 +02:00
2018-01-11 17:23:23 -06:00
2019-05-21 10:50:45 +02:00
2021-05-14 09:50:24 +02:00
2019-11-08 07:26:31 -07:00
2019-05-21 10:50:45 +02:00
2020-08-23 17:36:59 -05:00
2018-03-01 13:59:03 -08:00
2019-08-23 06:58:50 -06:00
2020-10-02 17:51:30 -06:00
2019-05-21 10:50:45 +02:00
2019-08-26 13:58:59 -06:00
2019-06-05 17:37:06 +02:00
2019-06-05 17:37:06 +02:00
2019-06-05 17:37:06 +02:00
2019-05-21 10:50:45 +02:00
2019-05-21 10:50:45 +02:00
2021-07-14 16:56:04 +02:00
2019-11-18 10:18:59 +01:00
2019-05-21 10:50:45 +02:00
2018-03-19 07:41:36 -07:00
2019-05-21 10:50:45 +02:00
2019-08-26 13:58:59 -06:00
2019-05-21 10:50:45 +02:00
2019-05-21 10:50:45 +02:00
2019-05-21 10:50:45 +02:00
2018-08-24 13:20:33 -07:00
2019-05-21 10:50:45 +02:00
2018-02-18 05:26:07 -08:00
2019-05-21 10:50:45 +02:00
2021-05-14 09:50:24 +02:00
2019-05-21 10:50:45 +02:00
2021-10-20 11:45:04 +02:00
2020-01-22 10:31:55 -07:00
2019-05-21 10:50:45 +02:00
2018-02-18 05:23:25 -08:00
2019-05-21 10:50:45 +02:00
2019-05-21 10:50:45 +02:00
2019-08-26 13:58:59 -06:00
2019-05-21 11:28:46 +02:00
2020-10-23 20:23:47 +02:00
2021-07-14 16:56:04 +02:00
2019-06-19 17:09:55 +02:00
2019-05-21 10:50:45 +02:00
2019-05-21 10:50:45 +02:00
2019-05-21 10:50:45 +02:00
2019-06-19 17:09:55 +02:00
2020-01-29 20:54:51 -07:00
2019-05-21 10:50:45 +02:00
2019-08-26 13:58:59 -06:00
2019-02-08 06:42:55 -07:00
2019-11-01 08:50:51 -06:00
2019-05-21 10:50:45 +02:00
2021-07-14 16:56:03 +02:00
2019-05-21 11:28:46 +02:00
2019-05-21 10:50:45 +02:00
2019-06-19 17:09:55 +02:00
2019-06-05 17:37:06 +02:00
2019-06-05 17:37:00 +02:00
2020-08-23 17:36:59 -05:00
2019-08-26 13:58:59 -06:00
2019-05-21 10:50:45 +02:00
2019-05-21 10:50:45 +02:00
2019-06-05 17:37:06 +02:00
2019-05-21 10:50:45 +02:00
2019-11-01 08:50:51 -06:00
2021-09-18 13:40:23 +02:00
2021-12-08 09:03:21 +01:00
2019-05-21 10:50:45 +02:00
2017-11-02 11:10:55 +01:00
2021-07-14 16:56:03 +02:00
2020-04-23 09:59:30 -06:00
2021-11-02 19:48:19 +01:00
2020-10-28 07:58:09 -06:00
2020-08-23 17:36:59 -05:00
2019-05-21 11:28:46 +02:00
2019-11-01 08:50:51 -06:00
2020-10-16 09:32:11 -06:00
2019-11-01 08:50:51 -06:00
2019-11-01 08:50:51 -06:00
2019-05-21 11:28:46 +02:00
2019-08-26 13:58:59 -06:00
2020-08-23 17:36:59 -05:00
2019-05-21 11:28:46 +02:00
2019-08-26 13:58:59 -06:00
2019-08-26 13:58:59 -06:00
2017-11-02 11:10:55 +01:00