Mikulas Patocka
4ed319c6ac
dm integrity: fix deadlock with overlapping I/O
...
dm-integrity will deadlock if overlapping I/O is issued to it, the bug
was introduced by commit 724376a04d1a ("dm integrity: implement fair
range locks"). Users rarely use overlapping I/O so this bug went
undetected until now.
Fix this bug by correcting, likely cut-n-paste, typos in
ranges_overlap() and also remove a flawed ranges_overlap() check in
remove_range_unlocked(). This condition could leave unprocessed bios
hanging on wait_list forever.
Cc: stable@vger.kernel.org # v4.19+
Fixes: 724376a04d1a ("dm integrity: implement fair range locks")
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
2019-04-05 18:49:08 -04:00
..
2019-02-15 08:40:11 -07:00
2019-03-05 14:53:48 -05:00
2018-06-08 11:53:14 -04:00
2017-06-09 09:27:32 -06:00
2018-06-08 11:53:14 -04:00
2017-03-07 11:30:16 -05:00
2017-08-23 12:49:55 -06:00
2018-12-28 16:55:46 -08:00
2017-11-02 11:10:55 +01:00
2018-04-30 15:40:40 -04:00
2017-03-07 13:28:31 -05:00
2016-12-16 00:13:41 +02:00
2018-12-07 16:04:09 -05:00
2017-03-07 13:28:31 -05:00
2017-03-07 13:28:31 -05:00
2018-10-16 14:34:59 -04:00
2014-01-16 13:44:11 -05:00
2017-03-07 13:28:31 -05:00
2019-03-05 14:53:52 -05:00
2019-04-04 15:33:59 -04:00
2019-03-08 14:12:17 -08:00
2018-12-18 09:02:26 -05:00
2018-04-03 15:04:10 -04:00
2015-11-04 21:19:53 -08:00
2016-01-08 20:03:05 -05:00
2018-12-18 09:02:27 -05:00
2019-04-01 16:16:37 -04:00
2019-04-05 18:49:08 -04:00
2018-06-05 08:47:43 -06:00
2019-03-05 14:53:50 -05:00
2018-12-18 09:02:26 -05:00
2018-12-18 09:02:26 -05:00
2018-05-30 15:33:32 -06:00
2015-04-15 12:10:20 -04:00
2018-05-22 23:18:31 -07:00
2016-11-01 09:43:26 -06:00
2018-12-18 09:02:25 -05:00
2016-02-22 22:34:42 -05:00
2018-01-29 13:44:58 -05:00
2018-12-18 09:02:26 -05:00
2019-02-20 23:24:55 -05:00
2018-06-12 18:28:00 -07:00
2017-02-17 00:54:09 -05:00
2019-04-04 15:33:59 -04:00
2019-03-05 14:48:50 -05:00
2018-01-29 13:44:58 -05:00
2018-04-03 15:04:23 -04:00
2016-01-08 20:03:05 -05:00
2019-03-05 14:53:52 -05:00
2018-12-28 12:11:47 -08:00
2017-11-02 11:10:55 +01:00
2018-05-22 23:18:31 -07:00
2019-03-05 14:48:51 -05:00
2018-10-11 11:36:09 -04:00
2019-04-01 16:26:02 -04:00
2018-04-03 15:04:15 -04:00
2019-01-15 16:10:41 -05:00
2019-01-15 16:10:41 -05:00
2019-03-05 14:53:49 -05:00
2018-12-18 09:02:26 -05:00
2019-03-05 14:53:48 -05:00
2018-05-30 15:33:32 -06:00
2018-12-18 09:02:27 -05:00
2018-04-03 15:04:29 -04:00
2019-03-05 14:53:51 -05:00
2017-06-09 09:27:32 -06:00
2018-10-18 15:17:03 -04:00
2018-07-31 17:33:21 -04:00
2019-02-20 23:24:55 -05:00
2017-06-19 11:05:20 -04:00
2019-04-04 15:33:59 -04:00
2018-10-11 11:36:09 -04:00
2019-03-05 14:53:50 -05:00
2019-03-05 14:53:50 -05:00
2018-10-10 11:03:34 -07:00
2018-08-01 15:49:39 -07:00
2018-10-18 09:41:25 -07:00
2018-10-18 09:36:35 -07:00
2018-05-30 15:33:32 -06:00
2019-02-04 10:37:11 -08:00
2017-11-14 16:07:26 -08:00
2018-06-12 16:19:22 -07:00
2018-05-30 15:33:32 -06:00
2019-01-14 06:31:56 -07:00
2018-10-18 09:34:56 -07:00
2018-12-07 22:26:37 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2019-03-08 14:12:17 -08:00
2018-05-30 15:33:32 -06:00
2019-01-28 11:44:40 -08:00
2019-03-12 10:15:18 -07:00
2019-03-16 12:36:39 -07:00
2019-03-16 12:36:39 -07:00
2019-03-12 10:04:02 -07:00
2019-03-12 10:15:18 -07:00
2018-05-30 15:33:32 -06:00