random32: remove net_rand_state from the latent entropy gcc plugin
authorLinus Torvalds <torvalds@linux-foundation.org>
Thu, 30 Jul 2020 02:11:00 +0000 (19:11 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Aug 2020 09:01:52 +0000 (11:01 +0200)
commit8ce7dd3f42f45ea2900fe18a6ff78cfc4a69e6a4
tree9c3ddff0058e4d88ef7401967075a93c7f097811
parent746fe4967584d056457fad08aa8a8871746b9a62
random32: remove net_rand_state from the latent entropy gcc plugin

commit 83bdc7275e6206f560d247be856bceba3e1ed8f2 upstream.

It turns out that the plugin right now ends up being really unhappy
about the change from 'static' to 'extern' storage that happened in
commit f227e3ec3b5c ("random32: update the net random state on interrupt
and activity").

This is probably a trivial fix for the latent_entropy plugin, but for
now, just remove net_rand_state from the list of things the plugin
worries about.

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Cc: Emese Revfy <re.emese@gmail.com>
Cc: Kees Cook <keescook@chromium.org>
Cc: Willy Tarreau <w@1wt.eu>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/random.h
lib/random32.c