From owner-freebsd-stable@FreeBSD.ORG Mon Feb 9 21:48:29 2009 Return-Path: Delivered-To: stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0BAB71065680 for ; Mon, 9 Feb 2009 21:48:29 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.terabit.net.ua (mail.terabit.net.ua [195.137.202.147]) by mx1.freebsd.org (Postfix) with ESMTP id A51038FC1C for ; Mon, 9 Feb 2009 21:48:28 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from skuns.zoral.com.ua ([91.193.166.194] helo=mail.zoral.com.ua) by mail.terabit.net.ua with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63 (FreeBSD)) (envelope-from ) id 1LWdzO-000A2O-AU; Mon, 09 Feb 2009 23:48:26 +0200 Received: from deviant.kiev.zoral.com.ua (root@deviant.kiev.zoral.com.ua [10.1.1.148]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id n19LmNSB005161 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 9 Feb 2009 23:48:23 +0200 (EET) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.3/8.14.3) with ESMTP id n19LmNeJ089379; Mon, 9 Feb 2009 23:48:23 +0200 (EET) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.3/8.14.3/Submit) id n19LmMiV089378; Mon, 9 Feb 2009 23:48:22 +0200 (EET) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Mon, 9 Feb 2009 23:48:22 +0200 From: Kostik Belousov To: Eugene Grosbein Message-ID: <20090209214822.GH9427@deviant.kiev.zoral.com.ua> References: <498FAA2A.7423AC15@kuzbass.ru> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="vhOf6eAHdfH9MSjZ" Content-Disposition: inline In-Reply-To: <498FAA2A.7423AC15@kuzbass.ru> User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: ClamAV version 0.94.2, clamav-milter version 0.94.2 on skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua X-Virus-Scanned: mail.terabit.net.ua 1LWdzO-000A2O-AU 871f9b96e060e999738347688a943c59 X-Terabit: YES Cc: stable@freebsd.org Subject: Re: sysctl lock in RELENG_6 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: Mon, 09 Feb 2009 21:48:29 -0000 --vhOf6eAHdfH9MSjZ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Feb 09, 2009 at 10:59:38AM +0700, Eugene Grosbein wrote: > Hi! >=20 > I've RELENG_6 system controlling local PBX through RS-232 port, sio(4). > It also runs syslogd, cron, sshd, bsnmpd and sendmail for outgoing report= s. >=20 > It locks very often: it answers to pings but PBX controlling software sto= ps > responding, local and remote login attempts hang due to 'login' process > stuck in 'sysctl lock' state. Local consoles do switch with 'Alt-Fn' > and DDB works. It shows that sendmail is in 'sysctl lock' state too. >=20 > This is NanoBSD installation running from IDE flash, it's swapless > but I think I could manage to obtain crashdump if there is an interest of= it. >=20 > I've digged commit logs a bit and found this change MFC'd to RELENG_7 > but not RELENG_6: >=20 > http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/kern/kern_sysctl.c#rev1.177= .6.2 >=20 > It seems RELENG_6 needs this too, doesn't it? > I'm going to merge the change to RELENG_6 and give it a try. Yes, please give it a try. In fact, it was quite specific situation that I observed and produced a fix for. You need execing process that needs to grab Giant, e.g. due to image being located on !MPSAFE fs, and simultaneous sysctl issued that inspects this process. --vhOf6eAHdfH9MSjZ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEARECAAYFAkmQpKUACgkQC3+MBN1Mb4jrgACgn3DM3+XBG4zIwdcBmkev1tqA XVEAmwc917IvUzsTVMl9Kt4jypzRy+WN =EZ/K -----END PGP SIGNATURE----- --vhOf6eAHdfH9MSjZ--