aboutsummaryrefslogtreecommitdiff
path: root/fs/binfmt_elf.c
diff options
context:
space:
mode:
authoranarkia1976 <stefano.villa1976@gmail.com>2016-01-08 11:35:00 +0100
committerMoyster <oysterized@gmail.com>2016-09-10 12:06:50 +0200
commitf472bbfe99ca74f6d9eea1332b1d91be04f726df (patch)
treebfa7e75a6d32bd280a3d5f249bbfda5e49f6d129 /fs/binfmt_elf.c
parent28dcd63ec88da85c14041e1c737a89a8ac8b4dfd (diff)
binfmt_elf: use prandom - do not deplete entropy
Diffstat (limited to 'fs/binfmt_elf.c')
-rw-r--r--fs/binfmt_elf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/binfmt_elf.c b/fs/binfmt_elf.c
index a1608e2e0..105f8dbec 100644
--- a/fs/binfmt_elf.c
+++ b/fs/binfmt_elf.c
@@ -220,7 +220,7 @@ create_elf_tables(struct linux_binprm *bprm, struct elfhdr *exec,
/*
* Generate 16 random bytes for userspace PRNG seeding.
*/
- get_atrandom_bytes(k_rand_bytes, sizeof(k_rand_bytes));
+ prandom_bytes(k_rand_bytes, sizeof(k_rand_bytes));
u_rand_bytes = (elf_addr_t __user *)
STACK_ALLOC(p, sizeof(k_rand_bytes));
if (__copy_to_user(u_rand_bytes, k_rand_bytes, sizeof(k_rand_bytes)))