aboutsummaryrefslogtreecommitdiffstats
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorPeter Hurley <[email protected]>2015-06-27 13:21:32 +0000
committerGreg Kroah-Hartman <[email protected]>2015-07-23 22:05:53 +0000
commit3b19e032295647b7be2aa3be62510db4aaeda759 (patch)
tree42d49b560e263749594dd73e5b149460bdad3dfd /net/switchdev/switchdev.c
parentLinux 4.2-rc3 (diff)
downloadkernel-3b19e032295647b7be2aa3be62510db4aaeda759.tar.gz
kernel-3b19e032295647b7be2aa3be62510db4aaeda759.zip
n_tty: signal and flush atomically
When handling signalling char, claim the termios write lock before signalling waiting readers and writers to prevent further i/o before flushing the echo and output buffers. This prevents a userspace signal handler which may output from racing the terminal flush. Reference: Bugzilla #99351 ("Output truncated in ssh session after...") Fixes: commit d2b6f44779d3 ("n_tty: Fix signal handling flushes") Reported-by: Filipe Brandenburger <[email protected]> Signed-off-by: Peter Hurley <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions