All of lore.kernel.org
 help / color / mirror / Atom feed
* [dm-crypt] cryptsetup 1.6.2 hands on "waiting for zero"
@ 2015-05-04 18:56 Mrukant Popat
  2015-05-04 19:05 ` Milan Broz
  0 siblings, 1 reply; 5+ messages in thread
From: Mrukant Popat @ 2015-05-04 18:56 UTC (permalink / raw)
  To: dm-crypt

[-- Attachment #1: Type: text/plain, Size: 3245 bytes --]

Dear All,

I am using cryptsetup 1.6.2 on a freescale imx6 processor. However when I
run "cryptsetup -v --debug luksFormat /dev/sdb1" it hangs. Below is the
output.

cryptsetup 1.6.2 processing "cryptsetup -v --debug luksFormat /dev/sda1"

# Running command luksFormat.

# Locking memory.

# Installing SIGINT/SIGTERM handler.

# Unblocking interruption on signal.


WARNING!

========

This will overwrite data on /dev/sda1 irrevocably.


Are you sure? (Type uppercase yes): YES

# Allocating crypt device /dev/sda1 context.

# Trying to open and read device /dev/sda1.

# Initialising device-mapper backend library.

# Timeout set to 0 miliseconds.

# Iteration time set to 1000 miliseconds.

# Interactive passphrase entry requested.

Enter passphrase:

Verify passphrase:

# Formatting device /dev/sda1 as type LUKS1.

# Crypto backend (OpenSSL 1.0.1l 15 Jan 2015) initialized.

# Topology: IO (512/0), offset = 0; Required alignment is 1048576 bytes.

# Generating LUKS header version 1 using hash sha1, aes, xts-plain64, MK 32
bytes

# Crypto backend (OpenSSL 1.0.1l 15 Jan 2015) initialized.

# KDF pbkdf2, hash sha1: 189959 iterations per second.

# Data offset 4096, UUID e03d45c9-65a9-488d-88f9-cf2619575f0c, digest
iterations 23125

# Updating LUKS header of size 1024 on device /dev/sda1

# Key length 32, device size 40960 sectors, header size 2050 sectors.

# Reading LUKS header of size 1024 from device /dev/sda1

# Key length 32, device size 40960 sectors, header size 2050 sectors.

# Adding new keyslot -1 using volume key.

# Calculating data for key slot 0

# Crypto backend (OpenSSL 1.0.1l 15 Jan 2015) initialized.

# KDF pbkdf2, hash sha1: 192752 iterations per second.

# Key slot 0 use 94117 password iterations.

# Using hash sha1 for AF in key slot 0, 4000 stripes

# Updating key slot 0 [0x1000] area.

# Calculated device size is 250 sectors (RW), offset 8.

# Detected kernel Linux 3.10.17-1.0.2_ga+g33597e3 armv7l.

# dm version   OF   [16384] (*1)

# dm versions   OF   [16384] (*1)

# Detected dm-crypt version 1.12.1, dm-ioctl version 4.24.0.

# Device-mapper backend running with UDEV support enabled.

# DM-UUID is Cbio: create slab <bio-1> at 1

RYPT-TEMP-temporary-cryptsetup-347

# Udev cookie 0xd4d2ea2 (semid 0) created

# Udev cookie 0xd4d2ea2 (semid 0) incremented to 1

# Udev cookie 0xd4d2ea2 (semid 0) incremented to 2

# Udev cookie 0xd4d2ea2 (semid 0) assigned to CREATE task(0) with flags
DISABLE_SUBSYSTEM_RULES DISABLE_DISK_RULES DISABLE_OTHER_RULES (0xe)

# dm create temporary-cryptsetup-347 CRYPT-TEMP-temporary-cryptsetup-347 OF
  [16384] (*1)

# dm reload temporary-cryptsetup-347  OFW    [16384] (*1)

# dm resume temporary-cryptsetup-347  OFW    [16384] (*1)

# temporary-cryptsetup-347: Stacking NODE_ADD (254,0) 0:0 0600 [verify_udev]

# temporary-cryptsetup-347: Stacking NODE_READ_AHEAD 256 (flags=1)

# Udev cookie 0xd4d2ea2 (semid 0) decremented to 1

# Udev cookie 0xd4d2ea2 (semid 0) waiting for zero





It hangs on "waiting for zero" . I see that this issue was discussed in
2013 ( http://www.saout.de/pipermail/dm-crypt/2013-November/003619.html
)but did not see the solution from author. Can somebody provide info if
this is already solved. Thanks


regards,
Mrukant Popat

[-- Attachment #2: Type: text/html, Size: 7247 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [dm-crypt] cryptsetup 1.6.2 hands on "waiting for zero"
  2015-05-04 18:56 [dm-crypt] cryptsetup 1.6.2 hands on "waiting for zero" Mrukant Popat
@ 2015-05-04 19:05 ` Milan Broz
  2015-05-04 19:29   ` Mrukant Popat
  0 siblings, 1 reply; 5+ messages in thread
From: Milan Broz @ 2015-05-04 19:05 UTC (permalink / raw)
  To: Mrukant Popat; +Cc: dm-crypt

On 05/04/2015 08:56 PM, Mrukant Popat wrote:
> Dear All,
> 
> I am using cryptsetup 1.6.2 on a freescale imx6 processor. However when I run "cryptsetup -v --debug luksFormat /dev/sdb1" it hangs. Below is the output.

...
> 
> # Udev cookie 0xd4d2ea2 (semid 0) decremented to 1
> 
> # Udev cookie 0xd4d2ea2 (semid 0) waiting for zero


In fact this has nothing to do with cryptsetup itself, it is device-mapper library internals.

Usually it means misconfiguration of libdevmapper installation or wrong or missing device-mapper udev rules.

Do you compile it yourself? What distro is it?

Milan

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [dm-crypt] cryptsetup 1.6.2 hands on "waiting for zero"
  2015-05-04 19:05 ` Milan Broz
