Hi,
I'm currently using the default kernel which supports cryptsetup. Now I tried to boot from a USB stick using the 2.6.30-rc8 kernel. As it does not include SHA256 and device mapper support, I downloaded the config from
http://sheeva.with-linux.com/sheeva/ added both and recompiled kernel and modules.
Using this compiled kernel, after entering the passphrase I get a NULL pointer exception. I'm not sure if I missed another module or if this is a bug in the kernel sources (current git version from git://git.marvell.com/orion.git).
I'm using the default cipher aes-cbc-essiv:sha256 (
cryptsetup luksOpen /dev/sda s)
Did any of you ever use cryptsetup on the 2.6.30-rc8 kernel? Any hints on the exception below?
Is cryptsetup already using the hardware aes?
kernel BUG at kernel/workqueue.c:191!
Unable to handle kernel NULL pointer dereference at virtual address 00000000
pgd = de99c000
[00000000] *pgd=1f244031, *pte=00000000, *ppte=00000000
Internal error: Oops: 817 [#1] PREEMPT
Modules linked in: dm_crypt dm_mod ipv6
CPU: 0 Not tainted (2.6.30-04051-gd51634f #4)
PC is at _etext+0xffc1dd0c/0x1db30
LR is at _etext+0xffc30f88/0x1db30
pc : [<c002ed0c>] lr : [<c0041f88>] psr: 40000013
sp : df38db50 ip : df38daa8 fp : df38db5c
r10: de81c000 r9 : e0bf7020 r8 : 00000000
r7 : df947e00 r6 : de81c000 r5 : de8ca560 r4 : de939000
r3 : 00000000 r2 : df38c000 r1 : df38daa8 r0 : 00000029
Flags: nZcv IRQs on FIQs on Mode SVC_32 ISA ARM Segment user
Control: 0005317f Table: 1e99c000 DAC: 00000015
Process cryptsetup (pid: 1775, stack limit = 0xdf38c270)
---[ end trace 1531ce7cf72b88dd ]---
note: cryptsetup[1775] exited with preempt_count 1
BUG: scheduling while atomic: cryptsetup/1775/0x40000002
Modules linked in: dm_crypt dm_mod ipv6
[<c00309c0>] (_etext+0xffc1f9c0/0x1db30) from [<c037296c>] (_etext+0xfff6196c/0x1db30)
[<c037296c>] (_etext+0xfff6196c/0x1db30) from [<c0039be0>] (_etext+0xffc28be0/0x1db30)
[<c0039be0>] (_etext+0xffc28be0/0x1db30) from [<c03732c0>] (_etext+0xfff622c0/0x1db30)
[<c03732c0>] (_etext+0xfff622c0/0x1db30) from [<c00a14f4>] (_etext+0xffc904f4/0x1db30)
[<c00a14f4>] (_etext+0xffc904f4/0x1db30) from [<c00a2918>] (_etext+0xffc91918/0x1db30)
[<c00a2918>] (_etext+0xffc91918/0x1db30) from [<c003ed14>] (_etext+0xffc2dd14/0x1db30)
[<c003ed14>] (_etext+0xffc2dd14/0x1db30) from [<c0042c4c>] (_etext+0xffc31c4c/0x1db30)
[<c0042c4c>] (_etext+0xffc31c4c/0x1db30) from [<c004430c>] (_etext+0xffc3330c/0x1db30)
[<c004430c>] (_etext+0xffc3330c/0x1db30) from [<c002f168>] (_etext+0xffc1e168/0x1db30)
[<c002f168>] (_etext+0xffc1e168/0x1db30) from [<c0031a10>] (_etext+0xffc20a10/0x1db30)
[<c0031a10>] (_etext+0xffc20a10/0x1db30) from [<c0376ac4>] (_etext+0xfff65ac4/0x1db30)
[<c0376ac4>] (_etext+0xfff65ac4/0x1db30) from [<c002b24c>] (_etext+0xffc1a24c/0x1db30)
[<c002b24c>] (_etext+0xffc1a24c/0x1db30) from [<c0374b8c>] (_etext+0xfff63b8c/0x1db30)
Exception stack(0xdf38db08 to 0xdf38db50)
db00: 00000029 df38daa8 df38c000 00000000 de939000 de8ca560
db20: de81c000 df947e00 00000000 e0bf7020 de81c000 df38db5c df38daa8 df38db50
db40: c0041f88 c002ed0c 40000013 ffffffff
[<c0374b8c>] (_etext+0xfff63b8c/0x1db30) from [<c0041f88>] (_etext+0xffc30f88/0x1db30)
Thanks
Michael