From owner-freebsd-stable@FreeBSD.ORG Sun Mar 25 23:08:10 2007 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 37D9E16A403 for ; Sun, 25 Mar 2007 23:08:10 +0000 (UTC) (envelope-from bms@FreeBSD.org) Received: from out5.smtp.messagingengine.com (out5.smtp.messagingengine.com [66.111.4.29]) by mx1.freebsd.org (Postfix) with ESMTP id 10ED713C44B for ; Sun, 25 Mar 2007 23:08:10 +0000 (UTC) (envelope-from bms@FreeBSD.org) Received: from compute1.internal (unknown [10.202.2.41]) by out1.messagingengine.com (Postfix) with ESMTP id 19AC020B09F; Sun, 25 Mar 2007 19:08:09 -0400 (EDT) Received: from heartbeat2.messagingengine.com ([10.202.2.161]) by compute1.internal (MEProxy); Sun, 25 Mar 2007 19:08:10 -0400 X-Sasl-enc: S411BM951PQLepoVFKT1a+FhLYt3K1VC7WSBUvb4MYax 1174864089 Received: from [192.168.123.18] (82-35-112-254.cable.ubr07.dals.blueyonder.co.uk [82.35.112.254]) by mail.messagingengine.com (Postfix) with ESMTP id A0F6710FC9; Sun, 25 Mar 2007 19:08:09 -0400 (EDT) Message-ID: <460700D7.8000908@FreeBSD.org> Date: Mon, 26 Mar 2007 00:08:07 +0100 From: "Bruce M. Simpson" User-Agent: Thunderbird 1.5.0.9 (X11/20070125) MIME-Version: 1.0 To: "Marc G. Fournier" References: <442CBD51B75099133C8A26C5@ganymede.hub.org> In-Reply-To: <442CBD51B75099133C8A26C5@ganymede.hub.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-stable@freebsd.org Subject: Re: socketpair: No buffer space available X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Mar 2007 23:08:10 -0000 Marc G. Fournier wrote: > Mar 20 07:59:26 mars sshd[717]: error: reexec socketpair: No buffer space > available > > > If I have a login session on the machine, I can easily do a reboot of the > machine, and it seems to come up clean every time (ie. no fsck's need to be > run) ... > Does anyone have any ideas of what I can look at? > How odd. The re-exec feature is not documented in the man page. It appears that it can be turned off with the -r switch according to sshd.c. Can you give that a try and see if that offers symptomatic relief? It would be somewhat less secure as sshd will fork rather than fork..exec. The code does indeed appear to use socketpair. FreeBSD implements socketpair as a system call. Only AF_UNIX, SOCK_STREAM sockets are accepted. A quick look in KScope suggests the first place where this can fail with ENOBUFS is soalloc() from socreate(). Is this machine under heavy memory load in any way? soalloc() uses a zone allocator. I'm not sure how to track that from userland, vmstat -m only deals with kernel malloc() stats. BMS