Displaying 20 results from an estimated 9000 matches similar to: "[Bug 1467] New: SFTP stalls"
2000 Jul 06
2
2.1.1p2 HP-UX 11 timing error
FYI in order to get 2.1.1p2 to work on my HP-UX 11.0 systems I had to patch
atomicio.c for EWOULDBLOCK (HP read() does not give the POSIX return code).
The new atomicio() is a clean fix for this timing problem; all it needs now
is this one little tweak.
Also had the "General Commercial Security" error (PAM_TERM_ERROR from
pam_acct_mgmt()) which I have very crudely addressed for now by
2012 May 23
4
Possible error restoring machine
I noted a possible problem restoring a machine.
In xc_domain_restore (xc_domain_restore.c) if it''s not the last
checkpoint we set O_NONBLOCK flag (search for fcntl) that we can call
pagebuf_get or just load other pages (see following "goto loadpages;"
line).
Now we could ending up calling xc_tmem_restore/xc_tmem_restore_extra
(xc_tmem.c) which call read_extract (xc_private.c)
2019 Sep 15
4
ssh client is setting O_NONBLOCK on a pipe shared with other processes
The quick summary is that we invoke git from a parallel invocation of
"make".  Git invokes ssh to pull stuff from a remote repo. Ssh sets
O_NONBLOCK on stdout and stderr if they do not refer to a tty. During
our build, stderr refers to a pipe that other jobs run by make (and
make itself) may also write to, and since this is a parallel build,
they may write to that pipe while ssh has it
2013 Nov 29
2
nsd 4.0 EAGAIN loop in sendmmsg(2)
On NetBSD 6.99.28-CURRENT, nsd 3.2.16 works fine, however nsd 4.0.0 is
spinning chewing CPU.  The logs show:
Nov 28 23:07:00 xxx nsd[466]: sendmmsg failed: Resource temporarily
unavailable
ktruss shows it getting EAGAIN from sendmmsg(2) over and over again.
 According to the man page:
     [EAGAIN|EWOULDBLOCK]
                        The socket is marked non-blocking and the requested
         
