From owner-freebsd-stable@FreeBSD.ORG Mon Apr 2 19:25:20 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id ADEDB106566B for ; Mon, 2 Apr 2012 19:25:20 +0000 (UTC) (envelope-from ryao@cs.stonybrook.edu) Received: from edge2.cs.stonybrook.edu (edge2.cs.stonybrook.edu [130.245.9.211]) by mx1.freebsd.org (Postfix) with ESMTP id 468A28FC0A for ; Mon, 2 Apr 2012 19:25:20 +0000 (UTC) Received: from HUBCAS1.cs.stonybrook.edu (130.245.9.206) by edge2.cs.stonybrook.edu (130.245.9.211) with Microsoft SMTP Server (TLS) id 14.1.355.2; Mon, 2 Apr 2012 15:25:20 -0400 Received: from [192.168.1.2] (72.89.250.133) by hubcas1.cs.stonybrook.edu (130.245.9.212) with Microsoft SMTP Server (TLS) id 14.1.323.3; Mon, 2 Apr 2012 15:25:18 -0400 Message-ID: <4F79FCB8.1090003@cs.stonybrook.edu> Date: Mon, 2 Apr 2012 15:23:36 -0400 From: Richard Yao User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.1) Gecko/20120301 Thunderbird/10.0.1 MIME-Version: 1.0 To: Peter Wemm References: <4F75E404.8000104@cs.stonybrook.edu> <4F75EF86.6090909@cs.stonybrook.edu> <20120330190713.GG2358@deviant.kiev.zoral.com.ua> <4F760C9E.6060405@cs.stonybrook.edu> <20120330194649.GH2358@deviant.kiev.zoral.com.ua> <4F761371.7020606@cs.stonybrook.edu> <20120330203605.GI2358@deviant.kiev.zoral.com.ua> <4F76350F.8000708@cs.stonybrook.edu> <20120330224631.GJ2358@deviant.kiev.zoral.com.ua> <4F7637F3.2060502@cs.stonybrook.edu> <4F766F29.2030803@cs.stonybrook.edu> <4F79D88B.3040102@cs.stonybrook.edu> <4F79E27E.3000509@cs.stonybrook.edu> In-Reply-To: X-Enigmail-Version: 1.3.5 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigD2B11ADE89A5E704533C71CB" X-Originating-IP: [72.89.250.133] Cc: Tom Evans , freebsd-stable@freebsd.org Subject: Re: Text relocations in kernel modules X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Apr 2012 19:25:20 -0000 --------------enigD2B11ADE89A5E704533C71CB Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 04/02/12 14:46, Peter Wemm wrote: > Remember.. ASLR is a userland thing. .ko files, which is what this > thread is about, already use random address layout. When you do a > "kldload virtio.ko", you have no way to predict what address it will > be loaded at. And you don't even have access to the addresses. >=20 > Of course if you want to talk about ASLR and userland .so files then > that's an entirely different thing. But this thread is about your > tools finding DT_TEXTREL in a .ko kernel file, not userland .so files. >=20 The PaX project's patches to the Linux kernel include kernel stack randomization. The Gentoo Hardened project makes use of this in their fork of the Linux kernel. --------------enigD2B11ADE89A5E704533C71CB Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQIcBAEBAgAGBQJPefy7AAoJELFAT5FmjZuEDkgQANVP4ETuoTEjHxSKiubdH7JD KnAQvdvEULuwJFhQNsAfEF3ls6mjMRIRDyXEQrIupzEjldMgIXCGd9gnjsT0X+PW mf60bgnc0VlIkoyYBUTeBCLZ4TWC03lSVVWohzqkiGWDCtzqONpR0G5dgcxOrRTZ 0a4IOu8AO6SxVUjne/a+zW/XKxktyXSpo2k9zdJqQX9tx5rdaCuZ6ZlzUI+VL11C Q2negh6n2pdLU0xy15xy3VRdG/figb5vAtG/WfFhHP7UYql4xnQbDIkEFEY/e8XE TyVXJ2Yy0eGCtFQcNpUGNMoNAtqDNXRXUEAVbNd9lqTmVlb6PSx5hnLWbFGVmCha 514relB4CrN5Nq4K0ATF9BkvwBQROH0cvWfOikNGCAwi8MegMaoWNH4atQV8i1xl F1xjndrlVDlGagqw7HUG8sXPIi9ZUsOAjhchA6bnctUAjgok3qk3A34+8v0xZqa4 3sdLngLk1z661YDaKmF6WUbuxbLBRElQUb/ZYeiYyX4EHja1Ya6Mmfe2EdXbRdTv CkHJZduQuEmBCAbqOi14FsL7UAEnCr1WcxDXkhfhYfL6BR6o2IuhS771i9xRo9oA E+exWU3/H5Tgl0ABNZcy/js7qARy22uELcnZujeyuI8MMJUHFCHfuSwvCk/+6YGX 6cPm06lSLrNde9fVKbCQ =LdKQ -----END PGP SIGNATURE----- --------------enigD2B11ADE89A5E704533C71CB--