summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2020-07-29 19:11:00 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-08-21 11:01:52 +0200
commit8ce7dd3f42f45ea2900fe18a6ff78cfc4a69e6a4 (patch)
tree9c3ddff0058e4d88ef7401967075a93c7f097811 /lib
parent746fe4967584d056457fad08aa8a8871746b9a62 (diff)
downloadlinux-stable-8ce7dd3f42f45ea2900fe18a6ff78cfc4a69e6a4.tar.gz
linux-stable-8ce7dd3f42f45ea2900fe18a6ff78cfc4a69e6a4.tar.bz2
linux-stable-8ce7dd3f42f45ea2900fe18a6ff78cfc4a69e6a4.zip
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>
Diffstat (limited to 'lib')
-rw-r--r--lib/random32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/random32.c b/lib/random32.c
index f1eb3dce03bd..889dab44bd74 100644
--- a/lib/random32.c
+++ b/lib/random32.c
@@ -47,7 +47,7 @@ static inline void prandom_state_selftest(void)
}
#endif
-DEFINE_PER_CPU(struct rnd_state, net_rand_state) __latent_entropy;
+DEFINE_PER_CPU(struct rnd_state, net_rand_state);
/**
* prandom_u32_state - seeded pseudo-random number generator.