public inbox for linuxppc-dev@ozlabs.org 
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@linux-foundation•org>
To: Kees Cook <keescook@chromium•org>
Cc: Linux MIPS Mailing List <linux-mips@linux-mips•org>,
	"x86@kernel•org" <x86@kernel•org>,
	Hector Marco Gisbert <hecmargi@upv•es>,
	LKML <linux-kernel@vger•kernel.org>,
	ismael Ripoll <iripoll@upv•es>,
	linuxppc-dev@lists•ozlabs.org, Ingo Molnar <mingo@kernel•org>,
	"linux-arm-kernel@lists•infradead.org"
	<linux-arm-kernel@lists•infradead.org>
Subject: Re: [PATCH] Fix offset2lib issue for x86*, ARM*, PowerPC and MIPS
Date: Thu, 26 Feb 2015 15:39:28 -0800	[thread overview]
Message-ID: <20150226153928.1df44df8a0d885fa71c471ce@linux-foundation.org> (raw)
In-Reply-To: <CAGXu5jJ8UM5J58CpBwP=+kHi9td0mKP0SV36HjpckEjxCzm45g@mail.gmail.com>

On Thu, 26 Feb 2015 15:34:36 -0800 Kees Cook <keescook@chromium•org> wrote:

> >> That pointless repetition should be avoided.
> >
> > That's surprisingly hard!
> >
> > After renaming mips brk_rnd() to mmap_rnd() I had a shot.  I'm not very
> > confident in the result.  Does that __weak trick even work?
> 
> In theory, it shouldn't be needed since only randomize_et_dyn will
> call mmap_rnd, and only architectures that use randomize_et_dyn will
> call it ... and will define mmap_rnd.

But randomize_et_dyn() is compiled for all architectures.  Or it was,
until I did the CONFIG_ARCH_HAVE_ELF_ASLR thing.

It seems odd that we have this per-arch feature but no Kconfig switch
for it.

      reply	other threads:[~2015-02-26 23:39 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <54EB735F.5030207@upv.es>
2015-02-23 19:34 ` [PATCH] Fix offset2lib issue for x86*, ARM*, PowerPC and MIPS Kees Cook
2015-02-23 19:54   ` Hector Marco Gisbert
2015-02-24  7:39     ` Ingo Molnar
2015-02-26 22:38       ` Andrew Morton
2015-02-26 22:43         ` David Daney
2015-02-26 23:00         ` Russell King - ARM Linux
2015-02-26 23:05           ` Andrew Morton
2015-02-26 23:03         ` Andrew Morton
2015-02-26 23:21         ` Stephen Rothwell
2015-02-26 23:34           ` Andrew Morton
     [not found]             ` <CAGXu5jK0YbyL+Z=YrCfkfGbYz6=65Rr_MAXLwrF36gJa2Ce4_w@mail.gmail.com>
2015-02-27  0:06               ` Andrew Morton
     [not found]                 ` <CAGXu5j+3D7FrAJNLHTgEuK5wnOmUZG13xxi6eONuWiY2zKCMqQ@mail.gmail.com>
2015-02-27  0:20                   ` Kees Cook
2015-02-26 23:26         ` Stephen Rothwell
2015-02-26 23:34         ` Kees Cook
2015-02-26 23:39           ` Andrew Morton [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150226153928.1df44df8a0d885fa71c471ce@linux-foundation.org \
    --to=akpm@linux-foundation$(echo .)org \
    --cc=hecmargi@upv$(echo .)es \
    --cc=iripoll@upv$(echo .)es \
    --cc=keescook@chromium$(echo .)org \
    --cc=linux-arm-kernel@lists$(echo .)infradead.org \
    --cc=linux-kernel@vger$(echo .)kernel.org \
    --cc=linux-mips@linux-mips$(echo .)org \
    --cc=linuxppc-dev@lists$(echo .)ozlabs.org \
    --cc=mingo@kernel$(echo .)org \
    --cc=x86@kernel$(echo .)org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox