Re: [PATCH] avoid entropy starvation due to stack protection

From: Andrew Morton
Date: Wed Dec 12 2012 - 19:43:10 EST


On Tue, 11 Dec 2012 13:33:04 +0100
Stephan Mueller <smueller@xxxxxxxxxx> wrote:

> Some time ago, I noticed the fact that for every newly
> executed process, the function create_elf_tables requests 16 bytes of
> randomness from get_random_bytes. This is easily visible when calling
>
> while [ 1 ]
> do
> cat /proc/sys/kernel/random/entropy_avail
> sleep 1
> done

Please see
http://ozlabs.org/~akpm/mmotm/broken-out/binfmt_elfc-use-get_random_int-to-fix-entropy-depleting.patch

That patch is about one week from a mainline merge, btw.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/