[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [dm-devel] logfs: kernel NULL dereference

On 09/14/2011 08:34 PM, Jörn Engel wrote:
> Forwarded to dm-devel.  Problem is a NULL pointer dereference in
> kcryptd_io_read, which is triggered when mounting logfs.  If someone
> with device mapper knowledge could have a look, that would be useful.
> On Wed, 14 September 2011 20:24:25 +0200, Jörn Engel wrote:
>> Ok, I can reliably reproduce the problem with the following, based on
>> your description:
>> truncate -s 0 foo
>> truncate -s 1G foo
>> losetup -v -f foo
>> cryptsetup luksFormat /dev/loop0
>> cryptsetup luksOpen /dev/loop0 foo
>> pvcreate /dev/mapper/foo
>> vgcreate our_volume /dev/mapper/foo
>> lvcreate -L 128M -n logfstest our_volume
>> yes yes | mklogfs /dev/mapper/our_volume-logfstest
>> mount /dev/mapper/our_volume-logfstest /mnt/

Which kernel version are you using?

>> It is a bit annoying that cryptsetup cannot easily be scripted.

It can be easily scripted. (In quiet mode it will not ask for YES response, add -q,
or just do "echo -n $PASSWORD | cryptsetup luksFormat ...")


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]