Bug#411397: openssh-server: SFTP keeps reading input until it runs out of buffer space

View: New views
2 Messages — Rating Filter:   Alert me  

Bug#411397: openssh-server: SFTP keeps reading input until it runs out of buffer space

by Thue Janus Kristensen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Package: openssh-server
Severity: normal


As described in bug #365541, SFTP-server will happily keep reading
input until it runs out of buffer space, instead of throtling
reads. This causes for example dds into a sshfs-mounted directory to
fail in some case.

I have submitted a patch to the openssh project, at http://bugzilla.mindrot.org/show_bug.cgi?id=1286 .

Regards, Thue

-- System Information:
Debian Release: 4.0
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.20
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)



--
To UNSUBSCRIBE, email to debian-ssh-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Bug#411397: marked as done (openssh-server: SFTP keeps reading input until it runs out of buffer space)

by Debian Bug Tracking System :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Your message dated Tue, 22 Jul 2008 18:28:57 +0100
with message-id <20080722172857.GA17252@...>
and subject line Re: Bug#411397: openssh-server: SFTP keeps reading input until it runs out of buffer space
has caused the Debian Bug report #411397,
regarding openssh-server: SFTP keeps reading input until it runs out of buffer space
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@...
immediately.)


--
411397: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=411397
Debian Bug Tracking System
Contact owner@... with problems

Package: openssh-server
Severity: normal


As described in bug #365541, SFTP-server will happily keep reading
input until it runs out of buffer space, instead of throtling
reads. This causes for example dds into a sshfs-mounted directory to
fail in some case.

I have submitted a patch to the openssh project, at http://bugzilla.mindrot.org/show_bug.cgi?id=1286 .

Regards, Thue

-- System Information:
Debian Release: 4.0
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.20
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)


Source: openssh
Source-Version: 1:4.7p1-1

On Sun, Feb 18, 2007 at 06:57:17PM +0100, Thue Janus Kristensen wrote:
> As described in bug #365541, SFTP-server will happily keep reading
> input until it runs out of buffer space, instead of throtling
> reads. This causes for example dds into a sshfs-mounted directory to
> fail in some case.
>
> I have submitted a patch to the openssh project, at http://bugzilla.mindrot.org/show_bug.cgi?id=1286 .

Thanks for sending your patch upstream. I see that this was applied in
OpenSSH 4.7p1 but I forgot to close this bug (only the duplicate
#365541), so I'm closing it now.

revision 1.84
date: 2007/05/20 05:09:05;  author: dtucker;  state: Exp;  lines: +19 -6
   - djm@... 2007/05/17 07:55:29
     [sftp-server.c]
     bz#1286 stop reading and processing commands when input or output buffer
     is nearly full, otherwise sftp-server would happily try to grow the
     input/output buffers past the maximum supported by the buffer API and
     promptly fatal()
     based on patch from Thue Janus Kristensen; feedback & ok dtucker@

--
Colin Watson                                       [cjwatson@...]

LightInTheBox - Buy quality products at wholesale price