aboutsummaryrefslogtreecommitdiffstats
path: root/fs/jbd/commit.c
diff options
context:
space:
mode:
authorPaul Fulghum <[email protected]>2006-02-14 21:53:00 +0000
committerLinus Torvalds <[email protected]>2006-02-15 00:09:33 +0000
commitda965822abd18a17d7cffe1d511f48951c82dfb6 (patch)
treeb5a64fd33374661dbc689d3192a5c9134b3672e5 /fs/jbd/commit.c
parent[PATCH] compound page: no access_process_vm check (diff)
downloadkernel-da965822abd18a17d7cffe1d511f48951c82dfb6.tar.gz
kernel-da965822abd18a17d7cffe1d511f48951c82dfb6.zip
[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 <[email protected]> Cc: Alan Cox <[email protected]> Cc: Jesper Juhl <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'fs/jbd/commit.c')
0 files changed, 0 insertions, 0 deletions