[dm-devel] possible dm-crypt leak over loop

Christophe Saout christophe at saout.de
Thu Mar 10 13:24:18 UTC 2005


Am Sonntag, den 06.03.2005, 23:22 +0100 schrieb Alexander Nyberg:

> I think this is more related to dm-crypt and not to loop. However - this
> only seems to happen when dm-crypt is on top of loop, something I cannot
> explain, how do they differ?. Sysrq-t trace at the bottom. My belief
> after looking at this is that dm-crypt leaks memory somewhere but I
> couldn't get around the dm code so here it is. This is 2.6.11, but this
> bug has been present forever (easier to trigger now though).
> 
> =================================================
> 
> Testcase:
> #!/bin/sh
> losetup /dev/loop7 loopbackfile
> echo 0 `blockdev --getsize /dev/loop7` crypt aes-plain 0123456789abcdef0123456789abcdef 0 /dev/loop7 0 | dmsetup create volume1
> mkfs.ext3 /dev/mapper/volume1
> mount /dev/mapper/volume1 mnt
> cd mnt
> dbench 20

How do you see there's a memory leak? Does your machine lock up? I just
ran your testcase several times and I don't see anything unusual. Total
system memory consumption doesn't change before and afterwards.

Can anybody else confirm this?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
URL: <http://listman.redhat.com/archives/dm-devel/attachments/20050310/2491654c/attachment.sig>


More information about the dm-devel mailing list