diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2019-09-18 15:11:14 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2019-09-18 15:11:14 -0400 |
commit | 8b53c76533aa4356602aea98f98a2f3b4051464c (patch) | |
tree | ab10ba58e21501407f8108a6bb9003daa2176962 /drivers/char/random.c | |
parent | 6cfae0c26b21dce323fe8799b66cf4bc996e3565 (diff) | |
parent | 9575d1a5c0780ea26ff8dd29c94a32be32ce3c85 (diff) |
Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6
Pull crypto updates from Herbert Xu:
"API:
- Add the ability to abort a skcipher walk.
Algorithms:
- Fix XTS to actually do the stealing.
- Add library helpers for AES and DES for single-block users.
- Add library helpers for SHA256.
- Add new DES key verification helper.
- Add surrounding bits for ESSIV generator.
- Add accelerations for aegis128.
- Add test vectors for lzo-rle.
Drivers:
- Add i.MX8MQ support to caam.
- Add gcm/ccm/cfb/ofb aes support in inside-secure.
- Add ofb/cfb aes support in media-tek.
- Add HiSilicon ZIP accelerator support.
Others:
- Fix potential race condition in padata.
- Use unbound workqueues in padata"
* 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6: (311 commits)
crypto: caam - Cast to long first before pointer conversion
crypto: ccree - enable CTS support in AES-XTS
crypto: inside-secure - Probe transform record cache RAM sizes
crypto: inside-secure - Base RD fetchcount on actual RD FIFO size
crypto: inside-secure - Base CD fetchcount on actual CD FIFO size
crypto: inside-secure - Enable extended algorithms on newer HW
crypto: inside-secure: Corrected configuration of EIP96_TOKEN_CTRL
crypto: inside-secure - Add EIP97/EIP197 and endianness detection
padata: remove cpu_index from the parallel_queue
padata: unbind parallel jobs from specific CPUs
padata: use separate workqueues for parallel and serial work
padata, pcrypt: take CPU hotplug lock internally in padata_alloc_possible
crypto: pcrypt - remove padata cpumask notifier
padata: make padata_do_parallel find alternate callback CPU
workqueue: require CPU hotplug read exclusion for apply_workqueue_attrs
workqueue: unconfine alloc/apply/free_workqueue_attrs()
padata: allocate workqueue internally
arm64: dts: imx8mq: Add CAAM node
random: Use wait_event_freezable() in add_hwgenerator_randomness()
crypto: ux500 - Fix COMPILE_TEST warnings
...
Diffstat (limited to 'drivers/char/random.c')
-rw-r--r-- | drivers/char/random.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/char/random.c b/drivers/char/random.c index 566922df4b7b..d3beed084c0a 100644 --- a/drivers/char/random.c +++ b/drivers/char/random.c | |||
@@ -327,6 +327,7 @@ | |||
327 | #include <linux/percpu.h> | 327 | #include <linux/percpu.h> |
328 | #include <linux/cryptohash.h> | 328 | #include <linux/cryptohash.h> |
329 | #include <linux/fips.h> | 329 | #include <linux/fips.h> |
330 | #include <linux/freezer.h> | ||
330 | #include <linux/ptrace.h> | 331 | #include <linux/ptrace.h> |
331 | #include <linux/workqueue.h> | 332 | #include <linux/workqueue.h> |
332 | #include <linux/irq.h> | 333 | #include <linux/irq.h> |
@@ -2439,7 +2440,8 @@ void add_hwgenerator_randomness(const char *buffer, size_t count, | |||
2439 | * We'll be woken up again once below random_write_wakeup_thresh, | 2440 | * We'll be woken up again once below random_write_wakeup_thresh, |
2440 | * or when the calling thread is about to terminate. | 2441 | * or when the calling thread is about to terminate. |
2441 | */ | 2442 | */ |
2442 | wait_event_interruptible(random_write_wait, kthread_should_stop() || | 2443 | wait_event_freezable(random_write_wait, |
2444 | kthread_should_stop() || | ||
2443 | ENTROPY_BITS(&input_pool) <= random_write_wakeup_bits); | 2445 | ENTROPY_BITS(&input_pool) <= random_write_wakeup_bits); |
2444 | mix_pool_bytes(poolp, buffer, count); | 2446 | mix_pool_bytes(poolp, buffer, count); |
2445 | credit_entropy_bits(poolp, entropy); | 2447 | credit_entropy_bits(poolp, entropy); |