Mailing List Archive

[Bug 1528] New: sshd hangs when pasting more than 2k of text
https://bugzilla.mindrot.org/show_bug.cgi?id=1528

Summary: sshd hangs when pasting more than 2k of text
Product: Portable OpenSSH
Version: 5.1p1
Platform: Sparc
OS/Version: Solaris
Status: NEW
Severity: normal
Priority: P2
Component: sshd
AssignedTo: unassigned-bugs@mindrot.org
ReportedBy: doke@udel.edu


Created an attachment (id=1570)
--> (http://bugzilla.mindrot.org/attachment.cgi?id=1570)
patch for channels.c

On Solaris 9 and 10, on both sparc and i86pc, sshd hangs on an ioctl
TCGETS call after a large write to the pty. Where large is anything
over about 2k. So pasting 100 or so lines of text into vi will hang
the session.

The cause is the tcgetattr call on line 1606 of channels.c provoking a
solaris bug. It hangs forever after a large write to the pty. The
workaround is to not make the call, assume the terminal is
not echoing, and always send the random data packet.

--
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
_______________________________________________
openssh-bugs mailing list
openssh-bugs@mindrot.org
https://lists.mindrot.org/mailman/listinfo/openssh-bugs