diff options
| author | Mikulas Patocka <[email protected]> | 2019-05-07 18:28:35 +0000 |
|---|---|---|
| committer | Mike Snitzer <[email protected]> | 2019-05-07 20:05:08 +0000 |
| commit | 30bba430ddf737978e40561198693ba91386dac1 (patch) | |
| tree | 1e87bf7a93dda8fbe8e41c3e9d9f484b1046064a /lib/test_stackinit.c | |
| parent | dm dust: Make dm_dust_init and dm_dust_exit static (diff) | |
| download | kernel-30bba430ddf737978e40561198693ba91386dac1.tar.gz kernel-30bba430ddf737978e40561198693ba91386dac1.zip | |
dm integrity: correctly calculate the size of metadata area
When we use separate devices for data and metadata, dm-integrity would
incorrectly calculate the size of the metadata device as if it had
512-byte block size - and it would refuse activation with larger block
size and smaller metadata device.
Fix this so that it takes actual block size into account, which fixes
the following reported issue:
https://gitlab.com/cryptsetup/cryptsetup/issues/450
Fixes: 356d9d52e122 ("dm integrity: allow separate metadata device")
Cc: [email protected] # v4.19+
Signed-off-by: Mikulas Patocka <[email protected]>
Signed-off-by: Mike Snitzer <[email protected]>
Diffstat (limited to 'lib/test_stackinit.c')
0 files changed, 0 insertions, 0 deletions
