Re: [PATCH] random: fix 32MB+ reads from /dev/urandom

2014-08-09 Thread Pavel Machek
On Wed 2014-07-23 16:26:41, Theodore Ts'o wrote: > I don't think this patch is worthwhile. There is no legitimate reason > to be using such large reads like this, and read(2) is always allowed > to return a short read (for example, if a signal comes in while the > read is happening). The only dif

Re: [PATCH] random: fix 32MB+ reads from /dev/urandom

2014-07-23 Thread Theodore Ts'o
I don't think this patch is worthwhile. There is no legitimate reason to be using such large reads like this, and read(2) is always allowed to return a short read (for example, if a signal comes in while the read is happening). The only difference is that we are now guaranteed to return a short-r