From: Ben Widawsky Subject: Re: [PATCH 03/11] i965: copy in system routine, reserve extra scratch Date: Sat, 25 Jun 2011 17:16:57 -0700 Message-ID: <20110626001657.GC9413@snipes.kumite> References: <1308944576-12740-1-git-send-email-ben@bwidawsk.net> <1308944576-12740-4-git-send-email-ben@bwidawsk.net> <8762nu691k.fsf@eliezer.anholt.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1384533588==" Return-path: In-Reply-To: <8762nu691k.fsf@eliezer.anholt.net> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org To: Eric Anholt Cc: mesa-dev@lists.freedesktop.org, intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org --===============1384533588== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="r5Pyd7+fXNt84Ff3" Content-Disposition: inline --r5Pyd7+fXNt84Ff3 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jun 24, 2011 at 05:37:11PM -0700, Eric Anholt wrote: > On Fri, 24 Jun 2011 12:42:48 -0700, Ben Widawsky wrote: > > The debugger shared memory needs to be a fixed size. Since this is > > scratch memory that is already used by register spilling, add > > appropriate hooks to do the right thing when debugging. > >=20 > > Also copy in a binary blob system routine based on an environment > > variable. This blob will need to be relocated, and emitted as part of > > the state setup. We do this part now since there is no point debugging > > if that fails. > >=20 > > Signed-off-by: Ben Widawsky >=20 > This patch loads a file from a user-defined path into graphics memory, > which is accessible by any user with DRI permissions. If the X Server > is setuid, then it seems this patch would allow loading any file on the > system by a user with permission to start the setuid X Server. Well since you put it that way, that does sound like a really bad idea. Do you have a recommendation? I suppose I can get a make install working to install the system routine to wherever mesa was installed and read it =66rom there when mesa runs. Does that sound like the best solution to you? --r5Pyd7+fXNt84Ff3 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) iQEcBAEBAgAGBQJOBnp5AAoJEL9nTIiJEj0prWQIANMy1xaJQrKCNLF1UiqyLsGw E+4Oiuk3f3tpnTlDUzSbKJk3YJUX2igIa4IfOsJfWDvhhFqaVCF/Sd9CdaBHUr9D xfajW4DnoBEa2hHIjBnlvyrPXAutDUjvYbutcupu4i5OwMkXKyTfee8NI3tLdR6K Go1H9WOSPWjCmuU/TRIDqtcMUGI5mwlMOSZlO+1ruLhYlQoaEjzwPdQrRpCBICJs f/iHaF6dyGETx4SB8oZhDXMpXYDne4iK+T/VzIGo7+vaDr5by9tNYG1/eYxs3nS+ YOotkGQGeCz4wF1aTaTZPv/NlBbCD+h02m0NkjKefLU73f6cqeyUimwVZl8qO5c= =FnJt -----END PGP SIGNATURE----- --r5Pyd7+fXNt84Ff3-- --===============1384533588== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/intel-gfx --===============1384533588==--