DM-Crypt Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Milan Broz <gmazyland@gmail.com>
To: Guido Trentalancia <guido@trentalancia.net>, dm-crypt@saout.de
Subject: Re: [dm-crypt] Cryptsetup (>= 1.7.0) luksOpen/luksClose gets stuck after open/close
Date: Thu, 7 Apr 2016 18:23:22 +0200	[thread overview]
Message-ID: <5706897A.1000509@gmail.com> (raw)
In-Reply-To: <1460039182.31097.7.camel@trentalancia.net>

On 04/07/2016 04:26 PM, Guido Trentalancia wrote:
> Hello.
> 
> Cryptsetup version 1.7.0 and 1.7.1 gets stuck on luksOpen and luksClose
> immediately after the device has been opened or closed.

If it is stuck on semop operation, then it is problem of underlying
device-mapper library (that uses system semaphores for synchronization).

Usually it is caused by a misconfiguration of udev rules (there must be udev
rule calling dmsetup udevcomplete otherwise it ends like in your case).

Please check that you have these udev rules installed - they are
usually part of lvm2/dsmetup subpackage (depends on distro, for example in Debian
it is /lib/udev/rules.d/55-dm.rules).

...
> 
> The device is closed correctly, however the cryptsetup process has to
> be killed again to get the shell prompt back.

Does calling "dmsetup udevcomplete_all" help? If so, see above.

> Previous versions (such as 1.6.8 and earlier ones) are not affected by
> this bug.

I guess 1.6.8 is either compiled without udev support or you reinstalled something.
(cryptsetup 1.7.0 does not contain any related changes to this problem).

Please better post cryptsetup command with --debug, strace only on request
(it does not contain important information, moreove ot can contain your password).
Also always mention your distro and version.

Thanks,
Milan

  reply	other threads:[~2016-04-07 16:23 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-07 14:26 [dm-crypt] Cryptsetup (>= 1.7.0) luksOpen/luksClose gets stuck after open/close Guido Trentalancia
2016-04-07 16:23 ` Milan Broz [this message]
2016-04-07 16:55   ` Guido Trentalancia
2016-04-07 17:49   ` Guido Trentalancia
2016-04-07 18:06     ` Milan Broz
2016-04-07 18:47       ` Guido Trentalancia
2016-04-07 19:24         ` Milan Broz
2016-04-08 10:28           ` Guido Trentalancia

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5706897A.1000509@gmail.com \
    --to=gmazyland@gmail.com \
    --cc=dm-crypt@saout.de \
    --cc=guido@trentalancia.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox