Luiz Fernando Capitulino
8a4613f01f
[PATCH] USB: usbserial: race-condition fix.
...
There is a race-condition in usb-serial driver that can be triggered if
a processes does 'port->tty->driver_data = NULL' in serial_close() while
other processes is in kernel-space about to call serial_ioctl() on the
same port.
This happens because a process can open the device while there is
another one closing it.
The patch below fixes that by adding a semaphore to ensure that no
process will open the device while another process is closing it.
Note that we can't use spinlocks here, since serial_open() and
serial_close() can sleep.
Signed-off-by: Luiz Capitulino <lcapitulino@mandriva.com.br>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2006-01-04 13:48:35 -08:00
..
2006-01-04 13:48:34 -08:00
2006-01-04 13:48:34 -08:00
2006-01-04 13:48:34 -08:00
2005-04-16 15:20:36 -07:00
2005-10-28 16:47:48 -07:00
2005-11-17 11:29:52 -08:00
2005-04-16 15:20:36 -07:00
2006-01-04 13:48:34 -08:00
2006-01-04 13:48:34 -08:00
2006-01-04 13:48:32 -08:00
2005-05-16 21:44:26 -07:00
2006-01-04 13:48:34 -08:00
2006-01-04 13:48:34 -08:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2006-01-04 13:48:32 -08:00
2005-11-23 23:04:27 -08:00
2006-01-04 13:48:34 -08:00
2006-01-04 13:48:34 -08:00
2006-01-04 13:48:34 -08:00
2005-04-16 15:20:36 -07:00
2006-01-04 13:48:34 -08:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-10-28 16:47:48 -07:00
2006-01-04 13:48:34 -08:00
2005-04-16 15:20:36 -07:00
2005-05-03 23:31:52 -07:00
2006-01-04 13:48:34 -08:00
2005-04-16 15:20:36 -07:00
2006-01-04 13:48:34 -08:00
2006-01-04 13:48:34 -08:00
2005-11-17 11:29:55 -08:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2006-01-04 13:48:34 -08:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-05-03 23:31:52 -07:00
2005-09-08 16:27:55 -07:00
2006-01-04 13:48:34 -08:00
2006-01-04 13:48:34 -08:00
2005-04-16 15:20:36 -07:00
2006-01-04 13:48:34 -08:00
2005-04-16 15:20:36 -07:00
2005-11-17 11:29:55 -08:00
2005-04-16 15:20:36 -07:00
2006-01-04 13:48:34 -08:00
2005-04-16 15:20:36 -07:00
2006-01-04 13:48:34 -08:00
2006-01-04 13:48:34 -08:00
2006-01-04 13:48:34 -08:00
2005-11-17 11:29:54 -08:00
2006-01-04 13:48:34 -08:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2006-01-04 13:48:34 -08:00
2005-04-16 15:20:36 -07:00
2006-01-04 13:48:35 -08:00
2006-01-04 13:48:35 -08:00
2006-01-04 13:48:34 -08:00
2005-04-18 17:39:20 -07:00
2005-04-16 15:20:36 -07:00
2006-01-04 13:48:34 -08:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00