Current-Users archive

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

Re: kernel crashes because crypto unloading?

On Jan 19,  9:49am, Paul Goyette wrote:
} On Sun, 19 Jan 2014, Paul Goyette wrote:
} > I would have expected config_cfdata_detach() to fail (with EBUSY) if the 
} > device was still open by someone.  So I'm not sure who/what still owns 
} > allocations from the module's memory pool.
} Hmmm, I guess I misunderstood something.  It seems that there is no 
} protection against detaching a device even when it is currently open.
} A quick-and-dirty program that simply opens /dev/crypto and sleeps shows 
} that the module gets unloaded.
} I'm not sure at this point if the crypto(4) driver should implement a 
} ref-count, or if a more generic solution should be created within the 
} autoconf(9) framework.
} For now, the best solution is to either leave the modules built-in, or 
} manually load them (which prevents auto-unload).

     The best solution would be for you to fix the bug, get rid of
the module, or (for now) to NAK the unload request.  You need to
do something to prevent systems from crashing.

}-- End of excerpt from Paul Goyette

Home | Main Index | Thread Index | Old Index