NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: bin/38396: sshd does not work



On Apr 13,  1:55pm, ad%netbsd.org@localhost (Andrew Doran) wrote:
-- Subject: Re: bin/38396: sshd does not work

|  http://www.openbsd.org/cgi-bin/cvsweb/src/usr.bin/ssh/monitor_fdpass.c
|  http://www.openbsd.org/cgi-bin/cvsweb/src/sys/kern/uipc_usrreq.c
|  
|  >                 char buf[CMSG_SPACE(sizeof(int))];
|  
|  Hmm, CMSG_SPACE() isn't constant on NetBSD as far as I can tell. Naively we
|  could do this, but I haven't read enough of the surrounding code yet to know
|  if its safe.
|  
|     1021      /* Sanity check the control message header. */
|     1022      if (cm->cmsg_type != SCM_RIGHTS || cm->cmsg_level != SOL_SOCKET 
||
|     1023          cm->cmsg_len > control->m_len)
|     1024              return (EINVAL);
|  
|  Andrew

Something is seriously wrong with amd64 recent kernels. I can get them to
crash with any network activity including ftp. I've also have not upgraded
ssh, just the kernel (I am now running current/generic) and it is still
easy to kill it by transferring a large file either via ftp or scp. Looks
like something is wrong and I am running out of kstack, or kstack gets
corrupted. Most of the time, the machine just freezes.

christos


Home | Main Index | Thread Index | Old Index