On Wed, 2009-02-25 at 11:51 +0800, Herbert Xu wrote: > Jan Glauber <jang@xxxxxxxxxxxxxxxxxx> wrote: > > > > That only happens if the aes_generic module isn't loaded. If > > aes_generic is already present the aes_s390 loads without problems. > > > > Any idea how to solve this? Is something missing in the fallback code > > that uses aes_generic? > > Yeah it looks like it's waiting for the fallback to come up. > However, the interesting bit is in the other processes, i.e., the > one that's actually testing aes_s390 or constructing the aes-generic. > > Could you get those back traces please? I've found 4 processes/threads that seem to be involved. And in case that is relevant the oops message occured 3 times, see the attachment. STACK TRACE FOR TASK: 0x394e37c8 (modprobe) STACK: 0 schedule+1136 [0x2df82c] 1 schedule_timeout+198 [0x2e016e] 2 wait_for_common+256 [0x2df14c] 3 wait_for_completion_interruptible+56 [0x2df2ac] 4 crypto_wait_for_test+94 [0x16a28a] 5 crypto_register_alg+132 [0x16a598] 6 <sym not found>+<ERROR> [0x3e000daa13a] 7 do_one_initcall+68 [0x120c4] 8 sys_init_module+206 [0x825da] 9 sysc_noemu+16 [0x27a5e] STACK TRACE FOR TASK: 0x3dcc4a60 (cryptomgr_test) STACK: 0 schedule+1136 [0x2df82c] 1 schedule_timeout+198 [0x2e016e] 2 wait_for_common+256 [0x2df14c] 3 wait_for_completion+56 [0x2df344] 4 call_usermodehelper_exec+152 [0x5aec8] 5 request_module+272 [0x5b15c] 6 crypto_larval_lookup+176 [0x1681ec] 7 crypto_alg_mod_lookup+70 [0x1682f6] 8 crypto_alloc_base+70 [0x168416] 9 <sym not found>+<ERROR> [0x3e000d92d18] 10 __crypto_alloc_tfm+166 [0x16797a] 11 crypto_alloc_base+100 [0x168434] 12 alg_test+280 [0x17159c] 13 cryptomgr_test+80 [0x16fb4c] 14 kthread+106 [0x60d4a] 15 kernel_thread_starter+6 [0x1b01a] STACK TRACE FOR TASK: 0x394fb7c8 (khelper) STACK: 0 schedule+1136 [0x2df82c] 1 do_wait+672 [0x480c0] 2 sys_wait4+160 [0x48330] 3 wait_for_helper+102 [0x5afe2] 4 kernel_thread_starter+6 [0x1b01a] STACK TRACE FOR TASK: 0x3f6137c8 (modprobe) STACK: 0 schedule+1136 [0x2df82c] 1 fcntl_setlk+412 [0x107a0c] 2 sys_fcntl+262 [0xd7076] 3 sysc_noemu+16 [0x27a5e] Cheers, Jan
aes_s390.cb83bb: AES hardware acceleration is only available for 128-bit keys ------------[ cut here ]------------ Badness at crypto/algapi.c:293 Modules linked in: aes_generic aes_s390(+) qeth_l3 qeth_l2 binfmt_misc zfcp qeth ccwgroup CPU: 5 Not tainted 2.6.28 #25 Process modprobe (pid: 5270, task: 000000003c1e5cf8, ksp: 000000003be83a18) Krnl PSW : 0704100180000000 000000000016a2ac (crypto_wait_for_test+0x80/0x8c) R:0 T:1 IO:1 EX:1 Key:0 M:1 W:0 P:0 AS:0 CC:1 PM:0 EA:3 Krnl GPRS: 0000000000000000 000000003be84000 fffffffffffffe00 0000000000eb8e6e 000000000016a28a 00000000002f1b60 00000000000476b1 0000000000000000 0000000000673048 000000003be80000 000003e000000000 000000003be83bf8 000000003d866400 00000000002ffd20 000000000016a28a 000000003be83bf8 Krnl Code: 000000000016a2a0: ebbfb0a00004 lmg %r11,%r15,160(%r11) 000000000016a2a6: 07f4 bcr 15,%r4 000000000016a2a8: a7f40001 brc 15,16a2aa >000000000016a2ac: a7f4fff2 brc 15,16a290 000000000016a2b0: a7f40001 brc 15,16a2b2 000000000016a2b4: a7f4ffee brc 15,16a290 000000000016a2b8: ebbff0700024 stmg %r11,%r15,112(%r15) 000000000016a2be: a7f13f00 tmll %r15,16128 Call Trace: ([<000000000016a28a>] crypto_wait_for_test+0x5e/0x8c) [<000000000016a598>] crypto_register_alg+0x84/0x9c [<000003e000bce13a>] aes_s390_init+0x13a/0x1f0 [aes_s390] [<00000000000120c4>] do_one_initcall+0x44/0x184 [<00000000000825da>] sys_init_module+0xce/0x1f4 [<0000000000027a5e>] sysc_noemu+0x10/0x16 [<000002000011fda2>] 0x2000011fda2 no locks held by modprobe/5270. Last Breaking-Event-Address: [<000000000016a2a8>] crypto_wait_for_test+0x7c/0x8c ------------[ cut here ]------------ Badness at crypto/algapi.c:293 Modules linked in: aes_generic aes_s390(+) qeth_l3 qeth_l2 binfmt_misc zfcp qeth ccwgroup CPU: 5 Tainted: G W 2.6.28 #25 Process modprobe (pid: 5270, task: 000000003c1e5cf8, ksp: 000000003be83728) Krnl PSW : 0704100180000000 000000000016a2ac (crypto_wait_for_test+0x80/0x8c) R:0 T:1 IO:1 EX:1 Key:0 M:1 W:0 P:0 AS:0 CC:1 PM:0 EA:3 Krnl GPRS: 0000000000000001 000000003be84000 fffffffffffffe00 00000000003aa6c4 000000000016a28a 000000003be83c00 00000000000476b1 0000000000000000 0000000000673048 000000003be80000 000003e000000000 000000003be83bf8 000000003be28c00 00000000002ffd20 000000000016a28a 000000003be83bf8 Krnl Code: 000000000016a2a0: ebbfb0a00004 lmg %r11,%r15,160(%r11) 000000000016a2a6: 07f4 bcr 15,%r4 000000000016a2a8: a7f40001 brc 15,16a2aa >000000000016a2ac: a7f4fff2 brc 15,16a290 000000000016a2b0: a7f40001 brc 15,16a2b2 000000000016a2b4: a7f4ffee brc 15,16a290 000000000016a2b8: ebbff0700024 stmg %r11,%r15,112(%r15) 000000000016a2be: a7f13f00 tmll %r15,16128 Call Trace: ([<000000000016a28a>] crypto_wait_for_test+0x5e/0x8c) [<000000000016a598>] crypto_register_alg+0x84/0x9c [<000003e000bce180>] aes_s390_init+0x180/0x1f0 [aes_s390] [<00000000000120c4>] do_one_initcall+0x44/0x184 [<00000000000825da>] sys_init_module+0xce/0x1f4 [<0000000000027a5e>] sysc_noemu+0x10/0x16 [<000002000011fda2>] 0x2000011fda2 INFO: lockdep is turned off. Last Breaking-Event-Address: [<000000000016a2a8>] crypto_wait_for_test+0x7c/0x8c ------------[ cut here ]------------ Badness at crypto/algapi.c:293 Modules linked in: aes_generic aes_s390(+) qeth_l3 qeth_l2 binfmt_misc zfcp qeth ccwgroup CPU: 5 Tainted: G W 2.6.28 #25 Process modprobe (pid: 5270, task: 000000003c1e5cf8, ksp: 000000003be83728) Krnl PSW : 0704100180000000 000000000016a2ac (crypto_wait_for_test+0x80/0x8c) R:0 T:1 IO:1 EX:1 Key:0 M:1 W:0 P:0 AS:0 CC:1 PM:0 EA:3 Krnl GPRS: 0000000000000001 000000003be84000 fffffffffffffe00 00000000003aa6c4 000000000016a28a 000000003be83c00 00000000000476b1 0000000000000000 0000000000673048 000000003be80000 000003e000000000 000000003be83bf8 000000003be28c00 00000000002ffd20 000000000016a28a 000000003be83bf8 Krnl Code: 000000000016a2a0: ebbfb0a00004 lmg %r11,%r15,160(%r11) 000000000016a2a6: 07f4 bcr 15,%r4 000000000016a2a8: a7f40001 brc 15,16a2aa >000000000016a2ac: a7f4fff2 brc 15,16a290 000000000016a2b0: a7f40001 brc 15,16a2b2 000000000016a2b4: a7f4ffee brc 15,16a290 000000000016a2b8: ebbff0700024 stmg %r11,%r15,112(%r15) 000000000016a2be: a7f13f00 tmll %r15,16128 Call Trace: ([<000000000016a28a>] crypto_wait_for_test+0x5e/0x8c) [<000000000016a598>] crypto_register_alg+0x84/0x9c [<000003e000bce192>] aes_s390_init+0x192/0x1f0 [aes_s390] [<00000000000120c4>] do_one_initcall+0x44/0x184 [<00000000000825da>] sys_init_module+0xce/0x1f4 [<0000000000027a5e>] sysc_noemu+0x10/0x16 [<000002000011fda2>] 0x2000011fda2 INFO: lockdep is turned off. Last Breaking-Event-Address: [<000000000016a2a8>] crypto_wait_for_test+0x7c/0x8c alg: Unexpected test result for aes-s390: 0