Commit 67ec8cd
committed
hwrng: core - Remove add_early_randomness
A potential deadlock was reported with the config file at
https://web.archive.org/web/20240522052129/https://0x0.st/XPN_.txt
In this particular configuration, the deadlock doesn't exist because
the warning triggered at a point before modules were even available.
However, the deadlock can be real because any module loaded would
invoke async_synchronize_full.
The issue is spurious for software crypto algorithms which aren't
themselves involved in async probing. However, it would be hard to
avoid for a PCI crypto driver using async probing.
In this particular call trace, the problem is easily avoided because
the only reason the module is being requested during probing is the
add_early_randomness call in the hwrng core. This feature is
vestigial since there is now a kernel thread dedicated to doing
exactly this.
So remove add_early_randomness as it is no longer needed.
Reported-by: Nícolas F. R. A. Prado <[email protected]>
Reported-by: Eric Biggers <[email protected]>
Fixes: 1b6d7f9 ("tpm: add session encryption protection to tpm2_get_random()")
Link: https://lore.kernel.org/r/119dc5ed-f159-41be-9dda-1a056f29888d@notapiano/
Signed-off-by: Herbert Xu <[email protected]>
Reviewed-by: Jarkko Sakkinen <[email protected]>
Tested-by: Nícolas F. R. A. Prado <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>1 parent c6ab5c9 commit 67ec8cd
1 file changed
+4
-43
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | 67 | | |
81 | 68 | | |
82 | 69 | | |
| |||
340 | 327 | | |
341 | 328 | | |
342 | 329 | | |
343 | | - | |
| 330 | + | |
344 | 331 | | |
345 | 332 | | |
346 | 333 | | |
347 | 334 | | |
348 | 335 | | |
349 | | - | |
350 | 336 | | |
351 | 337 | | |
352 | 338 | | |
| |||
362 | 348 | | |
363 | 349 | | |
364 | 350 | | |
365 | | - | |
366 | | - | |
367 | | - | |
| 351 | + | |
368 | 352 | | |
369 | | - | |
370 | 353 | | |
371 | 354 | | |
372 | 355 | | |
| |||
544 | 527 | | |
545 | 528 | | |
546 | 529 | | |
547 | | - | |
548 | 530 | | |
549 | 531 | | |
550 | 532 | | |
| |||
573 | 555 | | |
574 | 556 | | |
575 | 557 | | |
576 | | - | |
577 | | - | |
578 | | - | |
579 | | - | |
580 | | - | |
581 | 558 | | |
582 | 559 | | |
583 | | - | |
584 | | - | |
585 | | - | |
586 | | - | |
587 | | - | |
588 | | - | |
589 | | - | |
590 | | - | |
591 | | - | |
592 | | - | |
593 | | - | |
594 | | - | |
595 | 560 | | |
596 | 561 | | |
597 | 562 | | |
| |||
602 | 567 | | |
603 | 568 | | |
604 | 569 | | |
605 | | - | |
| 570 | + | |
606 | 571 | | |
607 | 572 | | |
608 | 573 | | |
609 | 574 | | |
610 | | - | |
611 | 575 | | |
612 | 576 | | |
613 | 577 | | |
| |||
626 | 590 | | |
627 | 591 | | |
628 | 592 | | |
629 | | - | |
630 | | - | |
631 | | - | |
| 593 | + | |
632 | 594 | | |
633 | | - | |
634 | 595 | | |
635 | 596 | | |
636 | 597 | | |
| |||
0 commit comments