From: Roman Schlegel <lists@ione.ch>
To: Ondrej Kozina <okozina@redhat.com>, dm-crypt@saout.de
Subject: Re: [dm-crypt] Initializing dm-crypt on Android results in "device lookup failed"
Date: Mon, 23 May 2016 20:47:41 +0200 [thread overview]
Message-ID: <5743504D.9070005@ione.ch> (raw)
In-Reply-To: <9edd7e4d-2eaf-64be-0576-585d5bde7478@redhat.com>
Hi Ondrej,
Thanks a lot for your reply.
On 23.05.2016 10:17, Ondrej Kozina wrote:
> Hello Roman,
>
> I'm no Android developer, so just according to what I can see in your logs:
>
> On 05/22/2016 11:31 AM, Roman Schlegel wrote:
>>
>> 01-01 03:20:03.592 I/Cryptfs ( 254): load_crypto_mapping_table:
>> crypt_params = aes-cbc-essiv:sha256 0A66F89B0D3DFC0B05D9BD23B3453A70 0
>
> Don't post your volume key publicly! If it was just a test device it's
> not so big deal but it's generally good rule to follow so that you don't
> post your VK for real device accidentally.
>
> </mentoring_mode>
>
I was aware that the log contained the volume key (it is a test device),
but you're of course right that I should not get in the habit of posting
it :-).
>> /dev/block/platform/mtk-msdc.0/by-name/userdata 0 1 allow_discards 0
>>
>> 01-01 03:20:08.619 E/Cryptfs ( 254): Cannot load dm-crypt mapping table.
>>
>>
>> at the same time, the kernel log prints the following messages:
>>
>> <3>[ 138.163773] (5)[327:vold]device-mapper: table: 253:0: crypt:
>> Device lookup failed
>
> The kernel driver complaints that it can't access a block device
> referenced by path /dev/block/platform/mtk-msdc.0/by-name/userdata. Is
> it block device? If it's supposed to be a symlink does a referenced
> block device exist?
>
> The thing is kernel accepts only limited set of paths as device
> identifier in DM table. Usually major:minor numbers, kernel path,
> part_uuid. The translation from arbitrary path '
> /dev/block/platform/mtk-msdc.0/by-name/userdata' to something DM driver
> is able to parse should be done in userspace. Usually, it's libdevmapper
> library what does that. Given that kernel complaints, it seems userspace
> haven't done the translation properly or there was a race maybe. Could
> you pass major:minor for /dev/block/platform/mtk-msdc.0/by-name/userdata
> directly in userspace utility that's supposed to establish device
> encryption?
>
The device /dev/block/platform/mtk-msdc.0/by-name/userdata is actually a
symbolic link to another block device, but it seems to exist at the time
of encryption.
What exactly do you mean with that there might be a race?
Thanks and best regards,
Roman
next prev parent reply other threads:[~2016-05-23 18:47 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-22 9:31 [dm-crypt] Initializing dm-crypt on Android results in "device lookup failed" Roman Schlegel
2016-05-23 8:17 ` Ondrej Kozina
2016-05-23 18:47 ` Roman Schlegel [this message]
2016-05-23 9:04 ` Milan Broz
2016-05-23 19:17 ` Roman Schlegel
2016-05-23 19:50 ` Roman Schlegel
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=5743504D.9070005@ione.ch \
--to=lists@ione.ch \
--cc=dm-crypt@saout.de \
--cc=okozina@redhat.com \
/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 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.