random: vDSO: avoid call to out of line memset()
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Thu, 22 Aug 2024 07:13:13 +0000 (09:13 +0200)
committerJason A. Donenfeld <Jason@zx2c4.com>
Fri, 13 Sep 2024 15:28:35 +0000 (17:28 +0200)
commitb7bad082e113640fc81200ff869e5c2d7a9c29a2
treed1e95815144303fae74ac0852a20209103730c02
parent81723e3ac388271cf1fe9d9ca8f4e9c74689ea0e
random: vDSO: avoid call to out of line memset()

With the current implementation, __cvdso_getrandom_data() calls
memset() on certain architectures, which is unexpected in the VDSO.

Rather than providing a memset(), simply rewrite opaque data
initialization to avoid memset().

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Acked-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
lib/vdso/getrandom.c