Skip to content

dm-integrity: Implement asynch digest support

Harald Freudenberger dm-devel linux-s390 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest2 patches 8 repliesIn review
  2. v32 patches 4 repliesSuperseded
  3. v22 patches 0 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v11 patch12 repliesSuperseded

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2dm-integrity: use internal variable for digestsizedrivers/md/dm-integrity.c+15 -110 replies
2/2dm-integrity: introduce ahash support for the internal hashdrivers/md/dm-integrity.c+254 -980 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v5 yet.

Read the v5 thread

Cover letter [PATCH v5 0/2] dm-integrity: Implement asynch digest support

Support for ahashes in dm-integrity.

Changelog:

v1: First implementation. Tested with crc32, sha256, hmac-sha256 and
the s390 specific implementations for hmac-sha256 and protected key phmac-sha256. Also ran with some instrumented code (in the digest implementation) to verify that in fact now the code runs asynchronous.
v2: Support shash and ahash. Based on Mikulas' idea about implementing
ahash support similar to dm-verity this version now adds support for ahash but does not replace the shash support. For more details see the text of the patch header.
v3: The line to store the digestsize into the new internal variable
did not make it into the patch set which was sent out. So now this important code piece is also there. Also rebuilded, sparse checked and tested to make sure the patches are ok.
v4: Thanks to Mikulas a total new implementation of the ahash support
for the dm-integrity layer :-)
v5: Slight rework around the allocation and comparing of ahash and
shash algorithm.
V5 has been tested with the new introduced ahash phmac which is a protected key ("hardware key") version of a hmac for s390. As of now phmac is only available in Herbert Xu's cryptodev-2.6 kernel tree but will be merged into mainline with the next merge window for the 6.17 development kernel.

Mikulas Patocka (2):
dm-integrity: use internal variable for digestsize
dm-integrity: introduce ahash support for the internal hash

 drivers/md/dm-integrity.c | 370 +++++++++++++++++++++++++++-----------
 1 file changed, 265 insertions(+), 105 deletions(-)

base-commit: 89be9a83ccf1f88522317ce02f854f30d6115c41 --
2.43.0