On Tue, 20 Jun 2000 17:38:57 +0200,
Andi Kleen <ak@xxxxxx> wrote:
>On Tue, Jun 20, 2000 at 02:04:35PM +0200, Andrew Morton wrote:
>> - sys_ioctl() and sys_delete_module() both already claim
>> the big lock, so where's the race anyway? I feel I'm missing
>I guess there are some time critical ioctls that should be run outside
>kernel lock though. It is far too late to audit them all though.
ioctls are not a problem, as long as they use a file descriptor, i.e.
no global ioctls. Getting a file descriptor requires open() or its
equivalent which set the module use_count. The race is in open, I
don't know of any races after use_count is set and open() has complete
and left the module.