Re: [Ocf-linux-users] URGENT bug.
Brought to you by:
david-m
From: David M. <Dav...@se...> - 2007-12-10 10:45:06
|
Jivin Nawang Chhetan lays it down ... > Hi David, > I browsed through the swcr_newsession code. I realized there is > something seriously wrong. > I am attaching dmesg dump, which clearly indicates where the following bug > message is generated > BUG: sleeping function called from invalid context at > kernel/rwsem.c:20 Is this with pre-emption turned on still ? Thanks, David PS I wil get to your other mail, just very busy at the moment :-( > I am using OCF with cryptosoft. Basically this result because we take a lock > in cryto_newsession before calling the swcr_newsession. swcr_newsession > further calls a linux crypto library function which is sleeping. > > ****************** > dmesg > [ 524.873107] crypto/ocf/crypto.c,354: DRIVER_LOCK() > [ 524.873120] swcr_newsession() > [ 524.873127] swcr_newsession crypto_alloc_blkcipher(cbc(aes), 0x0) > [ 524.873136] BUG: sleeping function called from invalid context at > kernel/rwsem.c:20 > [ 524.880781] in_atomic():0, irqs_disabled():1 > [ 524.880825] [<c013fa32>] down_read+0x12/0x20 > [ 524.880845] [<c01e8bce>] crypto_alg_lookup+0x1e/0x50 > [ 524.880865] [<c01e8c30>] crypto_alg_mod_lookup+0x30/0x260 > [ 524.880891] [<c01e8ea6>] crypto_alloc_base+0x26/0x80 > [ 524.880914] [<e0ae2f6d>] swcr_newsession+0x1cd/0x770 [cryptosoft] > [ 524.880964] [<e09f8351>] crypto_newsession+0x1d1/0x240 [ocf] > ****************** > > Please comment. > > -- > Nawang Chhetan > Software Engineer > SafeNet India. -- David McCullough, dav...@se..., Ph:+61 734352815 Secure Computing - SnapGear http://www.uCdot.org http://www.cyberguard.com |