From: Tvrtko Ursulin <tvrtko-9sj9WOxYP5jR7s880joybQ@public.gmane.org>
To: Milan Broz <gmazyland-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: dm-crypt-4q3lyFh4P1g@public.gmane.org,
okozina-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org,
linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-rt-users-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: cryptsetup not working under 3.6 - RT patch set seem to break it
Date: Mon, 29 Oct 2012 20:45:38 +0000 [thread overview]
Message-ID: <508EEAF2.4090506@ursulin.net> (raw)
In-Reply-To: <508EE395.9010709-9sj9WOxYP5jR7s880joybQ@public.gmane.org>
On 29/10/12 20:14, Tvrtko Ursulin wrote:
> On 29/10/12 19:47, Milan Broz wrote:
>> On 10/29/2012 08:31 PM, Tvrtko Ursulin wrote:
>>> Just tried 3.6.4 and it is still broken. Is there anything else I could
>>> try to debug this?
>>
>> See response from response from Ondra on dmcrypt list - your kernel
>> config
>> is perhaps broken.
>
> I don't think that reached me - perhaps I was not copied.
>
> Weird yes, I mean no one can spot anything bad with my config...
>
>> Please use fresh checkout, run make oldconfig and try again.
>> (Many people use 3.6 already and there is no other report.)
>
> ... and I just used it today to configure a fresh 3.6.4 (plus -rt10
> patches) without a problem.
>
> Unless RT patchset is the culprit. Hm.. that would be unexpected, but I
> guess it is worth a shot. I'll let you know what happens without -rt.
Ha, this is exciting, vanilla 3.6.4 works, with -rt10 patch it does not.
Copying in linux-rt-users.
To recap, 3.6 RT seems to break dm-crypt. Try it like this:
cryptsetup --debug --key-file=- luksOpen /some/luks/formatted/file any-label
And kernel will fail like this:
Kernel says this:
device-mapper: table: 252:1: crypt: Error allocating crypto tfm
device-mapper: ioctl: error adding target to table
I think crypto modules are not getting auto loaded for some reason, but
even if I load them manually before hand and still breaks in the same way.
Maybe someone will have a "ah yes" moment? Here is the diff between
working (vanilla 3.6.4) and non-working (3.6.4-rt10) configs:
--- 1 2012-10-29 20:37:49.472306922 +0000
+++ 2 2012-10-29 20:37:52.319732779 +0000
@@ -892,7 +892,6 @@
# CONFIG_DEBUG_SECTION_MISMATCH is not set
# CONFIG_DEBUG_SET_MODULE_RONX is not set
# CONFIG_DEBUG_SG is not set
-# CONFIG_DEBUG_SHIRQ is not set
# CONFIG_DEBUG_SPINLOCK is not set
# CONFIG_DEBUG_STACKOVERFLOW is not set
# CONFIG_DEBUG_STACK_USAGE is not set
@@ -1810,7 +1809,7 @@
CONFIG_MTRR_SANITIZER=y
CONFIG_MTRR=y
# CONFIG_MULTICORE_RAID456 is not set
-CONFIG_MUTEX_SPIN_ON_OWNER=y
+# CONFIG_MUTEX_SPIN_ON_OWNER is not set
# CONFIG_MWAVE is not set
CONFIG_NAMESPACES=y
CONFIG_NATIONAL_PHY=y
@@ -1842,7 +1841,6 @@
CONFIG_NET_CLS_TCINDEX=m
CONFIG_NET_CLS_U32=m
CONFIG_NET_CLS=y
-# CONFIG_NETCONSOLE is not set
CONFIG_NET_CORE=y
CONFIG_NETDEVICES=y
# CONFIG_NET_DSA is not set
@@ -2260,9 +2258,13 @@
CONFIG_PPP=y
# CONFIG_PPS is not set
CONFIG_PREEMPT_COUNT=y
+# CONFIG_PREEMPT__LL is not set
# CONFIG_PREEMPT_NONE is not set
CONFIG_PREEMPT_NOTIFIERS=y
CONFIG_PREEMPT_RCU=y
+CONFIG_PREEMPT_RT_BASE=y
+# CONFIG_PREEMPT_RTB is not set
+CONFIG_PREEMPT_RT_FULL=y
# CONFIG_PREEMPT_VOLUNTARY is not set
CONFIG_PREEMPT=y
CONFIG_PREVENT_FIRMWARE_BUILD=y
@@ -2368,11 +2370,10 @@
CONFIG_RTC_INTF_PROC=y
CONFIG_RTC_INTF_SYSFS=y
CONFIG_RTC_LIB=y
-# CONFIG_RT_GROUP_SCHED is not set
CONFIG_RT_MUTEXES=y
# CONFIG_RT_MUTEX_TESTER is not set
-# CONFIG_RWSEM_GENERIC_SPINLOCK is not set
-CONFIG_RWSEM_XCHGADD_ALGORITHM=y
+CONFIG_RWSEM_GENERIC_SPINLOCK=y
+# CONFIG_RWSEM_XCHGADD_ALGORITHM is not set
# CONFIG_SAMPLES is not set
# CONFIG_SATA_ACARD_AHCI is not set
CONFIG_SATA_AHCI=m
@@ -2851,7 +2852,6 @@
CONFIG_TRACE_IRQFLAGS_SUPPORT=y
# CONFIG_TRACE_SINK is not set
CONFIG_TRACING_SUPPORT=y
-# CONFIG_TRANSPARENT_HUGEPAGE is not set
CONFIG_TREE_PREEMPT_RCU=y
# CONFIG_TREE_RCU_TRACE is not set
CONFIG_TUN=y
@@ -2867,7 +2867,6 @@
CONFIG_UID16=y
# CONFIG_UIO is not set
# CONFIG_ULTRIX_PARTITION is not set
-CONFIG_UNINLINE_SPIN_UNLOCK=y
CONFIG_UNIX98_PTYS=y
CONFIG_UNIX_DIAG=y
# CONFIG_UNIXWARE_DISKLABEL is not set
No crypto related differences.
Tvrtko
_______________________________________________
dm-crypt mailing list
dm-crypt-4q3lyFh4P1g@public.gmane.org
http://www.saout.de/mailman/listinfo/dm-crypt
next parent reply other threads:[~2012-10-29 20:45 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <50830D33.5050807@ursulin.net>
[not found] ` <5083C61C.5090807@gmail.com>
[not found] ` <5083E4A8.3060501@ursulin.net>
[not found] ` <5083E87B.2080908@gmail.com>
[not found] ` <5083EC61.8070505@ursulin.net>
[not found] ` <50844D01.9090805@gmail.com>
[not found] ` <5084551E.5040304@ursulin.net>
[not found] ` <508ED985.5060301@ursulin.net>
[not found] ` <508EDD6E.7030908@gmail.com>
[not found] ` <508EE395.9010709@ursulin.net>
[not found] ` <508EE395.9010709-9sj9WOxYP5jR7s880joybQ@public.gmane.org>
2012-10-29 20:45 ` Tvrtko Ursulin [this message]
2012-10-29 23:51 ` [dm-crypt] cryptsetup not working under 3.6 - RT patch set seem to break it Thomas Gleixner
2012-10-30 9:40 ` Uwe Kleine-König
2012-10-30 9:55 ` Milan Broz
2012-10-30 15:27 ` [PATCH] Fix crypto api init for 3.6.4-rt10 Milan Broz
2012-10-30 17:57 ` Thomas Gleixner
2012-10-30 20:35 ` Uwe Kleine-König
2012-10-30 18:24 ` Tvrtko Ursulin
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=508EEAF2.4090506@ursulin.net \
--to=tvrtko-9sj9woxyp5jr7s880joybq@public.gmane.org \
--cc=dm-crypt-4q3lyFh4P1g@public.gmane.org \
--cc=gmazyland-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-rt-users-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=okozina-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
/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;
as well as URLs for NNTP newsgroup(s).