android_kernel_google_msm/drivers/char/hw_random
Andrew Lutomirski 47d838042a hwrng: core - Don't use a stack buffer in add_early_randomness()
commit 6d4952d9d9d4dc2bb9c0255d95a09405a1e958f7 upstream.

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 <mmullins@mmlx.us>
Tested-by: Matt Mullins <mmullins@mmlx.us>
Fixes: d3cc799647 ("hwrng: fetch randomness only after device init")
Signed-off-by: Andy Lutomirski <luto@kernel.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Change-Id: I4b47fc4e5a5623ffe3538c8872784e8f0ae30fd2
2023-03-24 20:53:04 +01:00
..
amd-rng.c
atmel-rng.c
core.c hwrng: core - Don't use a stack buffer in add_early_randomness() 2023-03-24 20:53:04 +01:00
geode-rng.c
intel-rng.c
ixp4xx-rng.c
Kconfig
Makefile
msm_rng.c
mxc-rnga.c
n2-asm.S
n2-drv.c
n2rng.h
nomadik-rng.c
octeon-rng.c
omap-rng.c
pasemi-rng.c
picoxcell-rng.c
ppc4xx-rng.c
timeriomem-rng.c
tx4939-rng.c
via-rng.c
virtio-rng.c