Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1561271 > unrolled thread
| Started by | Theodore Ts'o <tytso@mit.edu> |
|---|---|
| First post | 2017-01-18 06:00 +0100 |
| Last post | 2017-01-18 18:20 +0100 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: [PATCH 3/8] random: trigger random_ready callback upon crng_init == 1 Theodore Ts'o <tytso@mit.edu> - 2017-01-18 06:00 +0100
Re: [PATCH 3/8] random: trigger random_ready callback upon crng_init == 1 Stephan Müller <smueller@chronox.de> - 2017-01-18 18:20 +0100
| From | Theodore Ts'o <tytso@mit.edu> |
|---|---|
| Date | 2017-01-18 06:00 +0100 |
| Subject | Re: [PATCH 3/8] random: trigger random_ready callback upon crng_init == 1 |
| Message-ID | <t0QvM-7Ve-11@gated-at.bofh.it> |
On Tue, Dec 27, 2016 at 11:39:57PM +0100, Stephan Müller wrote: > The random_ready callback mechanism is intended to replicate the > getrandom system call behavior to in-kernel users. As the getrandom > system call unblocks with crng_init == 1, trigger the random_ready > wakeup call at the same time. It was deliberate that random_ready would only get triggered with crng_init==2. In general I'm assuming kernel callers really want real randomness (as opposed to using prandom), where as there's a lot of b.s. userspace users of kernel randomness (for things that really don't require cryptographic randomness, e.g., for salting Python dictionaries, systemd/udev using /dev/urandom for non-cryptographic, non-security applications etc.) - Ted
[toc] | [next] | [standalone]
| From | Stephan Müller <smueller@chronox.de> |
|---|---|
| Date | 2017-01-18 18:20 +0100 |
| Subject | Re: [PATCH 3/8] random: trigger random_ready callback upon crng_init == 1 |
| Message-ID | <t123U-6Si-23@gated-at.bofh.it> |
| In reply to | #1561271 |
Am Dienstag, 17. Januar 2017, 23:12:50 CET schrieb Theodore Ts'o: Hi Theodore, > On Tue, Dec 27, 2016 at 11:39:57PM +0100, Stephan Müller wrote: > > The random_ready callback mechanism is intended to replicate the > > getrandom system call behavior to in-kernel users. As the getrandom > > system call unblocks with crng_init == 1, trigger the random_ready > > wakeup call at the same time. > > It was deliberate that random_ready would only get triggered with > crng_init==2. > > In general I'm assuming kernel callers really want real randomness (as > opposed to using prandom), where as there's a lot of b.s. userspace > users of kernel randomness (for things that really don't require > cryptographic randomness, e.g., for salting Python dictionaries, > systemd/udev using /dev/urandom for non-cryptographic, non-security > applications etc.) Users of getrandom want to ensure that they get random data from a DRNG that is seeded, just like in-kernel users may want if they choose the callback- approach. I do not understand why there should be different treatment of in-kernel vs user space callers in that respect. (And yes, I do not want to open a discussion whether crng_init==1 can considered as a sufficiently seeded DRNG as such discussion will lead nowhere.) Ciao Stephan
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web