Received: by mail.netbsd.org (Postfix, from userid 605) id F2CA914A21E; Wed, 22 Feb 2012 18:43:38 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id B27AA14A21A for ; Wed, 22 Feb 2012 18:43:37 +0000 (UTC) X-Virus-Scanned: amavisd-new at NetBSD.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.NetBSD.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id UDw-NLEID4-J for ; Wed, 22 Feb 2012 18:43:36 +0000 (UTC) Received: from cvs.netbsd.org (cvs.NetBSD.org [IPv6:2001:4f8:3:7:2e0:81ff:fe30:95bd]) by mail.netbsd.org (Postfix) with ESMTP id BB5F714A217 for ; Wed, 22 Feb 2012 18:43:36 +0000 (UTC) Received: by cvs.netbsd.org (Postfix, from userid 500) id 6CF16175DD; Wed, 22 Feb 2012 18:43:36 +0000 (UTC) MIME-Version: 1.0 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Date: Wed, 22 Feb 2012 18:43:36 +0000 From: "Jeff Rizzo" Subject: CVS commit: [netbsd-6] src/sys/kern To: source-changes@NetBSD.org X-Mailer: log_accum Message-Id: <20120222184336.6CF16175DD@cvs.netbsd.org> Sender: source-changes-owner@NetBSD.org List-Id: source-changes.NetBSD.org Precedence: bulk Reply-To: source-changes-d@NetBSD.org Mail-Reply-To: "Jeff Rizzo" Mail-Followup-To: source-changes-d@NetBSD.org Module Name: src Committed By: riz Date: Wed Feb 22 18:43:35 UTC 2012 Modified Files: src/sys/kern [netbsd-6]: kern_exec.c Log Message: Pull up following revision(s) (requested by martin in ticket #17): sys/kern/kern_exec.c: revision 1.342 sys/kern/kern_exec.c: revision 1.343 sys/kern/kern_exec.c: revision 1.344 Posix spawn fixes: - split the file actions allocation and freeing into separate functions - use pnbuf - don't play games with pointers (partially freeing stuff etc), only check fa and sa and free as needed using the same code. - use copyinstr properly - KM_SLEEP allocation can't fail - if path allocation failed midway, we would be possibily freeing userland strings. - use sizeof(*var) instead sizeof(type) fix fae free'ing, from enami. keep track of the original array length so we can pass it to kmem_free, from enami To generate a diff of this commit: cvs rdiff -u -r1.339.2.1 -r1.339.2.2 src/sys/kern/kern_exec.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.