Bug 806862 - connection not closed when really large file is transferred with curl scp protocol
Summary: connection not closed when really large file is transferred with curl scp pro...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: libssh2
Version: 6.2
Hardware: All
OS: Linux
high
medium
Target Milestone: rc
: ---
Assignee: Kamil Dudka
QA Contact: Karel Srot
URL:
Whiteboard:
Depends On: 804145
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-03-26 11:27 UTC by Karel Srot
Modified: 2013-02-21 08:42 UTC (History)
2 users (show)

Fixed In Version: libssh2-1.4.2-1.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-02-21 08:42:52 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2013:0329 0 normal SHIPPED_LIVE libssh2 bug fix and enhancement update 2013-02-20 20:54:28 UTC

Description Karel Srot 2012-03-26 11:27:50 UTC
Description of problem:

When transferring really large files with curl scp:// the connection is not closed. This seems to be related to key re-exchange - bugs 804145, 804145.


Version-Release number of selected component (if applicable):
libssh2-1.2.2-7.el6_2.3

How reproducible:
always for me

Steps to Reproduce:

1. To reproduce use the patch openssh in a way mentioned in Bug 804145#c1. The patch is a bit different for RHEL6.2 openssh and has to be "ported", also you can use >>=10 instead of >>=5 to speed up requests for new key.

2. Prepare ssh keys for current user 
3. Execute patched sshd on a different port (or instead of running sshd)

# /path/to/patched/sshd -p 2048 -f /etc/ssh/sshd_config -d &

4. initialte a download of large file (so the keys are re-exchanged during the download, can be seen in sshd debug messages)

$ curl -v -u username: --key ~/.ssh/id_rsa --pubkey ~/.ssh/id_rsa.pub
scp://127.0.0.1:2048/tmp/file -o /dev/null

The bug can be reproduced when transferring from localhost, not from other host
(for me).

  
Actual results:
connection not closed when the file is transferred

Expected results:
connection is closed

Additional info:

Comment 1 Karel Srot 2012-03-26 11:38:19 UTC
without the patched openssh, I believe the bug might appear when transferring files much larger > 64 GB. Doesn't occur for smaller files.

Comment 2 Kamil Dudka 2012-04-02 11:28:25 UTC
upstream commit:

http://git.libssh2.org/?p=libssh2.git;a=commitdiff;h=03ca902

Comment 3 Karel Srot 2012-04-02 12:57:34 UTC
fixing the typo in bz summary.

Comment 4 Kamil Dudka 2012-04-04 11:25:34 UTC
This thread seems to be also related:

http://thread.gmane.org/gmane.network.ssh.libssh2.devel/5699/focus=5701

Comment 6 RHEL Program Management 2012-09-12 12:41:11 UTC
This request was evaluated by Red Hat Product Management for
inclusion in a Red Hat Enterprise Linux release.  Product
Management has requested further review of this request by
Red Hat Engineering, for potential inclusion in a Red Hat
Enterprise Linux release for currently deployed products.
This request is not yet committed for inclusion in a release.

Comment 12 errata-xmlrpc 2013-02-21 08:42:52 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2013-0329.html


Note You need to log in before you can comment on or make changes to this bug.