This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: randomized stack protector value


> The right solution is that the kernel provides a couple of random words
> in the auxiliary vectors.  Some kernel folks know about this for quite some
> time, but it hasn't been added yet.  If kernel provides it, upstream
> glibc will most definitely use it.

Sounds easy enough.  How many?  Do you want:

	{AT_RANDOM1, x}
	{AT_RANDOM2, y}

giving 8 bytes on 32-bit and 16 on 64-bit?

Or perhaps:

	{AT_RANDOM, a}
	{AT_RANDOM_SIZE, p}

where a is the address (on the initial stack near auxv) of p random bytes?
Then what should p be in the initial implementation?


Thanks,
Roland


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]