From 52218091e31dd18aaa814add27382018703e648b Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Fri, 9 Nov 2012 14:05:10 +1100 Subject: [PATCH] binfmt_elfc-use-get_random_int-to-fix-entropy-depleting-fix tweak code comment Cc: Al Viro Cc: Alan Cox Cc: Andreas Dilger Cc: Arnd Bergmann Cc: Greg Kroah-Hartman Cc: Jakub Jelinek Cc: James Morris Cc: Jeff Liu Cc: Jie Liu Cc: John Sobecki Cc: Kees Cook Cc: Ted Ts'o Cc: Ulrich Drepper Signed-off-by: Andrew Morton --- fs/binfmt_elf.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/fs/binfmt_elf.c b/fs/binfmt_elf.c index 172a5b178008..132cad5acc3d 100644 --- a/fs/binfmt_elf.c +++ b/fs/binfmt_elf.c @@ -560,10 +560,8 @@ static unsigned long randomize_stack_top(unsigned long stack_top) } /* - * A wrapper of get_random_int() to generate random bytes which has lower - * overhead than call get_random_bytes() directly. - * create_elf_tables() call this function to generate 16 random bytes for - * userspace PRNG seeding. + * Use get_random_int() to implement AT_RANDOM while avoiding depletion of + * the entropy pool. */ static void randomize_stack_user(unsigned char *buf, size_t nbytes) { -- 2.39.5