+13
−3
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
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 d2b6f447 ("n_tty: Fix signal handling flushes")
Reported-by:
Filipe Brandenburger <filbranden@google.com>
Signed-off-by:
Peter Hurley <peter@hurleysoftware.com>
Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org>