NetBSD Problem Report #50480
From dholland@netbsd.org Thu Nov 26 23:10:30 2015
Return-Path: <dholland@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
by mollari.NetBSD.org (Postfix) with ESMTPS id 7F1FBA64EF
for <gnats-bugs@gnats.NetBSD.org>; Thu, 26 Nov 2015 23:10:30 +0000 (UTC)
Message-Id: <20151126231030.46B4114A257@mail.netbsd.org>
Date: Thu, 26 Nov 2015 23:10:30 +0000 (UTC)
From: dholland@netbsd.org
Reply-To: dholland@netbsd.org
To: gnats-bugs@gnats.NetBSD.org
Subject: posix_spawn vs. fork code duplication
X-Send-Pr-Version: 3.95
>Number: 50480
>Category: kern
>Synopsis: posix_spawn vs. fork code duplication
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: kern-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Nov 26 23:15:00 +0000 2015
>Originator: David A. Holland
>Release: NetBSD 7.99.21 (20151118)
>Organization:
>Environment:
System: NetBSD valkyrie 7.99.1 NetBSD 7.99.1 (VALKYRIE) #17: Wed Oct 14 03:21:03 EDT 2015 dholland@valkyrie:/usr/src/sys/arch/amd64/compile/VALKYRIE amd64
Architecture: x86_64
Machine: amd64
>Description:
Most of the process-copying logic in fork is cutpasted into
posix_spawn. Except the posix_spawn copy isn't the same because
posix_spawn doesn't support (or have any reason to support) clone().
This is an obvious long-term hazard.
>How-To-Repeat:
code reading
>Fix:
one of those fun source reorgs
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.