]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
binfmt_elfc-use-get_random_int-to-fix-entropy-depleting-fix
authorAndrew Morton <akpm@linux-foundation.org>
Fri, 9 Nov 2012 03:05:10 +0000 (14:05 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 14 Nov 2012 04:55:25 +0000 (15:55 +1100)
tweak code comment

Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Alan Cox <alan@linux.intel.com>
Cc: Andreas Dilger <aedilger@gmail.com>
Cc: Arnd Bergmann <arnn@arndb.de>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Jakub Jelinek <jakub@redhat.com>
Cc: James Morris <james.l.morris@oracle.com>
Cc: Jeff Liu <jeff.liu@oracle.com>
Cc: Jie Liu <jeff.liu@oracle.com>
Cc: John Sobecki <john.sobecki@oracle.com>
Cc: Kees Cook <keescook@chromium.org>
Cc: Ted Ts'o <tytso@mit.edu>
Cc: Ulrich Drepper <drepper@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/binfmt_elf.c

index 172a5b17800841a766d386397774c83ade7cb7d4..132cad5acc3d5b62790860a242a1ede42bc47b65 100644 (file)
@@ -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)
 {