Re: arch_align_stack() seems useless

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Franck Bui-Huu
Date: Tuesday, August 28, 2007 - 6:17 am

Hello Arjan,

Arjan van de Ven wrote:

OK, but for elf case this seems useless since the top of the stack is
already randomized.

It seems that the randomization stuff (top of the stack + stack
pointer inside a page) belongs to the elf binary format whereas it
could have been part of exec.c. Are there any reasons ?


Well not really because for mips case, we have:

	$ git grep ELF_PLATFORM include/asm-mips
	include/asm-mips/elf.h:#define ELF_PLATFORM  (NULL)

So on mips, the stack pointer won't get the inside the page
randomization. Is that correct ?

If so, I'm wondering why this randomization must depend on that string
to be defined. I must admit that I'm not sure how it's used. I guess
it's used by ld.so and it could be set to "mips" for now...

thanks
		Franck
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
arch_align_stack() seems useless, Franck Bui-Huu, (Mon Aug 27, 7:08 am)
Re: arch_align_stack() seems useless, Arjan van de Ven, (Mon Aug 27, 7:14 am)
Re: arch_align_stack() seems useless, Franck Bui-Huu, (Tue Aug 28, 6:17 am)
Re: arch_align_stack() seems useless, Franck Bui-Huu, (Thu Aug 30, 1:22 am)