Re: [PATCH] ELF: implement AT_RANDOM for future glibc use

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Kees Cook
Date: Thursday, October 2, 2008 - 10:15 pm

On Thu, Oct 02, 2008 at 05:52:58PM -0700, Roland McGrath wrote:

Out of curiosity, why are there gaps?  I figure I can include some
comments in that header to explain the gaps for future AT_* creations.


I was trying to make the size compile-time static so I could avoid
kmalloc'ing a buffer for get_random_bytes().  But maybe avoid that isn't
sensible?

As for 16 bytes on both 32bit and 64bit, I was aiming to have 4
pointer-sized random values.  16 works for 32bit, but I was hoping to
have 32 on 64bit.  Perhaps I am over-estimating?

-Kees

-- 
Kees Cook
Ubuntu Security Team
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] ELF: implement AT_RANDOM for future glibc use, Roland McGrath, (Thu Oct 2, 5:52 pm)
Re: [PATCH] ELF: implement AT_RANDOM for future glibc use, Kees Cook, (Thu Oct 2, 10:15 pm)
Re: [PATCH] ELF: implement AT_RANDOM for future glibc use, Arjan van de Ven, (Thu Oct 2, 10:57 pm)
Re: [PATCH] ELF: implement AT_RANDOM for future glibc use, Ulrich Drepper, (Thu Oct 2, 11:25 pm)
Re: [PATCH] ELF: implement AT_RANDOM for future glibc use, Roland McGrath, (Fri Oct 3, 1:22 pm)
Re: [PATCH] ELF: implement AT_RANDOM for future glibc use, Roland McGrath, (Mon Oct 6, 4:58 pm)
Re: [PATCH] ELF: implement AT_RANDOM for future glibc use, Ulrich Drepper, (Mon Oct 6, 5:08 pm)
Re: [PATCH] ELF: implement AT_RANDOM for future glibc use, Ulrich Drepper, (Mon Oct 6, 5:57 pm)
Re: [PATCH] ELF: implement AT_RANDOM for future glibc use, Ulrich Drepper, (Mon Oct 6, 6:51 pm)