From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from nm25-vm1.bullet.mail.bf1.yahoo.com (nm25-vm1.bullet.mail.bf1.yahoo.com [98.139.212.155]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.server123.net (Postfix) with ESMTPS for ; Mon, 15 Jun 2015 04:22:22 +0200 (CEST) Date: Mon, 15 Jun 2015 02:22:09 +0000 (UTC) From: laxmikanth reddy Reply-To: laxmikanth reddy Message-ID: <1767827196.3364863.1434334929916.JavaMail.yahoo@mail.yahoo.com> In-Reply-To: <20150609055905.GA26186@tansi.org> References: <20150609055905.GA26186@tansi.org> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_3364862_53558898.1434334929912" Subject: Re: [dm-crypt] cryptsetup luksOpen hang on semop List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Arno Wagner , "dm-crypt@saout.de" ------=_Part_3364862_53558898.1434334929912 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Thanks Milan and Arno for quick help. yes, we had missing udev rules. inclu= ding them fix'es the problem. ThanksLaxmikanth=20 On Monday, June 8, 2015 10:59 PM, Arno Wagner wrote= : =20 On Tue, Jun 09, 2015 at 07:37:12 CEST, Milan Broz wrote: >=20 > On 06/09/2015 03:15 AM, laxmikanth reddy wrote: > > Hi Team, > > Wee are working embedded system bringup with custom build kernel 3.10.6= 5 version. > > and kernel version is 3.10.65. > > Here, we are trying to mount the encrypted disk, when udev rule match t= he uevent, > > with "cryptsetup luksOpen ..", and it is getting hang at semop. cryptse= tup 1.6.1. > > Can you please share light on, what could be the possible reasons for t= his issue? > > Appriciate your help and any pointers, to debug this issue. Thanks in a= dvance. >=20 > Maybe you should start with reading FAQ and archive, similar problem was = here > just few weeks ago, please read this thread > http://article.gmane.org/gmane.linux.kernel.device-mapper.dm-crypt/8049 >=20 FAQ is here: https://gitlab.com/cryptsetup/cryptsetup/wikis/FrequentlyAskedQuestions/ Mailing List archive is given in FAQ ite, 1.7 Without having time to look at the defaults of your issue, usually these lockups are causes by the other side having problems (as=20 Milan explains below). Automagic is nice when it works, but a pain to debug when it does not. Note that udev/LVM2 is not part of the cryptsetup project. Regards, Arno > I think your system is just compiled with udev support but missing mandat= ory > device mapper udev rules (libdevmapper library and udev rules are part of= =20 > lvm2 package, cryptsetup depends on it). >=20 > Also please use new version (1.6.7) there were some bugfixes, 1.6.1 is pr= etty old version. >=20 > > Foloowing is the starce log, for "cryptsetup luksOpen ..": > >=20 > > bash-4.2# strace /sbin/cryptsetup --debug --batch-mode luksOpen /dev/bo= otdisk2> > > execve("/sbin/cryptsetup", ["/sbin/cryptsetup", "--debug", "--batch-mod= e", "luksOpen", "/dev/bootdisk2", "NVRAM", "--key-file", "/varied/nv_bb"], = [/* 12 vars */]) =3D 0 >=20 > Please better always paste --debug log (which is sanitized), we need stra= ce only > if requested (see FAQ). >=20 > Milan > _______________________________________________ > dm-crypt mailing list > dm-crypt@saout.de > http://www.saout.de/mailman/listinfo/dm-crypt --=20 Arno Wagner,=C2=A0 =C2=A0 Dr. sc. techn., Dipl. Inform.,=C2=A0 =C2=A0 Email= : arno@wagner.name GnuPG: ID: CB5D9718=C2=A0 FP: 12D6 C03B 1B30 33BB 13CF=C2=A0 B774 E35C 5FA1= CB5D 9718 ---- A good decision is based on knowledge and not on numbers. -- Plato If it's in the news, don't worry about it.=C2=A0 The very definition of=20 "news" is "something that hardly ever happens." -- Bruce Schneier _______________________________________________ dm-crypt mailing list dm-crypt@saout.de http://www.saout.de/mailman/listinfo/dm-crypt ------=_Part_3364862_53558898.1434334929912 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Thanks Milan and Arno for quick help. yes, we h= ad missing udev rules. including them fix'es the problem.

Thanks
Laxmikanth



On Monday, June 8, 2015 10:59 PM, Arno Wagner <arno@wagner.name> w= rote:


On Tue, J= un 09, 2015 at 07:37:12 CEST, Milan Broz wrote:
>
> On 06/09/2015 03:15 AM, laxmikanth reddy wrote:
> > Hi Team,
> > Wee are working e= mbedded system bringup with custom build kernel 3.10.65 version.
> > and kernel version is 3.10.65.
> &= gt; Here, we are trying to mount the encrypted disk, when udev rule match t= he uevent,
> > with "cryptsetup luksOpen ..", and i= t is getting hang at semop. cryptsetup 1.6.1.
> > C= an you please share light on, what could be the possible reasons for this i= ssue?
> > Appriciate your help and any pointers, to= debug this issue. Thanks in advance.
>
> Maybe you should start with reading FAQ and archive, similar prob= lem was here
> just few weeks ago, please read this th= read
> http:= //article.gmane.org/gmane.linux.kernel.device-mapper.dm-crypt/8049
>

FAQ is here:
https://gitlab.com/= cryptsetup/cryptsetup/wikis/FrequentlyAskedQuestions/

Mailing List archive is given in FAQ ite, 1.7

Without having time to look at the defaults of= your issue, usually
these lockups are causes by the othe= r side having problems (as
Milan explains below). Automa= gic is nice when it works, but a pain
to debug when it do= es not.

Note that udev/LVM2 is not par= t of the cryptsetup project.

Regards,<= br clear=3D"none">Arno

> I think yo= ur system is just compiled with udev support but missing mandatory
> device mapper udev rules (libdevmapper library and udev rule= s are part of
> lvm2 package, cryptsetup depends on i= t).
>
> Also please use new vers= ion (1.6.7) there were some bugfixes, 1.6.1 is pretty old version.
>
> > Foloowing is the starce log, fo= r "cryptsetup luksOpen ..":
> >
= > > bash-4.2# strace /sbin/cryptsetup --debug --batch-mode luksOpen /= dev/bootdisk2>
> > execve("/sbin/cryptsetup", ["= /sbin/cryptsetup", "--debug", "--batch-mode", "luksOpen", "/dev/bootdisk2",= "NVRAM", "--key-file", "/varied/nv_bb"], [/* 12 vars */]) =3D 0
>
> Please better always paste --debug l= og (which is sanitized), we need strace only
> if requ= ested (see FAQ).
>
> Milan
> _______________________________________________
> dm-crypt mailing list
> d= m-crypt@saout.de
> http://www.saou= t.de/mailman/listinfo/dm-crypt

-- =
Arno Wagner,    Dr. sc. techn., Dipl. Inform.= ,    Email: arno@wagner.name
Gn= uPG: ID: CB5D9718  FP: 12D6 C03B 1B30 33BB 13CF  B774 E35C 5FA1 C= B5D 9718
----
A good decision is based = on knowledge and not on numbers. -- Plato

If it's in the news, don't worry about it.  The very definition of=
"news" is "something that hardly ever happens." -- Bruc= e Schneier

_______________________________________________
dm-crypt= mailing list
dm-crypt@saout.de
http://www.saout.de/mailman/listinfo/dm-crypt


------=_Part_3364862_53558898.1434334929912--