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

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Andrew Morton <akpm@...>
Cc: <linux-kernel@...>
Date: Thursday, October 11, 2007 - 5:27 am

On Thu, 11 Oct 2007, Andrew Morton wrote:


This should be fixed trivially in the very same way as for x86_64, i.e. 
something like

diff --git a/arch/s390/kernel/binfmt_elf32.c b/arch/s390/kernel/binfmt_elf32.c
index f1e40ca..4b5432d 100644
--- a/arch/s390/kernel/binfmt_elf32.c
+++ b/arch/s390/kernel/binfmt_elf32.c
@@ -199,5 +199,6 @@ cputime_to_compat_timeval(const cputime_t cputime, struct compat_timeval *value)
 	value->tv_sec = cputime / 1000000;
 }
 
+extern void arch_randomize_brk(void);
 #include "../../../fs/binfmt_elf.c"


right? Maybe this would be needed for other architectures too :( I will 
check this. I'd really like the patch go in, so that we have really full 
randomization finally.


I agree that it is a total mess. We'd need someone brave enough to rewrite 
this crap :/

Thanks,

-- 
Jiri Kosina
SUSE Labs
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] [RESEND] i386 and x86_64: randomize brk(), Jiri Kosina, (Tue Sep 11, 8:17 am)
Re: [PATCH] [RESEND] i386 and x86_64: randomize brk(), Andrew Morton, (Thu Oct 11, 4:18 am)
Re: [PATCH] [RESEND] i386 and x86_64: randomize brk(), Jiri Kosina, (Thu Oct 11, 5:23 am)
Re: [PATCH] [RESEND] i386 and x86_64: randomize brk(), Andrew Morton, (Thu Oct 11, 4:55 am)
Re: [PATCH] [RESEND] i386 and x86_64: randomize brk(), Jiri Kosina, (Fri Oct 19, 6:10 pm)
Re: [PATCH] [RESEND] i386 and x86_64: randomize brk(), Jiri Kosina, (Tue Oct 23, 6:13 pm)
Re: [PATCH] [RESEND] i386 and x86_64: randomize brk(), Jiri Kosina, (Thu Oct 11, 5:27 am)
Re: [PATCH] [RESEND] i386 and x86_64: randomize brk(), Andrew Morton, (Thu Oct 11, 4:26 am)
Re: [PATCH] [RESEND] i386 and x86_64: randomize brk(), Andrew Morton, (Fri Sep 14, 1:07 am)
Re: [PATCH] [RESEND] i386 and x86_64: randomize brk(), Jiri Kosina, (Fri Sep 14, 4:30 am)