From owner-cvs-all Fri Mar 9 10:26: 0 2001 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id C4EF937B719; Fri, 9 Mar 2001 10:25:55 -0800 (PST) (envelope-from iedowse@FreeBSD.org) Received: (from iedowse@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f29IPtd48173; Fri, 9 Mar 2001 10:25:55 -0800 (PST) (envelope-from iedowse) Message-Id: <200103091825.f29IPtd48173@freefall.freebsd.org> From: Ian Dowse Date: Fri, 9 Mar 2001 10:25:55 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/vm vm_map.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG iedowse 2001/03/09 10:25:55 PST Modified files: sys/vm vm_map.c Log: When creating a shadow vm_object in vmspace_fork(), only one reference count was transferred to the new object, but both the new and the old map entries had pointers to the new object. Correct this by transferring the second reference. This fixes a panic that can occur when mmap(2) is used with the MAP_INHERIT flag. PR: i386/25603 Reviewed by: dillon, alc Revision Changes Path 1.195 +5 -1 src/sys/vm/vm_map.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message