DM-Crypt Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: laxmikanth reddy <plkreddy2000@yahoo.com>
To: "dm-crypt@saout.de" <dm-crypt@saout.de>
Cc: LAXMIKANTHA REDDY PONNURU <plkreddy2000@yahoo.com>
Subject: [dm-crypt] cryptsetup  luksOpen  hang on semop
Date: Tue, 9 Jun 2015 01:15:10 +0000 (UTC)	[thread overview]
Message-ID: <1886950740.9229159.1433812510357.JavaMail.yahoo@mail.yahoo.com> (raw)

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

Hi Team,
Wee are working embedded system bringup with custom build kernel 3.10.65 version. 
and kernel version is 3.10.65.
Here, we are trying to mount the encrypted disk, when udev rule match the uevent,
with "cryptsetup luksOpen ..", and it is getting hang at semop. cryptsetup 1.6.1.Can you please share light on, what could be the possible reasons for this issue? 
Appriciate your help and any pointers, to debug this issue. Thanks in advance. 
Foloowing is the starce log, for "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 */]) = 0......open("/dev/bootdisk2", O_RDONLY|O_LARGEFILE) = 6
fstat64(6, {st_mode=S_IFBLK|0640, st_rdev=makedev(8, 2), ...}) = 0
ioctl(6, BLKSSZGET, 512)                = 0
close(6)                                = 0stat64("/dev/bootdisk2", {st_mode=S_IFBLK|0640, st_rdev=makedev(8, 2), ...}) = 0
open("/dev/bootdisk2", O_RDWR|O_LARGEFILE) = 6
ioctl(6, BLKROGET, 0)                   = 0
ioctl(6, BLKGETSIZE64, 35651584)        = 0
close(6)                                = 0
open("/dev/urandom", O_RDONLY|O_LARGEFILE) = 6
read(6, "\265\376", 2)                  = 2
semget(0xd4dfeb5, 1, IPC_CREAT|IPC_EXCL|0600) = 163845
semctl(163845, 0, IPC_64|SETVAL, 0xffb176c8) = 0
semctl(163845, 0, IPC_64|GETVAL, 0xffb176c8) = 1
close(6)                                = 0
semop(163845, {{0, 1, 0}}, 1)           = 0
semctl(163845, 0, IPC_64|GETVAL, 0xffb17728) = 2
open("/dev/bootdisk2", O_RDONLY|O_LARGEFILE) = 6
ioctl(6, BLKRAGET, 256)                 = 0
close(6)                                = 0
ioctl(5, DM_DEV_CREATE, 0x885a2a8)      = 0
ioctl(5, DM_TABLE_LOAD, 0x885a2a8)      = 0
ioctl(5, DM_DEV_SUSPEND, 0x885a2a8)     = 0
semget(0xd4dfeb5, 1, 0)                 = 163845
semctl(163845, 0, IPC_64|GETVAL, 0xffb176f8) = 2
semop(163845, {{0, -1, IPC_NOWAIT}}, 1) = 0
semop(163845, {{0, 0, 0}}, 1                             >>>>>>>>system hangs on this semop
Thanks
Laxmikanth


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

             reply	other threads:[~2015-06-09  1:18 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-09  1:15 laxmikanth reddy [this message]
2015-06-09  5:37 ` [dm-crypt] cryptsetup luksOpen hang on semop Milan Broz
2015-06-09  5:59   ` Arno Wagner
2015-06-15  2:22     ` laxmikanth reddy

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=1886950740.9229159.1433812510357.JavaMail.yahoo@mail.yahoo.com \
    --to=plkreddy2000@yahoo.com \
    --cc=dm-crypt@saout.de \
    /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