1
0
Files
linux/drivers/char
Paul Fulghum da965822ab [PATCH] tty reference count fix
Fix hole where tty structure can be released when reference count is non
zero.  Existing code can sleep without tty_sem protection between deciding
to release the tty structure (setting local variables tty_closing and
otty_closing) and setting TTY_CLOSING to prevent further opens.  An open
can occur during this interval causing release_dev() to free the tty
structure while it is still referenced.

This should fix bugzilla.kernel.org [Bug 6041] New: Unable to handle kernel
paging request

In Bug 6041, tty_open() oopes on accessing the tty structure it has
successfully claimed.  Bug was on SMP machine with the same tty being
opened and closed by multiple processes, and DEBUG_PAGEALLOC enabled.

Signed-off-by: Paul Fulghum <paulkf@microgate.com>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: Jesper Juhl <jesper.juhl@gmail.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-02-14 16:09:33 -08:00
..
2006-01-19 16:19:35 -08:00
2006-02-03 08:32:10 -08:00
2006-01-10 08:01:59 -08:00
2006-02-03 08:32:04 -08:00
2006-01-01 22:21:50 +01:00
2006-01-10 08:01:59 -08:00
2006-02-14 10:01:39 -08:00
2005-12-10 00:20:25 -05:00
2006-01-10 08:01:59 -08:00
2006-02-03 08:32:10 -08:00
2006-01-10 08:01:59 -08:00
2006-02-08 01:04:50 -05:00
2005-10-29 19:30:42 +01:00
2005-10-29 19:30:42 +01:00
2006-01-06 15:22:28 -08:00
2006-01-10 08:01:59 -08:00
2006-01-10 08:01:59 -08:00
2006-01-10 08:01:59 -08:00
2006-01-10 08:01:59 -08:00
2005-10-29 19:30:55 +01:00
2006-01-14 10:41:42 -08:00
2006-02-03 08:31:59 -08:00
2006-01-12 09:09:00 -08:00
2006-01-10 08:01:59 -08:00
2006-02-03 08:32:03 -08:00
2006-01-14 10:41:42 -08:00
2006-01-10 13:39:07 +00:00
2006-02-11 21:41:13 -08:00
2006-01-18 19:25:49 -08:00
2006-02-14 16:09:33 -08:00
2006-01-10 08:01:59 -08:00