From owner-freebsd-fs@FreeBSD.ORG Sun Sep 26 10:39:30 2010 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A13781065670 for ; Sun, 26 Sep 2010 10:39:30 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: from mail.garage.freebsd.pl (60.wheelsystems.com [83.12.187.60]) by mx1.freebsd.org (Postfix) with ESMTP id 4E8918FC21 for ; Sun, 26 Sep 2010 10:39:24 +0000 (UTC) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id E827D45C98; Sun, 26 Sep 2010 12:39:21 +0200 (CEST) Received: from localhost (chello089077043238.chello.pl [89.77.43.238]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id 1D10945C99; Sun, 26 Sep 2010 12:39:17 +0200 (CEST) Date: Sun, 26 Sep 2010 12:38:56 +0200 From: Pawel Jakub Dawidek To: Mikolaj Golub Message-ID: <20100926103856.GI47356@garage.freebsd.pl> References: <86mxr7x0ih.fsf@kopusha.home.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="1X+6QtwRodzgDPAC" Content-Disposition: inline In-Reply-To: <86mxr7x0ih.fsf@kopusha.home.net> User-Agent: Mutt/1.4.2.3i X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 9.0-CURRENT amd64 X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail.garage.freebsd.pl X-Spam-Level: X-Spam-Status: No, score=-0.6 required=4.5 tests=BAYES_00,RCVD_IN_SORBS_DUL autolearn=no version=3.0.4 Cc: freebsd-fs@freebsd.org Subject: Re: hastd: memory leaks if fork() fails X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Sep 2010 10:39:30 -0000 --1X+6QtwRodzgDPAC Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Sep 24, 2010 at 06:51:02AM +0300, Mikolaj Golub wrote: > Hi, >=20 > Although it is rather unlikely situation but anyway :-) >=20 > If fork() fails in hook_execv() hastd leaks some bytes referred by hp. Se= e the > attached patch. Committed, thanks! --=20 Pawel Jakub Dawidek http://www.wheelsystems.com pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --1X+6QtwRodzgDPAC Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (FreeBSD) iEYEARECAAYFAkyfIsAACgkQForvXbEpPzS4lACeMynn016Q0+1nGpUtgA6j1sKe aUUAn3C+MQo2jk8fafYvIy64F9SR1xZ2 =BDnp -----END PGP SIGNATURE----- --1X+6QtwRodzgDPAC--