diff options
author | Mikulas Patocka <mpatocka@redhat.com> | 2017-07-21 18:58:38 +0300 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2017-07-25 17:11:14 +0300 |
commit | bc86a41e96c5b6f07453c405e036d95acc673389 (patch) | |
tree | 5476c50923b0377e7761f2eba6ff0198859c8df4 /scripts/gdb/linux/utils.py | |
parent | aa03a91ffaefcffb397cddf88b97215b3eff726d (diff) | |
download | linux-bc86a41e96c5b6f07453c405e036d95acc673389.tar.xz |
dm integrity: test for corrupted disk format during table load
If the dm-integrity superblock was corrupted in such a way that the
journal_sections field was zero, the integrity target would deadlock
because it would wait forever for free space in the journal.
Detect this situation and refuse to activate the device.
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Cc: stable@vger.kernel.org
Fixes: 7eada909bfd7 ("dm: add integrity target")
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions