]> git.itanic.dy.fi Git - linux-stable/commit
treewide: use get_random_bytes() when possible
authorJason A. Donenfeld <Jason@zx2c4.com>
Wed, 5 Oct 2022 15:49:46 +0000 (17:49 +0200)
committerJason A. Donenfeld <Jason@zx2c4.com>
Tue, 11 Oct 2022 23:42:58 +0000 (17:42 -0600)
commit197173db990cad244221ba73c43b1df6170ae278
treeb3a91c349a525ec3f660ecfc19bf9372e9cbb016
parenta251c17aa558d8e3128a528af5cf8b9d7caae4fd
treewide: use get_random_bytes() when possible

The prandom_bytes() function has been a deprecated inline wrapper around
get_random_bytes() for several releases now, and compiles down to the
exact same code. Replace the deprecated wrapper with a direct call to
the real function. This was done as a basic find and replace.

Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Yury Norov <yury.norov@gmail.com>
Reviewed-by: Christophe Leroy <christophe.leroy@csgroup.eu> # powerpc
Acked-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
19 files changed:
arch/powerpc/crypto/crc-vpmsum_test.c
block/blk-crypto-fallback.c
crypto/async_tx/raid6test.c
drivers/dma/dmatest.c
drivers/mtd/nand/raw/nandsim.c
drivers/mtd/tests/mtd_nandecctest.c
drivers/mtd/tests/speedtest.c
drivers/mtd/tests/stresstest.c
drivers/net/ethernet/broadcom/bnxt/bnxt.c
drivers/net/ethernet/rocker/rocker_main.c
drivers/net/wireguard/selftest/allowedips.c
fs/ubifs/debug.c
kernel/kcsan/selftest.c
lib/random32.c
lib/test_objagg.c
lib/uuid.c
net/ipv4/route.c
net/mac80211/rc80211_minstrel_ht.c
net/sched/sch_pie.c