2019 Sep 16
2
ssh client is setting O_NONBLOCK on a pipe shared with other processes
> So the make process gets an EAGAIN on the write syscall and doesn't
> retry?  That sounds like a bug in whatever make you're using, since
> that could potentially occur in other circumstances too.
What other circumstances?  EAGAIN means that something put the
device into non-blocking mode, and normally, that should only happen
if the program calling write had itself previously
2024 Jun 01
1
OpenSSH server doesn't log client disconnect without SSH_MSG_DISCONNECT
On Fri, 31 May 2024, Opty wrote:
> > 9.3p2, 64-bit Slackware 15.0 package which uses two patches but they
> > look LogLevel-safe to me, you can check at
> > http://ftp.slackware.com/pub/slackware/slackware64-15.0/patches/source/openssh/
> 
> 9.7p1 built from source without TCP wrappers and still no 'Connection
> closed' at 'LogLevel INFO'.
You might be
2019 Jun 09
2
[PATCH libnbd] states: In recv_into_rbuf and send_from_wbuf loop until EAGAIN.
I thought this should produce a fairly dramatic performance gain.  In
fact I couldn't measure any performance difference at all.  I think
what's happening is we're actually paying an extra syscall (to
discover the socket would block) and then doing the poll anyway.
So I don't know if it's worth having this patch.  It could be argued
that it makes the code shorter (therefore
2008 Jul 06
11
OpenSSH 5.1: call for testing
Hi,
OpenSSH 5.1 is almost ready for release, so we would appreciate testing
on as many platforms and systems as possible. This release is one of
the biggest in recent years, with two hackathons' worth of improvements
and fixes for some of our most recalcitrant bugs.
Snapshot releases for portable OpenSSH are available from
http://www.mindrot.org/openssh_snap/ 
The OpenBSD version is
2019 Jun 09
1
Re: [PATCH libnbd 2/3] states: Add handle h->wflags field.
There's an obvious bug in this patch in that it doesn't reset the
h->wflags field in all cases.  Updated patch below.
I rechecked the performance measurements and they are the same after
the updated patch.
Rich.
>From 15a687b50acecebcfd3dc6222d93e6df984b83c6 Mon Sep 17 00:00:00 2001
From: "Richard W.M. Jones" <rjones@redhat.com>
Date: Sat, 8 Jun 2019 19:12:22 +0100
2019 Jun 09
0
[PATCH libnbd] states: In recv_into_rbuf and send_from_wbuf loop until EAGAIN.
Previously we performed a single call to recv(2) or send(2) (or the
GnuTLS equivalents), and even if more data/space was immediately
available to receive/send we would return to poll.  Instead of this,
loop until the socket returns EAGAIN.
---
 generator/states.c | 91 ++++++++++++++++++++++------------------------
 1 file changed, 43 insertions(+), 48 deletions(-)
diff --git a/generator/states.c
2007 Sep 15
0
PATCH: atomicio doesn't poll()
atomicio contains the following in the read/write loop:
-----
                case -1:
#ifdef EWOULDBLOCK
                        if (errno == EINTR || errno == EWOULDBLOCK)
#else
                        if (errno == EINTR)
#endif
                                continue;
                        if (errno == EAGAIN) {
                                (void)poll(&pfd, 1, -1);
                  
2007 Sep 20
2
[Bug 1366] New: atomicio doesn't poll()
http://bugzilla.mindrot.org/show_bug.cgi?id=1366
           Summary: atomicio doesn't poll()
           Product: Portable OpenSSH
           Version: 4.7p1
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Miscellaneous
        AssignedTo: bitbucket at mindrot.org
        ReportedBy: ben at psc.edu
2019 Jun 08
6
[PATCH libnbd 0/3] states: Use MSG_MORE to coalesce messages.
Appears to have a measurable benefit, see 3/3 for test results.
Rich.
2015 Mar 11
2
Notes on building a gcc toolchain for Rtools (but not multilib)
On 10/03/2015 3:17 PM, Duncan Murdoch wrote:
> On 10/03/2015 2:56 PM, Dan Tenenbaum wrote:
> >
> >
> > ----- Original Message -----
> >> From: "Duncan Murdoch" <murdoch.duncan at gmail.com>
> >> To: "Dan Tenenbaum" <dtenenba at fredhutch.org>
> >> Cc: "Hsiu-Khuern Tang" <tangoh at gmail.com>, r-devel at
2014 Jul 29
2
[Bug 2261] New: configure looks in /usr/local for OpenSSL and zlib, even when --with-ssl-dir and --with-zlib are set
https://bugzilla.mindrot.org/show_bug.cgi?id=2261
            Bug ID: 2261
           Summary: configure looks in /usr/local for OpenSSL and zlib,
                    even when --with-ssl-dir and --with-zlib are set
           Product: Portable OpenSSH
           Version: 6.6p1
          Hardware: Other
                OS: Other
            Status: NEW
          Severity: normal
         
2000 Jun 22
0
Timing bug patch and x509 question.
First the bug:
I've found a timing problem in 2.1.1p1 at the point where the client version
string is read, a core dump with a "Did not receive ident string..." error.
This
problem does not appear to have been mentioned yet in the list archive.
This bug was noted on HP-UX 11.0 but could be a problem on other Unices as
well.
My Q&D fix (patch below) was to spin on EWOULDBLOCK
2019 Jun 08
0
[PATCH libnbd 1/3] lib: socket: Add .send flags parameter.
Add an optional .send method flags parameter.  This parameter may be
ignored by the socket layer.  If used it is intended to add
optimization flags such as MSG_MORE for socket layers which can handle
this.
---
 generator/states.c | 2 +-
 lib/crypto.c       | 2 +-
 lib/internal.h     | 2 +-
 lib/socket.c       | 4 ++--
 4 files changed, 5 insertions(+), 5 deletions(-)
diff --git
2019 Sep 16
2
ssh client is setting O_NONBLOCK on a pipe shared with other processes
> Case in point; EAGAIN can come if you give your fd to another process
> and continue using it yourself.
> Short counts; It is documented behavior that read() and write() may
> return short counts. It is not documented why, so you can not make
> any assumptions.
You might be right about short counts but if you're right about
EAGAIN, there are
bugs everywhere.  My first
2010 Feb 23
2
cygwin + rsync issue under Windows 7 x64
Friends -- I am posting this to both lists since I think
it has to do with some kind of unfortunate interaction.
The latest rsync (3.0.7-1) under an up-to-date cygwin
on Windows 7 x64 gets into some kind of busy wait
situation when transferring large files over ssh.
rsync, ssh, and zip can all be consuming much cpu time.
I downloaded and built rsync 3.0.7 locally, manually
editing config.status
2019 Jun 03
0
[PATCH libnbd discussion only 3/5] lib: Pass handle to socket recv and send calls.
Just a simple refactoring in preparation for forthcoming work.
---
 generator/states-reply.c | 2 +-
 generator/states.c       | 4 ++--
 lib/crypto.c             | 5 +++--
 lib/internal.h           | 6 ++++--
 lib/socket.c             | 5 +++--
 5 files changed, 13 insertions(+), 9 deletions(-)
diff --git a/generator/states-reply.c b/generator/states-reply.c
index 5be3431..f0ef47c 100644
---