From owner-freebsd-amd64@FreeBSD.ORG Sat Jun 14 17:48:12 2008 Return-Path: Delivered-To: amd64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8BA7C1065674 for ; Sat, 14 Jun 2008 17:48:12 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: from palm.hoeg.nl (mx0.hoeg.nl [IPv6:2001:610:652::211]) by mx1.freebsd.org (Postfix) with ESMTP id 533A48FC1C for ; Sat, 14 Jun 2008 17:48:12 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: by palm.hoeg.nl (Postfix, from userid 1000) id 137B91CD5F; Sat, 14 Jun 2008 19:44:12 +0200 (CEST) Date: Sat, 14 Jun 2008 19:44:12 +0200 From: Ed Schouten To: amd64@freebsd.org Message-ID: <20080614174412.GU1176@hoeg.nl> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="2HdWiV8iqzNK3pYB" Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) X-Mailman-Approved-At: Sat, 14 Jun 2008 19:22:30 +0000 Cc: Subject: VM_PROT_EXEC on the stack X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Jun 2008 17:48:12 -0000 --2HdWiV8iqzNK3pYB Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello everyone, I'm not a real guru when it comes to low level x86 hardware stuff, but some time ago I read somewhere that the NX bit on AMD64 CPU's could be used to mark the stack as non-executable, making it impossible to execute code on the stack (through buffer overflows). When I look at procstat -v's output on FreeBSD/amd64, I see the stack has VM_PROT_EXEC. Is there a specific reason for this? Yours, --=20 Ed Schouten WWW: http://80386.nl/ --2HdWiV8iqzNK3pYB Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEARECAAYFAkhUA2sACgkQ52SDGA2eCwWKqwCeP4RoAf451eVuPiT1qjMNHrZL dtUAn0GgV5u/WgwqVqHMNX86f+ZFlLLG =nBON -----END PGP SIGNATURE----- --2HdWiV8iqzNK3pYB--