2016-09-08 09:47:48

by Harsh Jain

[permalink] [raw]
Subject: rmmod crypto driver when ipsec is in use

Hi,

What is the expected behavior when driver is unregistered(Rmmod ) with
active ipsec session.?
I am getting stacktrace(BUG_ON in crypto_unregister_alg) instead of
"module in use".


Regards
Harsh Jain


2016-09-08 11:20:01

by Herbert Xu

[permalink] [raw]
Subject: Re: rmmod crypto driver when ipsec is in use

On Thu, Sep 08, 2016 at 03:17:46PM +0530, Harsh Jain wrote:
> Hi,
>
> What is the expected behavior when driver is unregistered(Rmmod ) with
> active ipsec session.?
> I am getting stacktrace(BUG_ON in crypto_unregister_alg) instead of
> "module in use".

The driver is supposed to set cra_module to itself. If it doesn't
then it's buggy.

Cheers,
--
Email: Herbert Xu <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt