]> git.baikalelectronics.ru Git - kernel.git/commitdiff
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)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 30 Jul 2020 02:11:00 +0000 (19:11 -0700)
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 3129ed503bea ("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>
include/linux/random.h
lib/random32.c

index 39aaa1f78f9ddeb26058a1147157c5b4e03f31e6..f310897f051dd2e0c08199a12db49d00c28a733b 100644 (file)
@@ -120,7 +120,7 @@ struct rnd_state {
        __u32 s1, s2, s3, s4;
 };
 
-DECLARE_PER_CPU(struct rnd_state, net_rand_state) __latent_entropy;
+DECLARE_PER_CPU(struct rnd_state, net_rand_state);
 
 u32 prandom_u32_state(struct rnd_state *state);
 void prandom_bytes_state(struct rnd_state *state, void *buf, size_t nbytes);
index c4d317be2997b5096b9cd68b281726a23c368323..3d749abb9e80d54d8e330e07fb8b773b7bec2b83 100644 (file)
@@ -48,7 +48,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.