mirror of
https://github.com/torvalds/linux.git
synced 2026-11-24 23:47:06 +00:00
hw_random carefully avoids using a stack buffer except in
add_early_randomness(). This causes a crash in virtio_rng if
CONFIG_VMAP_STACK=y.
Reported-by: Matt Mullins <[email protected]>
Tested-by: Matt Mullins <[email protected]>
Fixes: d3cc799647 ("hwrng: fetch randomness only after device init")
Signed-off-by: Andy Lutomirski <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>