From owner-freebsd-hackers@FreeBSD.ORG Thu Jul 1 00:12:22 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 72928106564A for ; Thu, 1 Jul 2010 00:12:22 +0000 (UTC) (envelope-from kabaev@gmail.com) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id 14E0A8FC14 for ; Thu, 1 Jul 2010 00:12:21 +0000 (UTC) Received: by vws6 with SMTP id 6so648459vws.13 for ; Wed, 30 Jun 2010 17:12:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:cc:subject :message-id:in-reply-to:references:x-mailer:mime-version :content-type; bh=kJq2mXoPgg03Ft72mfb0vVia1OJOrzNaJaRTmygltQQ=; b=XKUlfvY10B3eH5/NR0YeXGnTWRLDNfqLqTjII2da1kPGFLGt9Q4kINOB/aJw2rIwxG b4ctoTgZRL8DZqKbU9mvhglm88Vccrut1/7lw6J2QbRs1wJ1MdQT37ab71PWiVvCzX5H l0UcyVaHM697/9pUA1ly4L3vGjz/Ruif7KNPY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:in-reply-to:references:x-mailer :mime-version:content-type; b=TRhdJ8b6Uq00AjsGIGx+koZ90aX/d/8U9UX+ExhWplH0axqldRiGrMt/dDVwgqEpEu 8gskl6LXHaN4wwq88NmmKieDkj+2WQEODA8zV2niSR0LxNb0cTesq5a+WSENifYxDlPm v4XDy+jIEcNKwiPGOPqK9Crl+geGfdNP74gv8= Received: by 10.229.231.134 with SMTP id jq6mr5675068qcb.34.1277943134619; Wed, 30 Jun 2010 17:12:14 -0700 (PDT) Received: from kan.dnsalias.net (c-24-63-226-98.hsd1.ma.comcast.net [24.63.226.98]) by mx.google.com with ESMTPS id x40sm43905502qce.43.2010.06.30.17.12.13 (version=SSLv3 cipher=RC4-MD5); Wed, 30 Jun 2010 17:12:14 -0700 (PDT) Date: Wed, 30 Jun 2010 20:12:08 -0400 From: Alexander Kabaev To: Garrett Cooper Message-ID: <20100630201208.095139c0@kan.dnsalias.net> In-Reply-To: References: <20100630105027.GJ13238@deviant.kiev.zoral.com.ua> <20100630192350.105e8303@kan.dnsalias.net> X-Mailer: Claws Mail 3.7.6 (GTK+ 2.20.1; amd64-portbld-freebsd9.0) Mime-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/q2rfeRI6R=_xu2GVWbcqN9c"; protocol="application/pgp-signature" Cc: "Sam Fourman Jr." , Kostik Belousov , freebsd-hackers@freebsd.org Subject: Re: kernel patch needed for wine? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Jul 2010 00:12:22 -0000 --Sig_/q2rfeRI6R=_xu2GVWbcqN9c Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Wed, 30 Jun 2010 16:45:18 -0700 Garrett Cooper wrote: > > > > Now make icebp_func const and observe the program start working. The > > test case is broken as written, because icebp_func array is > > writable, so in ends up in a non-const part of .bss, which is not > > marked as executable and rightfully causes SIGSEGV when jumped to. >=20 > Which means that Linux is broken in this regard because it's loading > data as text, not data as data and text as text? > Thanks, Nope, I think this is i386 vs. amd64 difference. NX page protection is enforced in long mode, or in 32-bit with PAE, if I remember things correctly. --=20 Alexander Kabaev --Sig_/q2rfeRI6R=_xu2GVWbcqN9c Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.15 (FreeBSD) iD8DBQFMK91cQ6z1jMm+XZYRAtQ4AJ9ZtXAuvaeH1twnRmZRYUfKpUhEAQCgxd3d dToOaZXrnJ8+kVH/FPC/mC0= =Uob+ -----END PGP SIGNATURE----- --Sig_/q2rfeRI6R=_xu2GVWbcqN9c--