Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

random32: remove net_rand_state from the latent entropy gcc plugin

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>

+2 -2
+1 -1
include/linux/random.h
··· 120 120 __u32 s1, s2, s3, s4; 121 121 }; 122 122 123 - DECLARE_PER_CPU(struct rnd_state, net_rand_state) __latent_entropy; 123 + DECLARE_PER_CPU(struct rnd_state, net_rand_state); 124 124 125 125 u32 prandom_u32_state(struct rnd_state *state); 126 126 void prandom_bytes_state(struct rnd_state *state, void *buf, size_t nbytes);
+1 -1
lib/random32.c
··· 48 48 } 49 49 #endif 50 50 51 - DEFINE_PER_CPU(struct rnd_state, net_rand_state) __latent_entropy; 51 + DEFINE_PER_CPU(struct rnd_state, net_rand_state); 52 52 53 53 /** 54 54 * prandom_u32_state - seeded pseudo-random number generator.