diff options
| author | Mikulas Patocka <[email protected]> | 2019-04-05 19:26:39 +0000 |
|---|---|---|
| committer | Mike Snitzer <[email protected]> | 2019-04-05 22:49:08 +0000 |
| commit | 4ed319c6ac08e9a28fca7ac188181ac122f4de84 (patch) | |
| tree | b7b1c42338a40692cde5a854406b61adb2c4d3c9 /lib/string_helpers.c | |
| parent | dm: disable DISCARD if the underlying storage no longer supports it (diff) | |
| download | kernel-4ed319c6ac08e9a28fca7ac188181ac122f4de84.tar.gz kernel-4ed319c6ac08e9a28fca7ac188181ac122f4de84.zip | |
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: [email protected] # v4.19+
Fixes: 724376a04d1a ("dm integrity: implement fair range locks")
Signed-off-by: Mikulas Patocka <[email protected]>
Signed-off-by: Mike Snitzer <[email protected]>
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions
