module ref count

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Herbert,

I am currently working on the template for SP800-38F key wrapping. The module 
is operational and calculates what I want.

However, I have one problem I am having difficulties to track down and I am 
wondering whether you could point me to the right direction.

When a caller calls

	crypto_alloc_aead("kw(aes)", 0, 0);

somehow the refcount of the kernel module implementing the keywrapping is not 
increased. Once can see that in lsmod where the "Used by" value remains 0.

Then when the caller deallocates the cipher handle, the refcount is -1 
according to lsmod. With that, a second invocation of crypto_alloc_aead will 
fail and I even cannot remove the module from the kernel.

Who increases the refcount on the kernel crypto API side?

Thanks a lot

-- 
Ciao
Stephan
--
To unsubscribe from this list: send the line "unsubscribe linux-crypto" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Kernel]     [Gnu Classpath]     [Gnu Crypto]     [DM Crypt]     [Netfilter]     [Bugtraq]

  Powered by Linux