Re: [PATCH] [RESEND] i386 and x86_64: randomize brk()

2007-10-23 Thread Jiri Kosina
On Sat, 20 Oct 2007, Jiri Kosina wrote: > > And on s390 > > In file included from arch/s390/kernel/binfmt_elf32.c:202: > > arch/s390/kernel/../../../fs/binfmt_elf.c: In function 'load_elf_binary': > > arch/s390/kernel/../../../fs/binfmt_elf.c:1088: error: implicit declaration > > of function 'arc

Re: [PATCH] [RESEND] i386 and x86_64: randomize brk()

2007-10-19 Thread Jiri Kosina
On Thu, 11 Oct 2007, Andrew Morton wrote: > > Anyway, it breaks on ia64: > And on s390 > In file included from arch/s390/kernel/binfmt_elf32.c:202: > arch/s390/kernel/../../../fs/binfmt_elf.c: In function 'load_elf_binary': > arch/s390/kernel/../../../fs/binfmt_elf.c:1088: error: implicit declarat

Re: [PATCH] [RESEND] i386 and x86_64: randomize brk()

2007-10-11 Thread Jiri Kosina
On Thu, 11 Oct 2007, Andrew Morton wrote: > And on s390 > In file included from arch/s390/kernel/binfmt_elf32.c:202: > arch/s390/kernel/../../../fs/binfmt_elf.c: In function 'load_elf_binary': > arch/s390/kernel/../../../fs/binfmt_elf.c:1088: error: implicit declaration > of function 'arch_random

Re: [PATCH] [RESEND] i386 and x86_64: randomize brk()

2007-10-11 Thread Jiri Kosina
On Thu, 11 Oct 2007, Andrew Morton wrote: > I seem to have a different copy of this patch from the one which you > originally sent. It's the one which implements arch_randomize_brk() in > each arch's header file. Mayeb it wasn't cc'ed to a mailing list of > maybe I just lost the email, dunno.

Re: [PATCH] [RESEND] i386 and x86_64: randomize brk()

2007-10-11 Thread Andrew Morton
On Thu, 11 Oct 2007 01:18:00 -0700 Andrew Morton <[EMAIL PROTECTED]> wrote: > Anyway, it breaks on ia64: And on s390 In file included from arch/s390/kernel/binfmt_elf32.c:202: arch/s390/kernel/../../../fs/binfmt_elf.c: In function 'load_elf_binary': arch/s390/kernel/../../../fs/binfmt_elf.c:1088

Re: [PATCH] [RESEND] i386 and x86_64: randomize brk()

2007-10-11 Thread Andrew Morton
On Thu, 11 Oct 2007 01:18:00 -0700 Andrew Morton <[EMAIL PROTECTED]> wrote: > Anyway, I'm presently running with this loveliness: > > > --- a/include/asm-ia64/elf.h~i386-and-x86_64-randomize-brk-2-fix > +++ a/include/asm-ia64/elf.h > @@ -249,8 +249,10 @@ do {

Re: [PATCH] [RESEND] i386 and x86_64: randomize brk()

2007-10-11 Thread Andrew Morton
On Tue, 11 Sep 2007 14:17:24 +0200 (CEST) Jiri Kosina <[EMAIL PROTECTED]> wrote: > i386 and x86_64: randomize brk() I seem to have a different copy of this patch from the one which you originally sent. It's the one which implements arch_randomize_brk() in each arch's header file. Mayeb it wasn'

Re: [PATCH] [RESEND] i386 and x86_64: randomize brk()

2007-09-14 Thread Jiri Kosina
On Thu, 13 Sep 2007, Andrew Morton wrote: > > From: Jiri Kosina <[EMAIL PROTECTED]> > > i386 and x86_64: randomize brk() ... > We need a prototype of arch_randomize_brk() in scope for all callers and > implementations, so that the compiler can perform the appropriate > typechecking. You are right

Re: [PATCH] [RESEND] i386 and x86_64: randomize brk()

2007-09-13 Thread Andrew Morton
On Tue, 11 Sep 2007 14:17:24 +0200 (CEST) Jiri Kosina <[EMAIL PROTECTED]> wrote: > From: Jiri Kosina <[EMAIL PROTECTED]> > > i386 and x86_64: randomize brk() > > This patch randomizes the location of the heap (brk) for i386 and x86_64. > The range is randomized in the range starting at current b

[PATCH] [RESEND] i386 and x86_64: randomize brk()

2007-09-11 Thread Jiri Kosina
From: Jiri Kosina <[EMAIL PROTECTED]> i386 and x86_64: randomize brk() This patch randomizes the location of the heap (brk) for i386 and x86_64. The range is randomized in the range starting at current brk location up to 0x0200 offset for both architectures. This, together with pie-executable