@ 2015-05-04 19:29   ` Mrukant Popat
  2015-05-04 19:40     ` Milan Broz
  0 siblings, 1 reply; 5+ messages in thread
From: Mrukant Popat @ 2015-05-04 19:29 UTC (permalink / raw)
  To: Milan Broz; +Cc: dm-crypt

[-- Attachment #1: Type: text/plain, Size: 1220 bytes --]

Hello Milan,

Thanks for the quick answer. I cross-compiled all the tools using yocto for
iMX6 freescale.
I read the information here  -->
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=585786   and
here -->
http://comments.gmane.org/gmane.linux.debian.devel.bugs.general/719712

and disabled udev  using /etc/init.d/udev stop.

After disabling udev, it seems to work. Could you provide the udev rules.
Probably the reason is that I do not seem to have the udev rules.

Thanks again


regards,
Mrukant Popat


On Mon, May 4, 2015 at 12:05 PM, Milan Broz <gmazyland@gmail.com> wrote:

> On 05/04/2015 08:56 PM, Mrukant Popat wrote:
> > Dear All,
> >
> > I am using cryptsetup 1.6.2 on a freescale imx6 processor. However when
> I run "cryptsetup -v --debug luksFormat /dev/sdb1" it hangs. Below is the
> output.
>
> ...
> >
> > # Udev cookie 0xd4d2ea2 (semid 0) decremented to 1
> >
> > # Udev cookie 0xd4d2ea2 (semid 0) waiting for zero
>
>
> In fact this has nothing to do with cryptsetup itself, it is device-mapper
> library internals.
>
> Usually it means misconfiguration of libdevmapper installation or wrong or
> missing device-mapper udev rules.
>
> Do you compile it yourself? What distro is it?
>
> Milan
>

[-- Attachment #2: Type: text/html, Size: 2094 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [dm-crypt] cryptsetup 1.6.2 hands on "waiting for zero"
  2015-05-04 19:29   ` Mrukant Popat
@ 2015-05-04 19:40     ` Milan Broz
  2015-05-04 19:56       ` Mrukant Popat
  0 siblings, 1 reply; 5+ messages in thread
From: Milan Broz @ 2015-05-04 19:40 UTC (permalink / raw)
  To: Mrukant Popat; +Cc: dm-crypt

On 05/04/2015 09:29 PM, Mrukant Popat wrote:
> Hello Milan,
> 
> Thanks for the quick answer. I cross-compiled all the tools using yocto for iMX6 freescale.
> I read the information here  --> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=585786   and 
> here --> http://comments.gmane.org/gmane.linux.debian.devel.bugs.general/719712
> 
> and disabled udev  using /etc/init.d/udev stop.
> 
> After disabling udev, it seems to work. Could you provide the udev rules. Probably the reason is that I do not seem to have the udev rules. 

Udev rules are part of the device-mapper installation (part of lvm2 source code),
so check what version you are compiling and if udev is enabled, it should install these rules.

But AFAIK Debian still tries to reinvent the wheel and distributes own modified lvm2/dm udev rules,
TBH I am not sure how it works now there.

(On my Debian I have 55-dm.rules which completes that semaphore operation your example is waiting for.)

Milan

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [dm-crypt] cryptsetup 1.6.2 hands on "waiting for zero"
  2015-05-04 19:40     ` Milan Broz
@ 2015-05-04 19:56       ` Mrukant Popat
  0 siblings, 0 replies; 5+ messages in thread
From: Mrukant Popat @ 2015-05-04 19:56 UTC (permalink / raw)
  To: Milan Broz; +Cc: dm-crypt

[-- Attachment #1: Type: text/plain, Size: 1206 bytes --]

On Mon, May 4, 2015 at 12:40 PM, Milan Broz <gmazyland@gmail.com> wrote:

> On 05/04/2015 09:29 PM, Mrukant Popat wrote:
> > Hello Milan,
> >
> > Thanks for the quick answer. I cross-compiled all the tools using yocto
> for iMX6 freescale.
> > I read the information here  -->
> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=585786   and
> > here -->
> http://comments.gmane.org/gmane.linux.debian.devel.bugs.general/719712
> >
> > and disabled udev  using /etc/init.d/udev stop.
> >
> > After disabling udev, it seems to work. Could you provide the udev
> rules. Probably the reason is that I do not seem to have the udev rules.
>
> Udev rules are part of the device-mapper installation (part of lvm2 source
> code),
> so check what version you are compiling and if udev is enabled, it should
> install these rules.
>
> But AFAIK Debian still tries to reinvent the wheel and distributes own
> modified lvm2/dm udev rules,
> TBH I am not sure how it works now there.
>
> (On my Debian I have 55-dm.rules which completes that semaphore operation
> your example is waiting for.)
>
> Milan
>

Hello Milan,

Thanks for quick reply. Could you provide your 55-dm.rules for reference.

Regards,
Mrukant Popat

[-- Attachment #2: Type: text/html, Size: 2027 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-05-04 19:56 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-04 18:56 [dm-crypt] cryptsetup 1.6.2 hands on "waiting for zero" Mrukant Popat
2015-05-04 19:05 ` Milan Broz
2015-05-04 19:29   ` Mrukant Popat
2015-05-04 19:40     ` Milan Broz
2015-05-04 19:56       ` Mrukant Popat

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.