search for: mm_receive_fd

Displaying 20 results from an estimated 34 matches for "mm_receive_fd".

2003 Apr 19
4
[Bug 544] sshd w/privsep fails on Linux 2.0, mm_receive_fd: expected type 1 got 1074276337
http://bugzilla.mindrot.org/show_bug.cgi?id=544 Summary: sshd w/privsep fails on Linux 2.0, mm_receive_fd: expected type 1 got 1074276337 Product: Portable OpenSSH Version: -current Platform: ix86 OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: sshd AssignedTo: openssh-uni...
2002 Jun 25
0
Privilege separation and linux kernel 2.0.x: mm_receive_fd fails
FWIW, after patching the mmap issue, openssh still doesn't work on linux kernel 2.0.39 (+ patches): sshd[22202]: fatal: mm_receive_fd: expected type 1 got 2355841 I didn't dig deeper into it yet, but I believe 2.0 kernel does not support the kind of recvmsg() use privsep expects. -- v -- v at iki.fi
2002 Jun 26
2
Problem with openssh on linux 2.0.34 mips
...m. First I was not able to compile it at all, but then I added the following line to monitor_fdpass.c #define SCM_RIGHTS 0x01 Then it compiled fine, but I am not able to log in. After having entered the password I get the following message in the logfile: Jun 25 20:25:46 raq2 sshd[16129]: fatal: mm_receive_fd: expected type 1 got 269726544 Can anybody guess what that means or has somebody got openssh running on such an old system on similar hardware? Compression is turned off. Are there any configuration options I should try?
2002 Jul 01
5
[Bug 327] monitor_fdpass.c: Expected 1 got 1075033556 - Privilege Separation
http://bugzilla.mindrot.org/show_bug.cgi?id=327 ------- Additional Comments From jmknoble at pobox.com 2002-07-02 04:11 ------- Could you please check the error message again? Is it: mm_receive_fd: recvmsg: expected received 1 got nnnnnnnn or is it this: mm_receive_fd: expected type 1 got nnnnnnnn ? Those are two different problems, within a few lines of each other. The exact text of the error message is important. ------- You are receiving this mail because: ------- You are the as...
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
2002 Jun 25
1
privsep on SCO Openserver
Has anyone got privsep to work under SCO Openserver? I am testing openssh3.3p1. I have Compression turned off in sshd_config. Here is the error messages that I am getting. sshd[21469]: fatal: mm_send_fd: sendmsg(3): Bad file number sshd[21476]: fatal: mm_receive_fd: recvmsg: expected received 1 got 0 --Sam
2003 Dec 22
1
(no subject)
...for openssh-3.7.1p2 (Help!) Downloads for openssh-3.7.1p2 (Help!) I am using /usr/local/sbin/sshd -d -d -d to get the debugging info. I get the following error after sshd accepts my password during ssh session. This error happens when I use both putty and gnu ssh from my PC to the HPUX box. mm_receive_fd: expected type 1 got 2138968328 This is a fatal and everything shuts down. What have I done wrong, and any clues how to fix this? Thank you, Terry Buckley Software - Contractor B. Braun Medical Inc. HC-RD-US03 Phone: 972-245-2243 x485 FAX: 972-245-1612 MAIL: Terry.Buckley at bbraun.com The i...
2006 May 15
0
[PATCH 1/12] bug fix: openssh-4.3p2 memory leak
...ie/clientloop.c 2006-05-04 10:36:49.000000000 -0500 @@ -833,6 +833,8 @@ client_process_control(fd_set * readset) debug2("%s: accepted tty %d, subsys %d, cmd %s", __func__, cctx->want_tty, cctx->want_subsys, cmd); + xfree(cmd); + /* Gather fds from client */ new_fd[0] = mm_receive_fd(client_fd); new_fd[1] = mm_receive_fd(client_fd);
2008 Jul 29
1
Question regarding alignment patch
Contrast http://cvsweb.mindrot.org/index.cgi/openssh/monitor_fdpass.c?r1=1.23;r2=1.24 with http://www.openbsd.org/cgi-bin/cvsweb/src/usr.bin/ssh/monitor_fdpass.c.diff?r1=1.14&r2=1.15 The original replaces cmsgbuf.tmp with cmsgbuf.buf, while the -portable version *adds* cmsgbuf.buf but retains cmsgbuf.tmp. I assume this was an oversight, and cmsgbuf.tmp should be removed? DES -- Dag-Erling
2008 Feb 20
1
alignment problem in monitor_fdpass.c
...ing -O2 to using -O on their ARM port, I found that sshd stopped working. (gcc version 4.2.1 20070719 [FreeBSD]) I have downloaded openssh-SNAP-20080220.tar.gz and the code still look the same. Anyway looking into it, I found that the problem is in monitor_fdpass.c in the functions mm_send_fd and mm_receive_fd. Using -O2 used to align the tmp array on a 4 byte boundary and using -O does not. On architectures that do not like unaligned accesses this will break. An extraction of mm_send_fd() look something like this: ############################## struct msghdr msg; char tmp[CMSG_SPACE(sizeof(int))]; str...
2002 Jun 27
3
OpenSSH 3.4p1 - compilation problem on Linux
...bsd-compat -lbsd -lz -lcrypto ./libssh.a(monitor_fdpass.o): In function `mm_send_fd': /tools/openssh-3.4p1/monitor_fdpass.c:54: undefined reference to `CMSG_FIRSTHDR' /tools/openssh-3.4p1/monitor_fdpass.c:58: undefined reference to `CMSG_DATA' ./libssh.a(monitor_fdpass.o): In function `mm_receive_fd': /tools/openssh-3.4p1/monitor_fdpass.c:114: undefined reference to `CMSG_FIRSTHDR' /tools/openssh-3.4p1/monitor_fdpass.c:118: undefined reference to `CMSG_DATA' collect2: ld returned 1 exit status make: *** [ssh] Error 1 Really don't know where the problem could be. Some info abo...
2019 Jun 27
2
Does ssh need sendfd in pledge() call?
...annel 1: alive check debug3: mux_client_request_alive: done pid = 806 debug3: mux_master_read_cb: channel 1 packet type 0x10000002 len 57 debug2: mux_master_process_new_session: channel 1: request tty 1, X 0, agent 0, subsys 0, term "rxvt-unicode-256color", cmd "", env 0 debug3: mm_receive_fd: recvmsg: Resource temporarily unavailable mm_receive_fd: recvmsg: expected received 1 got 0 mux_master_process_new_session: failed to receive fd 0 from slave debug1: channel 1: mux_rcb failed debug2: channel 1: zombie debug2: channel 1: gc: notify user debug3: mux_master_control_cleanup_cb: enteri...
2005 Sep 07
4
[Bug 1080] 4.1p1 to 4.2p1 broke UsePrivilegeSeparation on HPUX
...ir=/etc/ssh \ --with-ssl-dir=/opt/openssl --with-zlib \ --without-rsh --with-pam --with-privsep-user=ssh \ --with-tcp-wrappers --with-ipv4-default >& configure.out If UsePrivilegeSeparation=yes in sshd.config, then ssh connections fail with the syslog message: fatal: mm_receive_fd: recvmsg: expected received 1 got 0 The only way 4.2p1 will work on HPUX 11.11 is to set UsePrivilegeSeparation=no, which I view as a security hazard and will not do. UsePrivilegeSeparation=yes worked correctly with 4.1p1. ------- You are receiving this mail because: ------- You are the assign...
2002 May 29
2
OpenSSH 3.2.3p1 won't compile under IRIX 6.5.14
...monitor_fdpass.c monitor_fdpass.c: In function `mm_send_fd': monitor_fdpass.c:58: `SCM_RIGHTS' undeclared (first use in this function) monitor_fdpass.c:58: (Each undeclared identifier is reported only once monitor_fdpass.c:58: for each function it appears in.) monitor_fdpass.c: In function `mm_receive_fd': monitor_fdpass.c:117: `SCM_RIGHTS' undeclared (first use in this function) make: *** [monitor_fdpass.o] Error 1 Dave Foster =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= David Foster National Center for Microscopy and Imaging Research Programmer/Analy...
2002 Jun 14
0
[Bug 276] New: openssh-3.2.3p1 does not compile on IRIX - SCM_RIGHTS undefined
...monitor_fdpass.c monitor_fdpass.c: In function `mm_send_fd': monitor_fdpass.c:58: `SCM_RIGHTS' undeclared (first use in this function) monitor_fdpass.c:58: (Each undeclared identifier is reported only once monitor_fdpass.c:58: for each function it appears in.) monitor_fdpass.c: In function `mm_receive_fd': monitor_fdpass.c:117: `SCM_RIGHTS' undeclared (first use in this function) *** Error code 1 (bu21) % ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
2002 Jun 24
0
recvmsg gives unexpected type
Hi, I'm getting the following in my server log when I try to connect. to openssh-3.3p1 on linux 2.0.36 Jun 23 22:53:49 bart sshd[10702]: Accepted password for steve from 10.0.0.240 port 3867 ssh2 Jun 23 22:53:49 bart sshd[10704]: fatal: mm_receive_fd: expected type 1 got 1074202577 Sorry if this came up already, but the search engine seemed to ignore underscores and all the matches matched receive. Other search matches did not come up with anything recent. A log of ssh -v is located at: http://steveredlich.com/ssh.txt It seemed rather long,...
2002 Jun 25
0
make fails during linking
...-lcrypto ./libssh.a(monitor_fdpass.o): In function `mm_send_fd': /home/oliver/test/openssh-3.3p1/monitor_fdpass.c:54: undefined reference to `CMSG_FIRSTHDR' /home/oliver/test/openssh-3.3p1/monitor_fdpass.c:58: undefined reference to `CMSG_DATA' ./libssh.a(monitor_fdpass.o): In function `mm_receive_fd': /home/oliver/test/openssh-3.3p1/monitor_fdpass.c:114: undefined reference to `CMSG_FIRSTHDR' /home/oliver/test/openssh-3.3p1/monitor_fdpass.c:118: undefined reference to `CMSG_DATA' make: *** [ssh] Error 1 The SSL libraries and includes are installed in /usr/local/ssl tree. What is...
2002 Jun 27
0
[Bug 311] New: Compile fails on MIPS Linux (Cobalt Raq2) - SCM_RIGHTS undeclared
...c monitor_fdpass.c monitor_fdpass.c: In function `mm_send_fd': monitor_fdpass.c:57: `SCM_RIGHTS' undeclared (first use this function) monitor_fdpass.c:57: (Each undeclared identifier is reported only once monitor_fdpass.c:57: for each function it appears in.) monitor_fdpass.c: In function `mm_receive_fd': monitor_fdpass.c:115: `SCM_RIGHTS' undeclared (first use this function) make: *** [monitor_fdpass.o] Error 1 ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
2002 Jul 04
0
[Bug 336] New: ssh does not compile on Linux with libc5 and 2.0 kernel
...ned references: ./libssh.a(monitor_fdpass.o): In function `mm_send_fd': /Packages/ssh/openssh-3.4p1/monitor_fdpass.c:54: undefined reference to `CMSG_FIRSTHDR' /Packages/ssh/openssh-3.4p1/monitor_fdpass.c:58: undefined reference to `CMSG_DATA' ./libssh.a(monitor_fdpass.o): In function `mm_receive_fd': /Packages/ssh/openssh-3.4p1/monitor_fdpass.c:114: undefined reference to `CMSG_FIRSTHDR' /Packages/ssh/openssh-3.4p1/monitor_fdpass.c:118: undefined reference to `CMSG_DATA' make: *** [ssh] Error 1 Commenting out the line /* #define HAVE_CONTROL_IN_MSGHDR 1 */ results in a working...
2004 Jul 18
0
HPUX and privsep
Subject: HPUX and privsep Anyone solved or see the same connection I do with these two issues on HPUX if Privilege Separation is turned off ? Logname not found (3.7.1p2, 3.8.1p1) Login prematurely quits during session setup (mm_send_fd: sendmsg(3): Bad file number | mm_receive_fd: recvmsg: expected received 1 got 0) (3.8.1p1) Seems the mm_xxxx_() functions arent called when PrivSep is off. The utmpx line field isnt filled in correctly (loginrec.c:line_abbrevname() - easy to fix) but doenst seem to affect these problems. This was found on HP's site with no solution :...