lkml.org 
[lkml]   [2008]   [Oct]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH] ELF: implement AT_RANDOM for future glibc use
Date
What mmap randomization and stack randomization actually use is
get_random_int(), not get_random_bytes(). This is one of those weaker
flavors seeded occasionally from the real entropy pool. (As is, it's not a
good choice for getting 16 bytes of random at once, since it usually
returns the same 4 bytes each time when called 4 times in quick succession.)

What glibc wants is some bits with a strength of randomness chosen by the
kernel, and not to worry about the details. I think the strength applied
to mmap and stack randomization is good enough for AT_RANDOM.


Thanks,
Roland


\
 
 \ /
  Last update: 2008-10-07 02:01    [W:1.142 / U:0.000 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site