]> git.baikalelectronics.ru Git - kernel.git/commit
tty: Fix unsafe vt paste_selection()
authorPeter Hurley <peter@hurleysoftware.com>
Sat, 15 Jun 2013 13:36:15 +0000 (09:36 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 23 Jul 2013 23:47:10 +0000 (16:47 -0700)
commit38e555aee53d9c5e5a045d435a0ad9ee2570b0d9
tree328d40837fb13c7856d3aae2be663093fa6278e0
parent75140edcc9ae297b1f76f3debfc82038a3144142
tty: Fix unsafe vt paste_selection()

Convert the tty_buffer_flush() exclusion mechanism to a
public interface - tty_buffer_lock/unlock_exclusive() - and use
the interface to safely write the paste selection to the line
discipline.

Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/tty_buffer.c
drivers/tty/vt/selection.c
include/linux/tty.h
include/linux/tty_flip.h