* [GIT PULL] /dev/random driver changes for 4.8
@ 2016-07-25 6:44 Theodore Ts'o
2016-07-25 7:15 ` Stephen Rothwell
2016-07-27 13:12 ` Theodore Ts'o
0 siblings, 2 replies; 6+ messages in thread
From: Theodore Ts'o @ 2016-07-25 6:44 UTC (permalink / raw)
To: Linus Torvalds; +Cc: linux-kernel, linux-crypto
The following changes since commit 1a695a905c18548062509178b98bc91e67510864:
Linux 4.7-rc1 (2016-05-29 09:29:24 -0700)
are available in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/tytso/random.git tags/random_for_linus
for you to fetch changes up to 86a574de4590ffe6fd3f3ca34cdcf655a78e36ec:
random: strengthen input validation for RNDADDTOENTCNT (2016-07-03 17:09:33 -0400)
----------------------------------------------------------------
A number of improvements for the /dev/random driver; the most
important is the use of a ChaCha20-based CRNG for /dev/urandom, which
is faster, more efficient, and easier to make scalable for
silly/abusive userspace programs that want to read from /dev/urandom
in a tight loop on NUMA systems.
This set of patches also improves entropy gathering on VM's running on
Microsoft Azure, and will take advantage of a hw random number
generator (if present) to initialize the /dev/urandom pool.
----------------------------------------------------------------
Eric Biggers (1):
random: properly align get_random_int_hash
Stephan Mueller (1):
random: add interrupt callback to VMBus IRQ handler
Theodore Ts'o (6):
random: initialize the non-blocking pool via add_hwgenerator_randomness()
random: print a warning for the first ten uninitialized random users
random: replace non-blocking pool with a Chacha20-based CRNG
random: make /dev/urandom scalable for silly userspace programs
random: add backtracking protection to the CRNG
random: strengthen input validation for RNDADDTOENTCNT
crypto/chacha20_generic.c | 61 ----------
drivers/char/random.c | 482 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++---------------
drivers/hv/vmbus_drv.c | 3 +
include/crypto/chacha20.h | 1 +
lib/Makefile | 2 +-
lib/chacha20.c | 79 ++++++++++++
6 files changed, 468 insertions(+), 160 deletions(-)
create mode 100644 lib/chacha20.c
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: [GIT PULL] /dev/random driver changes for 4.8
2016-07-25 6:44 [GIT PULL] /dev/random driver changes for 4.8 Theodore Ts'o
@ 2016-07-25 7:15 ` Stephen Rothwell
2016-07-25 14:24 ` Theodore Ts'o
2016-07-27 13:12 ` Theodore Ts'o
1 sibling, 1 reply; 6+ messages in thread
From: Stephen Rothwell @ 2016-07-25 7:15 UTC (permalink / raw)
To: Theodore Ts'o; +Cc: Linus Torvalds, linux-kernel, linux-crypto
Hi Ted,
On Mon, 25 Jul 2016 02:44:24 -0400 Theodore Ts'o <tytso@mit.edu> wrote:
>
> The following changes since commit 1a695a905c18548062509178b98bc91e67510864:
>
> Linux 4.7-rc1 (2016-05-29 09:29:24 -0700)
>
> are available in the git repository at:
>
> git://git.kernel.org/pub/scm/linux/kernel/git/tytso/random.git tags/random_for_linus
>
> for you to fetch changes up to 86a574de4590ffe6fd3f3ca34cdcf655a78e36ec:
>
> random: strengthen input validation for RNDADDTOENTCNT (2016-07-03 17:09:33 -0400)
Of course none of this has been in linux-next since the random tree was
dropped in March because it had not been updated for more than a year at
that point.
However, at least half of these look like bug fixes (cced to stable).
Should I reinstate the random tree to linux-next?
--
Cheers,
Stephen Rothwell
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [GIT PULL] /dev/random driver changes for 4.8
2016-07-25 7:15 ` Stephen Rothwell
@ 2016-07-25 14:24 ` Theodore Ts'o
2016-07-25 21:51 ` Stephen Rothwell
0 siblings, 1 reply; 6+ messages in thread
From: Theodore Ts'o @ 2016-07-25 14:24 UTC (permalink / raw)
To: Stephen Rothwell; +Cc: Linus Torvalds, linux-kernel, linux-crypto
On Mon, Jul 25, 2016 at 05:15:15PM +1000, Stephen Rothwell wrote:
> Hi Ted,
>
> On Mon, 25 Jul 2016 02:44:24 -0400 Theodore Ts'o <tytso@mit.edu> wrote:
> >
> > The following changes since commit 1a695a905c18548062509178b98bc91e67510864:
> >
> > Linux 4.7-rc1 (2016-05-29 09:29:24 -0700)
> >
> > are available in the git repository at:
> >
> > git://git.kernel.org/pub/scm/linux/kernel/git/tytso/random.git tags/random_for_linus
> >
> > for you to fetch changes up to 86a574de4590ffe6fd3f3ca34cdcf655a78e36ec:
> >
> > random: strengthen input validation for RNDADDTOENTCNT (2016-07-03 17:09:33 -0400)
>
> Of course none of this has been in linux-next since the random tree was
> dropped in March because it had not been updated for more than a year at
> that point.
>
> However, at least half of these look like bug fixes (cced to stable).
>
> Should I reinstate the random tree to linux-next?
Yes, please do. It was getting zero-day checks, and I assumed it was
in linux-next; I should have checked, though.
- Ted
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [GIT PULL] /dev/random driver changes for 4.8
2016-07-25 14:24 ` Theodore Ts'o
@ 2016-07-25 21:51 ` Stephen Rothwell
0 siblings, 0 replies; 6+ messages in thread
From: Stephen Rothwell @ 2016-07-25 21:51 UTC (permalink / raw)
To: Theodore Ts'o; +Cc: Linus Torvalds, linux-kernel, linux-crypto
Hi Ted,
On Mon, 25 Jul 2016 10:24:07 -0400 Theodore Ts'o <tytso@mit.edu> wrote:
>
> On Mon, Jul 25, 2016 at 05:15:15PM +1000, Stephen Rothwell wrote:
> >
> > Should I reinstate the random tree to linux-next?
>
> Yes, please do. It was getting zero-day checks, and I assumed it was
> in linux-next; I should have checked, though.
Done from today.
--
Cheers,
Stephen Rothwell
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [GIT PULL] /dev/random driver changes for 4.8
2016-07-25 6:44 [GIT PULL] /dev/random driver changes for 4.8 Theodore Ts'o
2016-07-25 7:15 ` Stephen Rothwell
@ 2016-07-27 13:12 ` Theodore Ts'o
2016-07-27 22:05 ` Linus Torvalds
1 sibling, 1 reply; 6+ messages in thread
From: Theodore Ts'o @ 2016-07-27 13:12 UTC (permalink / raw)
To: Linus Torvalds, linux-kernel, linux-crypto
On Mon, Jul 25, 2016 at 02:44:24AM -0400, Theodore Ts'o wrote:
> The following changes since commit 1a695a905c18548062509178b98bc91e67510864:
>
> Linux 4.7-rc1 (2016-05-29 09:29:24 -0700)
>
> are available in the git repository at:
>
> git://git.kernel.org/pub/scm/linux/kernel/git/tytso/random.git tags/random_for_linus
>
> for you to fetch changes up to 86a574de4590ffe6fd3f3ca34cdcf655a78e36ec:
>
> random: strengthen input validation for RNDADDTOENTCNT (2016-07-03 17:09:33 -0400)
Hi Linus,
Are you planning on pulling the random tree this cycle? I'm not sure
if you wanted to let it soak for a few days in linux-next, or whether
you want to wait another full release cycle, given that the random
tree had gotten dropped from linux-next some time ago without my
realizing it. (The code has actually been soaking for 1.5 releases,
since I wanted to give it lots of soak time, but of course, it would
have been more helpful if it actually was in linux-next. Sigh...)
- Ted
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: [GIT PULL] /dev/random driver changes for 4.8
2016-07-27 13:12 ` Theodore Ts'o
@ 2016-07-27 22:05 ` Linus Torvalds
0 siblings, 0 replies; 6+ messages in thread
From: Linus Torvalds @ 2016-07-27 22:05 UTC (permalink / raw)
To: Theodore Ts'o, Linus Torvalds, Linux Kernel Mailing List,
Linux Crypto Mailing List
On Wed, Jul 27, 2016 at 6:12 AM, Theodore Ts'o <tytso@mit.edu> wrote:
>
> Are you planning on pulling the random tree this cycle? I'm not sure
> if you wanted to let it soak for a few days in linux-next, or whether
> you want to wait another full release cycle
It's next in line in my queue, so unless it blows up spectacularly in
my face I'm pulling it this cycle. It's not liek the pull request
looks particularly scary,
Linus
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2016-07-27 22:05 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-25 6:44 [GIT PULL] /dev/random driver changes for 4.8 Theodore Ts'o
2016-07-25 7:15 ` Stephen Rothwell
2016-07-25 14:24 ` Theodore Ts'o
2016-07-25 21:51 ` Stephen Rothwell
2016-07-27 13:12 ` Theodore Ts'o
2016-07-27 22:05 ` Linus Torvalds
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox