From owner-freebsd-hackers@FreeBSD.ORG Mon Jul 21 15:47:20 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E477A37B404 for ; Mon, 21 Jul 2003 15:47:19 -0700 (PDT) Received: from milla.ask33.net (milla.ask33.net [217.197.166.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8381343FBF for ; Mon, 21 Jul 2003 15:47:18 -0700 (PDT) (envelope-from nick@milla.ask33.net) Received: by milla.ask33.net (Postfix, from userid 1001) id B75F63ABB51; Tue, 22 Jul 2003 00:47:36 +0200 (CEST) Date: Tue, 22 Jul 2003 00:47:36 +0200 From: Pawel Jakub Dawidek To: Bruce M Simpson , Matthew Dillon , freebsd-hackers@freebsd.org Message-ID: <20030721224736.GE43543@garage.freebsd.pl> References: <20030720235759.GJ437@garage.freebsd.pl> <20030721181805.GA43543@garage.freebsd.pl> <200307211903.h6LJ3xrX027536@apollo.backplane.com> <20030721191622.GC43543@garage.freebsd.pl> <20030721195119.GG22295@spc.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="nHwqXXcoX0o6fKCv" Content-Disposition: inline In-Reply-To: <20030721195119.GG22295@spc.org> X-PGP-Key-URL: http://garage.freebsd.pl/jules.asc X-OS: FreeBSD 4.8-RELEASE i386 X-URL: http://garage.freebsd.pl User-Agent: Mutt/1.5.1i Subject: Re: VM problem... X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Jul 2003 22:47:20 -0000 --nHwqXXcoX0o6fKCv Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jul 21, 2003 at 08:51:19PM +0100, Bruce M Simpson wrote: Matt, Bruce, thanks! I've track it down. Yes, those read-only pages was reused. So now I'm putting them on list before syscall is called, and after syscall is executed I free memory for non-execve syscalls and mark entries from list as VM_PROT_ALL for execve(). I'll play in the future with vm_map_delete() maybe those pages are removable in safe way. But why memory allocator, that is responsible for finding pages for stack don't check their permissions? --=20 Pawel Jakub Dawidek pawel@dawidek.net UNIX Systems Programmer/Administrator http://garage.freebsd.pl Am I Evil? Yes, I Am! http://cerber.sourceforge.net --nHwqXXcoX0o6fKCv Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (FreeBSD) iQCVAwUBPxxtiD/PhmMH/Mf1AQFiJwP7Bbr2k8J4pZu8jpd2+pIOfrRICKV3FmhU gh6Goo0q6iLItIddp3vtdHZhTI0bDdZXf1hI4KDLWobWYvpSWS6doISoMd7njlKz Le5GWjQCCsEgHYas68q6s9mntN6A8hyIZY5qqAL5fVClpfdTzuJcTRgBVyGyHeM8 b5pEcNwtY0s= =XdRc -----END PGP SIGNATURE----- --nHwqXXcoX0o6fKCv--