Re: second race in hiddev

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

 



On Wed, 21 Jan 2009, Oliver Neukum wrote:

> I guess it wasn't removed because
> a) disconnect() used to take BKL
> b) nobody was ready to check all open() methods for dependency on BKL
>  
> > Why isn't minor_rwsem sufficient protection?
> 
> It is dropped too early. It is held only while a device is registered, not
> during enough of probing.

There really doesn't seem to be any other option with usb_open() relying 
on lock_kernel() still.

I have added comment to the code and applied the patch, thanks a lot 
Oliver.

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

[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux