Al Viro f71f94845e um: fix oopsable race in line_close()
tty->count is decremented only after ->close() had been called and
several tasks can hit it in parallel.  As the result, using tty->count
to check if you are the last one is broken.  We end up leaving line->tty
not reset to NULL and the next IRQ on that sucker will blow up trying to
dereference pointers from kfree'd struct tty.

Fix is obvious: we need to use a counter of our own.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2011-09-14 18:09:37 -07:00
..
2009-04-01 08:59:17 -07:00
2009-06-16 19:47:57 -07:00
2009-04-01 08:59:17 -07:00
2009-04-01 08:59:17 -07:00
2008-10-22 22:55:21 -07:00
2011-09-14 18:09:37 -07:00
2009-04-01 08:59:17 -07:00
2011-05-25 08:39:41 -07:00
2009-04-01 08:59:17 -07:00
2008-10-22 22:55:23 -07:00