]> git.neil.brown.name Git - history.git/commit
[PATCH] fix for do_tty_hangup() access of kfreed memory
authorAlexander Viro <viro@parcelfarce.linux.theplanet.co.uk>
Wed, 22 Oct 2003 01:44:21 +0000 (18:44 -0700)
committerLinus Torvalds <torvalds@home.osdl.org>
Wed, 22 Oct 2003 01:44:21 +0000 (18:44 -0700)
commit16ca3698609cbcaa27863087200e44573dab8e32
treeae496ba03b18260fb059c9443da599168cf67554
parent95c2f4d9c4bf281cc311c3f8affbf9112dd432a5
[PATCH] fix for do_tty_hangup() access of kfreed memory

do_tty_hangup() does fput() on redirect struct file too early -
it could've been the only holder of tty_struct we are working with and in
that case we'll end up freeing it from fput() and then both reading and
modifying kfreed memory.
drivers/char/tty_io.c