linux/Documentation/admin-guide/device-mapper
Mikulas Patocka 5c02406428 dm integrity: conditionally disable "recalculate" feature
Otherwise a malicious user could (ab)use the "recalculate" feature
that makes dm-integrity calculate the checksums in the background
while the device is already usable. When the system restarts before all
checksums have been calculated, the calculation continues where it was
interrupted even if the recalculate feature is not requested the next
time the dm device is set up.

Disable recalculating if we use internal_hash or journal_hash with a
key (e.g. HMAC) and we don't have the "legacy_recalculate" flag.

This may break activation of a volume, created by an older kernel,
that is not yet fully recalculated -- if this happens, the user should
add the "legacy_recalculate" flag to constructor parameters.

Cc: stable@vger.kernel.org
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Reported-by: Daniel Glockner <dg@emlix.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
2021-01-21 15:05:21 -05:00
..
cache-policies.rst
cache.rst
delay.rst
dm-clone.rst dm: add clone target 2019-09-12 09:32:31 -04:00
dm-crypt.rst Documentation: fix typos found in admin-guide subdirectory 2020-12-08 10:25:42 -07:00
dm-dust.rst dm dust: add interface to list all badblocks 2020-07-20 11:17:41 -04:00
dm-ebs.rst dm: add emulated block size target 2020-05-15 10:29:35 -04:00
dm-flakey.rst
dm-init.rst
dm-integrity.rst dm integrity: conditionally disable "recalculate" feature 2021-01-21 15:05:21 -05:00
dm-io.rst
dm-log.rst
dm-queue-length.rst
dm-raid.rst Documentation: fix multiple typos found in the admin-guide subdirectory 2020-12-08 10:27:56 -07:00
dm-service-time.rst
dm-uevent.rst
dm-zoned.rst Documentation: fix multiple typos found in the admin-guide subdirectory 2020-12-08 10:27:56 -07:00
era.rst
index.rst docs: device-mapper: add dm-ebs.rst to an index file 2020-06-19 12:21:56 -04:00
kcopyd.rst
linear.rst
log-writes.rst
persistent-data.rst
snapshot.rst
statistics.rst
striped.rst
switch.rst
thin-provisioning.rst
unstriped.rst
verity.rst - Add DM verity support for signature verification with 2nd keyring. 2020-12-22 13:27:21 -08:00
writecache.rst Documentation: fix multiple typos found in the admin-guide subdirectory 2020-12-08 10:27:56 -07:00
zero.rst