From owner-freebsd-hackers@FreeBSD.ORG Fri Jul 24 11:58:52 2009 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 87989106566B for ; Fri, 24 Jul 2009 11:58:52 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (skuns.zoral.com.ua [91.193.166.194]) by mx1.freebsd.org (Postfix) with ESMTP id CAED08FC14 for ; Fri, 24 Jul 2009 11:58:51 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (root@deviant.kiev.zoral.com.ua [10.1.1.148]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id n6OBwUfp079434 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 24 Jul 2009 14:58:30 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.3/8.14.3) with ESMTP id n6OBwUEG039657; Fri, 24 Jul 2009 14:58:30 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.3/8.14.3/Submit) id n6OBwUHM039636; Fri, 24 Jul 2009 14:58:30 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Fri, 24 Jul 2009 14:58:30 +0300 From: Kostik Belousov To: Jeremie Le Hen Message-ID: <20090724115830.GG55190@deviant.kiev.zoral.com.ua> References: <20090508214117.GY58540@hoeg.nl> <20090509113459.GD56667@e.0x20.net> <20090509121313.GA58540@hoeg.nl> <20090724073451.GH54986@felucia.tataz.chchile.org> <20090724081842.GF55190@deviant.kiev.zoral.com.ua> <20090724115404.GI54986@felucia.tataz.chchile.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="30ciY2VPQam4VdV2" Content-Disposition: inline In-Reply-To: <20090724115404.GI54986@felucia.tataz.chchile.org> 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=-4.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua Cc: Ed Schouten , FreeBSD Hackers Subject: Re: concurrent sysctl implementation 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: Fri, 24 Jul 2009 11:58:53 -0000 --30ciY2VPQam4VdV2 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jul 24, 2009 at 01:54:04PM +0200, Jeremie Le Hen wrote: > On Fri, Jul 24, 2009 at 11:18:42AM +0300, Kostik Belousov wrote: > > On Fri, Jul 24, 2009 at 09:34:51AM +0200, Jeremie Le Hen wrote: > > > Hi Ed, > > >=20 > > > Sorry for the late reply. > > >=20 > > > On Sat, May 09, 2009 at 02:13:13PM +0200, Ed Schouten wrote: > > > > We probably could. I think I discussed this with Robert Watson some= time > > > > ago and we could use things like ELF hints. But still, that doesn't > > > > prevent us from reaching this limitation later on. > > >=20 > > > Can you elaborate a little? Are you talking about elf-hints.h? > > > I don't see where we can get randomness from it. > >=20 > > The thing is called ELF auxillary information vector. It is used to > > supply some useful information for interpreter from the kernel, > > see include/machine/elf.h for AT_* entries. >=20 > Ah ok, so the idea is to generate a new hint, for instance AT_RANDOM, > generated at link time, that will be used to fill the canary at exec(2) > time? The aux entries are not hints, and they are put on the new image stack when execve() activates the image. Aux entries has nothing to do with static link time, they are supplied to the dynamic linker (ELF interpreter). --30ciY2VPQam4VdV2 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEARECAAYFAkppoeUACgkQC3+MBN1Mb4hsygCeMNL7SXmv25mmZdbu/8cgND1O BOgAn1sXD1u8n5ZRXtNkDV0sfgF/LEYx =zGSc -----END PGP SIGNATURE----- --30ciY2VPQam4VdV2--