From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wg0-x232.google.com (mail-wg0-x232.google.com [IPv6:2a00:1450:400c:c00::232]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.server123.net (Postfix) with ESMTPS for ; Mon, 23 Jun 2014 23:45:26 +0200 (CEST) Received: by mail-wg0-f50.google.com with SMTP id m15so259006wgh.21 for ; Mon, 23 Jun 2014 14:45:26 -0700 (PDT) Message-ID: <53A89FF3.5020400@gmail.com> Date: Mon, 23 Jun 2014 23:45:23 +0200 From: Milan Broz MIME-Version: 1.0 References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [dm-crypt] cryptsetup problem with memory allocation List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Belisko Marek , dm-crypt@saout.de Cc: Peter Rajnoha On 06/23/2014 10:50 AM, Belisko Marek wrote: > I'm trying to use cryptsetup on beaglebone to encrypt some data. > cryptsetup version is 1.6.2. When running luksFormat (with verbose > option) I get following: Hi, please can you try new versions of libdevampper and cryptsetup? ... > # Calculated device size is 250 sectors (RW), offset 8. > # Detected kernel Linux 3.9.0-g7897c55-dirty armv7l. > Couldn't create ioctl argument. ... > I track it down that malloc fails (ENONMEM) in libdevmapper and then > _dm_check_versions() fails when creating dm task (dmt = > dm_task_create(DM_DEVICE_LIST_VERSIONS). This is error from libdevmapper, I have no idea why this happens on ARM... (Adding cc to Peter - any idea in dm camp? :-) Are there any special patches in your kernel for DM subsystem? (Can you try newer kernel also?) Milan