From owner-svn-src-all@FreeBSD.ORG Thu Oct 13 19:09:47 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BB57F1065670; Thu, 13 Oct 2011 19:09:47 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (mx0.zoral.com.ua [91.193.166.200]) by mx1.freebsd.org (Postfix) with ESMTP id 333E58FC12; Thu, 13 Oct 2011 19:09:46 +0000 (UTC) Received: from alf.home (alf.kiev.zoral.com.ua [10.1.1.177]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id p9DJ9hqn033367 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 13 Oct 2011 22:09:43 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: from alf.home (kostik@localhost [127.0.0.1]) by alf.home (8.14.5/8.14.5) with ESMTP id p9DJ9hEK036335; Thu, 13 Oct 2011 22:09:43 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by alf.home (8.14.5/8.14.5/Submit) id p9DJ9hnV036334; Thu, 13 Oct 2011 22:09:43 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: alf.home: kostik set sender to kostikbel@gmail.com using -f Date: Thu, 13 Oct 2011 22:09:43 +0300 From: Kostik Belousov To: Marcel Moolenaar Message-ID: <20111013190943.GM1511@deviant.kiev.zoral.com.ua> References: <201110131620.p9DGKAM2022926@svn.freebsd.org> <20111013182025.GK1511@deviant.kiev.zoral.com.ua> <7FB94714-3E47-4E1E-947A-AC62FF071135@xcllnt.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="HDfPXHCxbbzPc3vJ" Content-Disposition: inline In-Reply-To: <7FB94714-3E47-4E1E-947A-AC62FF071135@xcllnt.net> User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: clamav-milter 0.95.2 at skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-3.3 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00, DNS_FROM_OPENWHOIS autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, Marcel Moolenaar , src-committers@freebsd.org Subject: Re: svn commit: r226343 - head/sys/vm X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Oct 2011 19:09:47 -0000 --HDfPXHCxbbzPc3vJ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Oct 13, 2011 at 11:30:12AM -0700, Marcel Moolenaar wrote: > > On Oct 13, 2011, at 11:20 AM, Kostik Belousov wrote: > > > The two commits removed NX support for .data/.bss for 32bit binaries > > Thon amd64. is is too unfortunate. Can we claim that only old > > Thbinaries need this hack ? > > I don't know. When did our ABI for i386 change to have NX by default? I think it changed de-facto when NX appears to be supported by hardware. In other words, PF_R->PF_X was always considered a coincident, and not a promise. I think we can claim that the moment FreeBSD gained PAE support, it happen. I would suggest to add a sysctl, say kern.elf32.readable_nx, with the values: 0 - strictly follow segment permissions 1 - PF_R implies PF_X if p_osrel < 600000 2 - PF_R always implied PF_X for 32bit binaries. --HDfPXHCxbbzPc3vJ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (FreeBSD) iEYEARECAAYFAk6XN3cACgkQC3+MBN1Mb4j0qACfRwkiBGTITzDPIyzStJFeWmFO 3tsAmgKLyQ5rEIgtMf3HPw2LLDYbOmNl =iTtS -----END PGP SIGNATURE----- --HDfPXHCxbbzPc3vJ--