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-03-08 14:12:17 -08:00
2016-11-01 09:43:26 -06:00
2017-06-09 09:27:32 -06:00
2018-10-11 11:36:09 -04:00
2018-10-18 09:41:25 -07:00
2019-03-08 14:12:17 -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