linux-mips
[Top] [All Lists]

Re: Useless stack randomization patch

To: Franck Bui-Huu <vagabon.xyz@gmail.com>
Subject: Re: Useless stack randomization patch
From: Markus Gothe <markus.gothe@27m.se>
Date: Wed, 26 Sep 2007 16:22:31 +0200
Cc: Ralf Baechle <ralf@linux-mips.org>, nigel@mips.com, linux-mips <linux-mips@linux-mips.org>
In-reply-to: <46FA6846.2080704@gmail.com>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <46FA6846.2080704@gmail.com>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Icedove 1.5.0.12 (X11/20070730)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Franck Bui-Huu wrote:
> Ralf,
>
> We started stack inside page randomization through commit
> 941091024ef0f2f7e09eb81201d293ac18833cc8 but it currently does nothing
> usefull because ELF_PLATFORM is not defined on MIPS (see
> fs/binfm_elf.c, create_elf_tables() for details).
>
> I tried several times to get information on lkml about that dependency
> but unfortunately I got no answer.
>
> I'm not sure how ELF_PLATFORM is used by ld.so and I don't think it's
> a good idea to define it just for enabling stack randomization.
>
> What do you think ?
>
> thanks
>         Franck
>
I think you mean this in specific:

"/* This yields a string that ld.so will use to load implementation
   specific libraries for optimization.  This is more specific in
   intent than poking at uname or /proc/cpuinfo.

   For the moment, we have only optimizations for the Intel generations,
   but that could change... */

#define ELF_PLATFORM  (NULL)"

Right?

- --
_______________________________________

Mr Markus Gothe
Software Engineer

Phone: +46 (0)13 21 81 20 (ext. 1046)
Fax: +46 (0)13 21 21 15
Mobile: +46 (0)73 718 72 80
Diskettgatan 11, SE-583 35 Linköping, Sweden
www.27m.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFG+msl6I0XmJx2NrwRCBm0AJ99yMRx1Kkre9bPa3y9lkV+xHSvVwCcC6qP
5AoYOLF7HLEOPrnr8fIhBuk=
=+uD/
-----END PGP SIGNATURE-----


<Prev in Thread] Current Thread [Next in Thread>