Re: [5/5] [CRYPTO] Optimise kmap calls in crypt()

From: Fruhwirth Clemens
Date: Mon Mar 21 2005 - 06:32:04 EST


On Mon, 2005-03-21 at 20:53 +1100, Herbert Xu wrote:

> Perform kmap once (or twice if the buffer is not aligned correctly)
> per page in crypt() instead of the current code which does it once
> per block. Consequently it will yield once per page instead of once
> per block.

Thanks for your work, Herbert.

Applying all patches results in a "does not work for me". The decryption
result is different from the original and my LUKS managed partition
refuses to mount.

I assume you have a test environment already setup, so I would suggest
to find out up to which patch the following test succeeds (should be
paste-able)

cd /tmp
dd if=/dev/zero of=test-crypt count=100
losetup /dev/loop5 /tmp/test-crypt
echo 0 100 crypt aes-plain 0123456789abcdef0123456789abcdef 0 /dev/loop5 0 | dmsetup create test-map
sha1sum /dev/mapper/test-map

Result:
368d017dbdb4299ed7f27d3fc815442f7e438865 /dev/mapper/test-map

Cheers,
--
Fruhwirth Clemens - http://clemens.endorphin.org
for robots: sp4mtrap@xxxxxxxxxxxxx

Attachment: signature.asc
Description: This is a digitally signed message part