Linux cryptographic layer development
 help / color / mirror / Atom feed
* module ref count
@ 2015-04-21 12:35 Stephan Mueller
  2015-04-21 12:56 ` Stephan Mueller
  0 siblings, 1 reply; 4+ messages in thread
From: Stephan Mueller @ 2015-04-21 12:35 UTC (permalink / raw)
  To: herbert; +Cc: linux-crypto

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-04-22  7:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-21 12:35 module ref count Stephan Mueller
2015-04-21 12:56 ` Stephan Mueller
2015-04-21 14:43   ` Stephan Mueller
2015-04-22  7:26     ` Herbert Xu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox