Skip to content

dm-verity cleanups and optimizations

Eric Biggers dm-devel lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7dm-verity: move hash algorithm setup into its own functiondrivers/md/dm-verity-target.c+39 -310 replies
2/7dm-verity: move data hash mismatch handling into its own functiondrivers/md/dm-verity-target.c+36 -280 replies
3/7dm-verity: make real_digest and want_digest fixed-lengthdrivers/md/dm-verity-target.c drivers/md/dm-verity.h+8 -120 replies
4/7dm-verity: provide dma_alignment limit in io_hintsdrivers/md/dm-verity-target.c+2 -01 reply
5/7dm-verity: always "map" the data blocksdrivers/md/dm-verity-fec.c drivers/md/dm-verity-fec.h drivers/md/dm-verity-target.c +1 more+42 -1800 replies
6/7dm-verity: make verity_hash() take dm_verity_io instead of ahash_requestdrivers/md/dm-verity-fec.c drivers/md/dm-verity-target.c drivers/md/dm-verity.h+13 -160 replies
7/7dm-verity: hash blocks with shash import+finup when possibledrivers/md/dm-verity-target.c drivers/md/dm-verity.h+130 -573 replies

Reviews trailers per patch

All 7 patches have a Reviewed-by or Acked-by.

PatchSami TolvanenArd Biesheuvel
1/7R-b A-b
2/7R-b A-b
3/7R-b A-b
4/7R-b A-b
5/7R-b A-b
6/7R-b A-b
7/7R-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/7] dm-verity cleanups and optimizations

This series contains some cleanups and optimizations for dm-verity that I've split out from my multibuffer hashing series
https://lore.kernel.org/linux-crypto/[email protected]/.

This series does not depend on any crypto API changes, so it can be applied right away.

Eric Biggers (7):
dm-verity: move hash algorithm setup into its own function
dm-verity: move data hash mismatch handling into its own function
dm-verity: make real_digest and want_digest fixed-length
dm-verity: provide dma_alignment limit in io_hints
dm-verity: always "map" the data blocks
dm-verity: make verity_hash() take dm_verity_io instead of
ahash_request
dm-verity: hash blocks with shash import+finup when possible

 drivers/md/dm-verity-fec.c    |  32 +--
 drivers/md/dm-verity-fec.h    |   6 +-
 drivers/md/dm-verity-target.c | 461 ++++++++++++++++------------------
 drivers/md/dm-verity.h        |  39 ++-
 4 files changed, 242 insertions(+), 296 deletions(-)

base-commit: 22a40d14b572deb80c0648557f4bd502d7e83826

Signature · 1 line
2.45.2