Bug#355156: [Pkg-cryptsetup-devel] Bug#355156: cryptsetup: luksOpen does not work with readonly media anymore

Clemens Fruhwirth clemens at endorphin.org
Sun Mar 12 16:38:29 UTC 2006


Jonas Meurer <jonas at freesources.org> wrote:

> i've tried to reproduce this bug, and indeed luksOpen fails for me with
> a similar error message. i tried also plain dm-crypt, and discovered
> that 'cryptsetup create' doesn't fail. the created device is mountable
> and contains all the data which i put into the encrypted iso image.
> 
> in other words, the bug must be related to luks, it's not reproducible
> when using plain dm-crypt.
> 
> just wanted to let you know, in case that you are not already aware of it.

Execuse me for being not highly "verbose" on this issue. I mailed
Bastian in private a tarball with a fix. I haven't Cc'ed
bugs.debian.org as I was not sure whether the bug tracking system
handles attachments correctly. (Does it?)

However, we fixed the bug. The problem was that I restricted the length
(number of sectors) of a temporary dm-crypt mapping. However for devices
with non-512 sector size like DVDs, the length as well as the start must
be aligned to (device_sector_size/512). I will wrap up an rc3 as soon as
I have had time to take care of your error message proposals. 

Thanks for your help.
-- 
Fruhwirth Clemens - http://clemens.endorphin.org 
for robots: sp4mtrap at endorphin.org




More information about the Pkg-cryptsetup-devel mailing list